2 INA226 solutions, both input and output voltage and current can be monitored
INA226 has soared from 5 yuan to more than 20 yuan due to the IC price increase. If you are interested, you can try the domestic alternative Silicone SQ52201FBC.
The detection voltage at the high voltage end should not exceed 36V, otherwise the ina226 may be damaged.
The low-voltage end detection version is not finished
Program update : GITEE https://gitee.com/muyan3000/esp32-mppt
Foreign open source handling https://www.instructables.com/DIY-1kW-MPPT-Solar-Charge-Controller/
This project is modified from Gggggg's Lichuang version esp32 mppt - Jialichuang EDA open source hardware platform https://oshwhub.com/gggggg/esp32-1kw-mppt_copy
The library name of INA226 is: INA226Lib
/*
INA226 Bi-directional Current/Power Monitor. Simple Example.
Read more: http://www.jarzebski.pl/arduino/czujniki-i-sensory/cyfrowy-czujnik-pradu-mocy-ina226.html
GIT: https: //github.com/jarzebski/Arduino-INA226
Web: http://www.jarzebski.pl
(c) 2014 by Korneliusz Jarzebski
*/
Modification content:
Remove the usb-ttl part of the circuit and change it to a direct ttl interface
Remove a dcdc 3.3v circuit and use LDO to convert 5v to 3.3v
LCD power supply changed to 5V
Replace the following components with INA226
16 -bit /12- bit precision ADC measurement (ADS1115/ADS1015)
Automatic ACS712-30A current sensor calibration
LiquidCrystal_I2C lcd(0x27, 16, 2); //Set the liquid crystal address 0x27 and set the characters displayed in one line to 16 and 2 lines to display.
Initialize INA226 Slave1 0x40 A1 GND A0 GND
Initialize INA226 Slave2 0x41 A1 GND A0 VS
Program part:
Add OTA upgrade function
Modify Blynk to Blinker
Modify the voltage and current reading to INA226
Modify the problem that the battery voltage is judged to be in NOBAT state when it is lower than the system's minimum input voltage, resulting in the inability to charge.
20220707
Update the program corresponding to INA226 and the Blinker interface
Discuss with each other QQ:483012638
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet