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-03 01:36:03 +00:00
|
|
|
|
|
2022-09-03 01:36:21 +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-03 01:36:21 +00:00
|
|
|
|
|
2022-09-01 07:17:03 +00:00
|
|
|
|
**【升压/降压同步整流版本】**
|
2022-09-03 01:36:03 +00:00
|
|
|
|
|
|
|
|
|
在降压版本的基础上,升压需要通过更换输入输出,外部开关来进行模式切换
|
|
|
|
|
|
|
|
|
|
**为了避免意外发生,请仔细检查接入及切换开关位置!!!**
|
2022-09-01 07:12:19 +00:00
|
|
|
|
|
|
|
|
|
此版本提供bin直接烧录,省得各种配置劝退
|
|
|
|
|
|
2022-09-01 08:01:41 +00:00
|
|
|
|
按途中打钩项选择,然后按boot+en进入download模式
|
|
|
|
|
|
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20220901155947.png)
|
2022-09-01 07:57:16 +00:00
|
|
|
|
|
2022-09-01 07:20:04 +00:00
|
|
|
|
flash_download_tool工具(下载地址:[https://www.espressif.com/zh-hans/support/download/other-tools](https://www.espressif.com/zh-hans/support/download/other-tools) ),选择esp32进行烧写
|
2022-09-01 07:12:19 +00:00
|
|
|
|
|
2022-09-01 07:24:08 +00:00
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220901143819.jpg)
|
|
|
|
|
![输入图片说明](%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20220901115046.jpg)
|
2022-09-01 07:12:19 +00:00
|
|
|
|
|
|
|
|
|
|
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-09-02 15:23:16 +00:00
|
|
|
|
20220902
|
|
|
|
|
|
|
|
|
|
升/降压版本:
|
|
|
|
|
|
|
|
|
|
增加WEB配网,同时设置Blinker ID
|
|
|
|
|
|
|
|
|
|
OTA webupdate
|
|
|
|
|
|
|
|
|
|
校准输入电压 INVD19.22
|
|
|
|
|
|
|
|
|
|
校准输出电压 OUTVD16.22
|
|
|
|
|
|
|
|
|
|
查看校准参数 CHKVD
|
|
|
|
|
|
2022-09-02 15:52:18 +00:00
|
|
|
|
修正首次烧录数据错乱问题
|
|
|
|
|
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
2022-07-19 02:20:32 +00:00
|
|
|
|
#### 参与贡献
|
2022-09-01 07:18:39 +00:00
|
|
|
|
高冧,熊喵,龙卷风,小一科技
|
2022-07-19 02:17:33 +00:00
|
|
|
|
|
|
|
|
|
|