2023-08-07, 08:12 PM
(2023-08-07, 07:39 PM)xsashox Wrote: [ -> ]Hey how did you actually calculate Rshunt? I have a 500A shunt with 75mV. Couldnt get my hands on anything smaller fast enough so ...
V/I = Rshunt
0.075/500 = 0.00015
Rshunt = 0.00015
(2023-08-07, 07:39 PM)xsashox Wrote: [ -> ]Hey how did you actually calculate Rshunt? I have a 500A shunt with 75mV. Couldnt get my hands on anything smaller fast enough so ...
(2023-08-07, 09:10 PM)xsashox Wrote: [ -> ]have you maybe tried playing with smart switches?
///////////////////////////INA219A start
auto ina219A = new Adafruit_INA219(0x40);
bool inaA_initialized = ina219A->begin(i2c);
debugD("INA219A: %d", inaA_initialized);
///////////////////////////INA219B start
auto ina219B = new Adafruit_INA219(0x41);
bool inaB_initialized = ina219B->begin(i2c);
debugD("INA219B: %d", inaB_initialized);
///////////////////////////INA219C start
auto ina219C = new Adafruit_INA219(0x44);
bool inaC_initialized = ina219C->begin(i2c);
debugD("INA219C: %d", inaC_initialized);
ina219A.begin(i2c);
bool inaA_initialized = ina219A.begin(i2c);
debugD("INA219A: %d", inaA_initialized);
ina219B.begin(i2c);
bool inaB_initialized = ina219B.begin(i2c);
debugD("INA219B: %d", inaB_initialized);
ina219C.begin(i2c);
bool inaC_initialized = ina219C.begin(i2c);
debugD("INA219C: %d", inaC_initialized);
(2023-09-04, 07:14 PM)twillert Wrote: [ -> ]Hello JAson
I am very interested in your Battery mmonitor/charger. Great
I am a bit customeised with platformIO on Windows but not on Pi
Would there be drivers and modules like the sensESP available on PlatformIO with espressif332 board as you know?
I tried using the setup as published but i am lacking knowlede to complete it to a suuccesfull build
Regards
Herman (from NL)
(2023-09-04, 07:44 PM)xsashox Wrote: [ -> ](2023-09-04, 07:14 PM)twillert Wrote: [ -> ]Hello JAson
I am very interested in your Battery mmonitor/charger. Great
I am a bit customeised with platformIO on Windows but not on Pi
Would there be drivers and modules like the sensESP available on PlatformIO with espressif332 board as you know?
I tried using the setup as published but i am lacking knowlede to complete it to a suuccesfull build
Regards
Herman (from NL)
PlatformIO is just a plugin in VSCode. SensESP is a library and Espressif is a board manufacturer. I would suggest you first take a look at some youtube tutorials about using PlatformIO with ESP32 and how to use libraries.
We have all been there so dont worry. In your case you will use PlatformIO just for ESP’s. Pi has its own OS (OP). Your Pi is just a server for your “sensor nodes” - ESPs. To program ESPs you will use VSCode woth PlatformIO plugin.