forked from AngeloCasi/FUGU-ARDUINO-MPPT-FIRMWARE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda07c7
commit ffbe70c
Showing
1 changed file
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,70 @@ | ||
/* PROJECT FUGU FIRMWARE V1.10 (DIY 1kW Open Source MPPT Solar Charge Controller) | ||
* By: TechBuilder (Angelo Casimiro) | ||
* FIRMWARE STATUS: Verified Stable Build Version | ||
* (Contact me for the experimental beta versions) | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* DATE CREATED: 02/07/2021 | ||
* DATE MODIFIED: 30/08/2021 | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* CONTACTS: | ||
* GitHub - www.github.com/AngeloCasi (New firmware releases will only be available on GitHub Link) | ||
* Email - [email protected] | ||
* YouTube - www.youtube.com/TechBuilder | ||
* Facebook - www.facebook.com/AngeloCasii | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* PROGRAM FEATURES: | ||
* - MPPT Perturbed Algorithm With CC-CV | ||
* - WiFi & Bluetooth BLE Blynk Phone App Telemetry | ||
* - Selectable Charger/PSU Mode (can operate as a programmable buck converter) | ||
* - Dual Core ESP32 Unlocked (using xTaskCreatePinnedToCore(); ) | ||
* - Precision ADC Tracking Auto ADS1115/ADS1015 Detection (16bit/12bit I2C ADC) | ||
* - Automatic ACS712-30A Current Sensor Calibration | ||
* - Equipped With Battery Disconnect & Input Disconnect Recovery Protection Protocol | ||
* - LCD Menu Interface (with settings & 4 display layouts) | ||
* - Flash Memory (non-volatile settings save function) | ||
* - Settable PWM Resolution (8bit-16bit) | ||
* - Settable PWM Resolution (1.2kHz - 312kHz) | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* PROGRAM INSTRUCTIONS: | ||
* 1.) Watch YouTube video tutorial first before using | ||
* 2.) Install the required Arduino libraries for the ICs | ||
* 3.) Select Tools > ESP32 Dev Board Board | ||
* 4.) Do not modify code unless you know what you are doing | ||
* 5.) The MPPT's synchronous buck converter topology is code dependent, messing with the algorithm | ||
* and safety protection protocols can be extremely dangerous especially when dealing with HVDC. | ||
* 6.) Install Blynk Legacy to access the phone app telemetry feature | ||
* 7.) Input the Blynk authentication in this program token sent by Blynk to your email after registration | ||
* 8.) Input WiFi SSID and password in this program | ||
* 9.) When using WiFi only mode, change "disableFlashAutoLoad = 0" to = 1 (LCD and buttons not installed) | ||
* this prevents the MPPT unit to load the Flash Memory saved settings and will load the Arduino variable | ||
* declarations set below instead | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* GOOGLE DRIVE PROJECT LINK: coming soon | ||
* INSTRUCTABLE TUTORIAL LINK: coming soon | ||
* YOUTUBE TUTORIAL LINK: coming Soon | ||
* ----------------------------------------------------------------------------------------------------------- | ||
* ACTIVE CHIPS USED IN FIRMWARE: | ||
* - ESP32 WROOM32 | ||
* - ADS1115/ADS1015 I2C ADC | ||
* - ACS712-30A Current Sensor IC | ||
* - IR2104 MOSFET Driver | ||
* - CH340C USB TO UART IC | ||
* - 16X2 I2C Character LCD | ||
* OTHER CHIPS USED IN PROJECT: | ||
* - XL7005A 80V 0.4A Buck Regulator (2x) | ||
* - AMS1115-3.3 LDO Linear Regulator | ||
* - AMS1115-5.0 LDO Linear Regulator | ||
* - CSD19505 N-ch MOSFETS (3x) | ||
* - B1212 DC-DC Isolated Converter | ||
* - SS310 Diodes | ||
*/ | ||
//================================ MPPT FIRMWARE LCD MENU INFO =====================================// | ||
// The lines below are for the Firmware Version info displayed on the MPPT's LCD Menu Interface // | ||
//==================================================================================================// | ||
String | ||
firmwareInfo = "V1.00 ", | ||
firmwareDate = "22/08/21", | ||
firmwareInfo = "V1.10 ", | ||
firmwareDate = "30/08/21", | ||
firmwareContactR1 = "www.youtube.com/", | ||
firmwareContactR2 = "TechBuilder "; | ||
|
||
|
@@ -46,9 +107,9 @@ TaskHandle_t Core2; //SYSTEM PARAMETER - Used for the ESP32 dual | |
// from email after registering from the Blynk platform. // | ||
//==================================================================================================// | ||
char | ||
auth[] = "inputAuthToken", // USER PARAMETER - Input Blynk Authentication Token (From email after registration) | ||
ssid[] = "inputSSID", // USER PARAMETER - Enter Your WiFi SSID | ||
pass[] = "inputPassword"; // USER PARAMETER - Enter Your WiFi Password | ||
auth[] = "InputBlynkAuthenticationToken", // USER PARAMETER - Input Blynk Authentication Token (From email after registration) | ||
ssid[] = "InputWiFiSSID", // USER PARAMETER - Enter Your WiFi SSID | ||
pass[] = "InputWiFiPassword"; // USER PARAMETER - Enter Your WiFi Password | ||
|
||
//====================================== USER PARAMETERS ==========================================// | ||
// The parameters below are the default parameters used when the MPPT charger settings have not // | ||
|