esp32-mppt/README.md

77 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ESP32 MPPT
#### 介绍
基于ESP32的MPPT同步整流充电系统
此项目基于https://www.instructables.com/DIY-1kW-MPPT-Solar-Charge-Controller/
PCB工程修改自Gggggg的立创版本 esp32 mppt - 嘉立创EDA开源硬件平台 https://oshwhub.com/gggggg/esp32-1kw-mppt_copy
本项目对应立创EDA工程文件https://oshwhub.com/muyan2020/wei-yan-zheng-esp32-guang-fu-pv-mppt-ina226
本项目修改为2颗INA226方案输入和输出的电压电流都能监测到
**高压端检测版本** 电压不要超过36V否则可能损坏ina226
**低压端检测版本** 已验证耐压没问题不过输入端电流会包含esp32等用电设备程序部分需要自行修改 2_Read_Sensors.ino ,将
`CSI_converted = ina1.readShuntCurrent();`
修改为
`CSI_converted = -ina1.readShuntCurrent();`
#### 软件架构
基于ESP32的MPPT充电系统
远程采集使用blinker界面在程序目录中复制到blinker的界面配置即可
![输入图片说明](blinker_ui.jpg)
#### 安装教程
修改ARDUINO_MPPT_FIRMWARE_V2.1.ino文件中的wifi配置信息及blinkerid
Liquid Crystal I2C LCD Library (By: Robojax) 这个库不能用
用LiquidCrystal_I2C By:Frank de Brabander的版本
INA226的库名是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
*/
#### 使用说明
各版本looptime比较
INA226版本
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726114642.png)
ads1015版本
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726120507.png)
ads1115版本
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726114412.png)
#### 更新说明
20220706
修改充电算法中predictivePWM() 算法 解决压差小于6V时输出电压大于电池电压的问题
#### 参与贡献