nicholaswilde / solar-battery-charger

:battery: A solar battery charger to charge lithium ion (li-ion) 18650, 9V, and coin batteries and Ni-MH AA and AAA batteries. :sunny:
https://nicholaswilde.io/solar-battery-charger/
Apache License 2.0
2 stars 0 forks source link
adafruit-feather-huzzah charger li-ion-battery solar thingspeak

:battery: Solar Battery Charger :sunny:

GitHub tag (latest SemVer) ci task thingspeak

A solar battery charger to charge lithium ion (li-ion) 18650, 9V, and coin batteries and Ni-MH AA and AAA batteries.


:rocket:  TL;DR;

Create secrets.h and update parameters in config.h.

(
  sudo apt install python3-serial screen
  brew install arduino-cli
  arduino-cli config init
  arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
  arduino-cli core update-index
  arduino-cli core install esp32:esp32
  arduino-cli lib install ThingSpeak "Adafruit SH110X" "Adafruit INA260 Library" Timezone ESP-Google-Sheet-Client
  arduino-cli compile -b esp32:esp32:featheresp32 .
  arduino-cli upload -b esp32:esp32:featheresp32 . -p /dev/ttyUSB0 .
  screen /dev/ttyUSB0 115200
)

:computer: Output

Mode: recharge

Mode: recharge
SSID: MySSID
Connecting.........
Connected!
IP: 192.168.1.77
Hostname: Feather
Battery:
 Percentage: 90%
 Voltage: 4.04 V
 Current: 700 mA
 Power: 2.6 W
Channel:
 Number: 1642208
 Status: success
Sleep time: 15m

Mode: discharge

Mode: discharge
Battery:
 Percentage: 90%
 Voltage: 4.04 V
 Current: 700 mA
 Power: 2.6 W

:book:  Documentation

Documentation can be found here.


:balance_scale:  License

Apache 2.0 License


:pencil:  Author

This project was started in 2022 by Nicholas Wilde.