MartinFowler

[Verified] ESP32 photovoltaic MPPT step-down synchronous rectification [INA226]

 
Overview

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

 

 

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-21 05:08:20
  • Three-way pwm output
  • Silly question, I'm a newbie
  • ARM C compile-time errors and warnings
  • 【TI Information】Embedded Processing & DSP Resource Guide
  • PCA82C250 CAN controller interface
  • About protues information

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号