Показать сообщение отдельно
Старый 23.07.2016, 11:24   #39
armlive
Старший Пользователь
 
Регистрация: 12.12.2013
Возраст: 43
Город: Армавир
Регион: 23, 93
Машина: Nissan Qashqai
Сообщений: 510
armlive is a glorious beacon of lightarmlive is a glorious beacon of lightarmlive is a glorious beacon of lightarmlive is a glorious beacon of lightarmlive is a glorious beacon of light
По умолчанию

Я заметил что у тебя библиотека другая. У меня все залилось опять без проблем.
Адрес для заливки не важен, он не знает же правильный он или нет.
Библиотеку используй эту, старую удали
https://github.com/johngineer/ArduinoINA219, а мне скинь ссылку на твою
Из примера же видно, что она настраивается даже по другому
В твоем примере
Цитата:
#define SHUNT_MAX_V 0.01 /* Rated max for our shunt is 75mv for 50 A current:
we will mesure only up to 20A so max is about 75mV*20/50 lets put some more*/
#define BUS_MAX_V 16.0 /* with 12v lead acid battery this should be enough*/
#define MAX_CURRENT 20 /* In our case this is enaugh even shunt is capable to 50 A*/
#define SHUNT_R 0.1 /* Shunt resistor in ohm */
А в твоем скетче
Цитата:
monitor.begin(69); //i2c addres
monitor.configure(0, 3, 11, 11, 7);
// (range, gain, bus_adc, shunt_adc, mode)
// range = 1 (0-32V bus voltage range)
// gain = 3 (1/8 gain - 320mV range)
// bus adc = 3 (12-bit, single sample, 532uS conversion time)
// shunt adc = 3 (12-bit, single sample, 532uS conversion time)
// mode = 7 (continuous conversion)
// test shunt = 115mm of 22AWG solid copper = 0.3 Ohms
monitor.calibrate(0.099, 0.1584, 16, 2);
__________________
Nexus 7 (2013) Nissan Qashqai
armlive вне форума   Ответить с цитированием