2022-07-19 02:17:33 +00:00
|
|
|
|
# ESP32 MPPT
|
|
|
|
|
|
|
|
|
|
#### 介绍
|
2022-07-19 03:01:16 +00:00
|
|
|
|
基于ESP32的MPPT同步整流充电系统
|
2022-07-19 03:03:31 +00:00
|
|
|
|
|
2022-07-19 02:20:32 +00:00
|
|
|
|
此项目基于https://www.instructables.com/DIY-1kW-MPPT-Solar-Charge-Controller/
|
2022-07-19 03:03:31 +00:00
|
|
|
|
|
2022-07-19 02:20:32 +00:00
|
|
|
|
PCB工程修改自Gggggg的立创版本 esp32 mppt - 嘉立创EDA开源硬件平台 https://oshwhub.com/gggggg/esp32-1kw-mppt_copy
|
|
|
|
|
|
2022-07-19 03:15:55 +00:00
|
|
|
|
本项目对应立创EDA工程文件:https://oshwhub.com/muyan2020/wei-yan-zheng-esp32-guang-fu-pv-mppt-ina226
|
2022-07-19 03:03:31 +00:00
|
|
|
|
|
2022-09-01 07:14:54 +00:00
|
|
|
|
|
2022-09-01 07:17:03 +00:00
|
|
|
|
**【降压同步整流版本】**
|
2022-09-01 07:12:19 +00:00
|
|
|
|
|
2022-07-19 02:20:32 +00:00
|
|
|
|
本项目修改为2颗INA226方案,输入和输出的电压电流都能监测到
|
|
|
|
|
|
2022-09-01 07:17:03 +00:00
|
|
|
|
**高端检测** 电压不要超过36V,否则可能损坏ina226
|
2022-07-19 02:20:32 +00:00
|
|
|
|
|
2022-09-01 07:17:03 +00:00
|
|
|
|
**低端检测** 已验证,耐压没问题,不过输入端电流会包含esp32等用电设备,程序部分需要自行修改 2_Read_Sensors.ino ,将
|
2022-08-27 02:12:59 +00:00
|
|
|
|
|
2022-08-27 02:11:46 +00:00
|
|
|
|
`CSI_converted = ina1.readShuntCurrent();`
|
2022-08-27 02:12:59 +00:00
|
|
|
|
|
2022-08-27 02:11:46 +00:00
|
|
|
|
修改为
|
2022-08-27 02:12:59 +00:00
|
|
|
|
|
2022-08-27 02:11:46 +00:00
|
|
|
|
`CSI_converted = -ina1.readShuntCurrent();`
|
2022-07-19 02:20:32 +00:00
|
|
|
|
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
2022-09-01 07:14:54 +00:00
|
|
|
|
|
2022-09-01 07:17:03 +00:00
|
|
|
|
**【升压/降压同步整流版本】**
|
2022-09-01 07:12:19 +00:00
|
|
|
|
|
|
|
|
|
此版本提供bin直接烧录,省得各种配置劝退
|
|
|
|
|
|
|
|
|
|
flash_download_tool工具(下载地址:https://www.espressif.com/zh-hans/support/download/other-tools),选择esp32进行烧写
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-07-19 02:17:33 +00:00
|
|
|
|
#### 软件架构
|
2022-07-19 03:01:16 +00:00
|
|
|
|
基于ESP32的MPPT充电系统
|
2022-07-19 03:11:07 +00:00
|
|
|
|
|
2022-07-19 02:59:40 +00:00
|
|
|
|
远程采集使用blinker,界面在程序目录中,复制到blinker的界面配置即可
|
2022-07-19 03:11:07 +00:00
|
|
|
|
|
2022-07-19 03:10:48 +00:00
|
|
|
|
![输入图片说明](blinker_ui.jpg)
|
2022-07-19 03:01:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### 安装教程
|
|
|
|
|
修改ARDUINO_MPPT_FIRMWARE_V2.1.ino文件中的wifi配置信息及blinkerid
|
|
|
|
|
|
2022-07-20 12:41:16 +00:00
|
|
|
|
Liquid Crystal I2C LCD Library (By: Robojax) 这个库不能用
|
|
|
|
|
|
|
|
|
|
用LiquidCrystal_I2C By:Frank de Brabander的版本
|
2022-07-20 11:50:06 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
INA226的库名是:INA226Lib
|
|
|
|
|
|
|
|
|
|
/*
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
INA226 Bi-directional Current/Power Monitor. Simple Example.
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
Read more: http://www.jarzebski.pl/arduino/czujniki-i-sensory/cyfrowy-czujnik-pradu-mocy-ina226.html
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
GIT: https://github.com/jarzebski/Arduino-INA226
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
Web: http://www.jarzebski.pl
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
(c) 2014 by Korneliusz Jarzebski
|
2022-07-19 02:59:40 +00:00
|
|
|
|
|
2022-07-19 02:20:58 +00:00
|
|
|
|
*/
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
|
|
|
|
#### 使用说明
|
2022-07-26 03:48:49 +00:00
|
|
|
|
各版本looptime比较
|
|
|
|
|
INA226版本
|
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726114642.png)
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
2022-07-26 04:14:23 +00:00
|
|
|
|
ads1015版本
|
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726120507.png)
|
|
|
|
|
|
2022-07-26 03:48:49 +00:00
|
|
|
|
ads1115版本
|
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220726114412.png)
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
2022-07-19 03:08:44 +00:00
|
|
|
|
#### 更新说明
|
|
|
|
|
20220706
|
2022-07-19 03:10:48 +00:00
|
|
|
|
|
2022-07-19 03:08:44 +00:00
|
|
|
|
修改充电算法中predictivePWM() 算法 ,解决压差小于6V时,输出电压大于电池电压的问题
|
|
|
|
|
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
2022-07-19 02:20:32 +00:00
|
|
|
|
#### 参与贡献
|
2022-09-01 07:17:03 +00:00
|
|
|
|
高冧,熊喵,龙卷风
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
|
|
|
|
|