Code Monkey home page Code Monkey logo

mppt-solar-charger's People

Contributors

danjulio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mppt-solar-charger's Issues

LiPo Charging

Hello and thank you for making a useful product and sharing your work on it with the world.

Is there support for, or has anyone adapted this to work with LiPo (specifically LiPoFe4 in my use case) batteries?

Strange behaviour when charging; shutting down output

Dear danjulio,
ich have 2 makerPowerSolar units. Here I a going to focus on the configuration which causes bigger problems. I read out the actual values via I2C and send them to my Grafana server via an ESP32. Here are the data for the solar panel (left side) and the battery (right side):
grafik

Here is the complete data from today:
grafik
You can see that the makerPowerSolar shuts down power for the microcontroller sometimes (empty intervals). Also the sensor readings are spiking sometimes, showing impossible values.
FLOAT = red
IDLE = pink
BULK = green
SCAN = yellow
I2C FAIL = orange

Before the night, I disconnected the solar panel, disconnected the battery. Then I connected the battery and connected the solar panel. The ESP32 was powered by the makerPowerSolar throughout the night:
grafik

After the night, the charger goes from IDLE to SCAN to BULK. In BULK, the voltage and charge power rises. Then the power to the microcontroller is shut down (I do not read out the state of the ALARM-output yet) for no obvious reasons:
grafik

Here is an excerpt from an interval during the cloudy day:
grafik
It can be seen that some of the spiking values are followed by I2C FAILs (orange bars), some are not.

I cannot really explain this behaviour. I did not change the configuration of the charger. You have any ideas on what I could investigate?

Compiling the ESP8266 code for ESP32 (M5Stamp C3 Mate)

Hi Dan,
I wonder if it's possible to get the sample code running on ESP32s

Swapping out the ESP8266WiFi.h for the regular WiFi.h library is the one obvious change.
But I can't work out how to get past the compilation errors with mpptChg.h

/Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino: In function 'void setup()':
/Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino:129:29: error: no matching function for call to 'mpptChg::begin(int, int)'
   chg.begin(SDA_PIN, SCL_PIN);
                             ^
In file included from /Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino:1:
/Users/goldie/Dropbox/Personal Docs/Arduino/libraries/mpptChg/mpptChg.h:173:8: note: candidate: 'bool mpptChg::begin()'
   bool begin();
        ^~~~~
/Users/goldie/Dropbox/Personal Docs/Arduino/libraries/mpptChg/mpptChg.h:173:8: note:   candidate expects 0 arguments, 2 provided
/Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino: In function 'void publish_data(int)':
/Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino:267:33: error: call of overloaded 'publish(int16_t&)' is ambiguous
       if (!chg_ib.publish(reg_ib)) {
                                 ^
In file included from /Users/goldie/Downloads/MPPT-Solar-Charger-master/examples/esp8266/esp8266_solar_data/esp8266_solar_data.ino:29:
/Users/goldie/Dropbox/Personal Docs/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:274:8: note: candidate: 'bool Adafruit_MQTT_Publish::publish(double, uint8_t)'
   bool publish(
        ^~~~~~~
/Users/goldie/Dropbox/Personal Docs/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:279:8: note: candidate: 'bool Adafruit_MQTT_Publish::publish(int32_t)'
   bool publish(int32_t i);
        ^~~~~~~
/Users/goldie/Dropbox/Personal Docs/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:280:8: note: candidate: 'bool Adafruit_MQTT_Publish::publish(uint32_t)'
   bool publish(uint32_t i);
        ^~~~~~~

exit status 1

Compilation error: no matching function for call to 'mpptChg::begin(int, int)'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.