https://github.com/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://github.com/nicholaswilde/solar-battery-charger
adafruit-feather-huzzah charger li-ion-battery solar thingspeak
Last synced: 19 days ago
JSON representation
:battery: A solar battery charger to charge lithium ion (li-ion) 18650, 9V, and coin batteries and Ni-MH AA and AAA batteries. :sunny:
- Host: GitHub
- URL: https://github.com/nicholaswilde/solar-battery-charger
- Owner: nicholaswilde
- License: apache-2.0
- Created: 2022-01-24T04:51:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T11:16:11.000Z (over 1 year ago)
- Last Synced: 2025-02-14T04:39:27.259Z (2 months ago)
- Topics: adafruit-feather-huzzah, charger, li-ion-battery, solar, thingspeak
- Language: C++
- Homepage: https://nicholaswilde.io/solar-battery-charger/
- Size: 79.3 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: docs/README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# :battery: Solar Battery Charger :sunny:

[](https://github.com/nicholaswilde/solar-battery-charger/actions/workflows/ci.yaml)
[](https://taskfile.dev/#/)
[](https://thingspeak.com/channels/1642208)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`](https://nicholaswilde.io/solar-battery-charger/configuration/#secrets) and update parameters in `config.h`.
```shell
(
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
```shell
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
```shell
Mode: discharge
Battery:
Percentage: 90%
Voltage: 4.04 V
Current: 700 mA
Power: 2.6 W
```---
## :book: Documentation
Documentation can be found [here](http://nicholaswilde.io/solar-battery-charger).
---
## :balance_scale: License
[Apache 2.0 License](./LICENSE)
---
## :pencil: Author
This project was started in 2022 by [Nicholas Wilde](https://github.com/nicholaswilde/).