-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Battery + LEDS issue #467
Comments
|
Thanks for your reply. |
The value measured by board is based on analog to digital conversion and a formula. It is not calibrated at all. The correct value is your multimeter. |
I think so. Most of them are coming from libraries. |
Is there a workaround for calibration and cut off for over- or undercharge protection? Auto power off? |
The fix the calibration change the following formula PedalinoMini/src/PedalinoMini.cpp Line 199 in fb77242
There are no risk of over/under charging because the battery recharge is managed by MCP73831 chip. To power off PedalinoMini use a switch to cut off the battery power or the Power On/Off action to put the board into deep sleep. |
In another project I finally got to this method to show the voltage: |
I will try to make litle adjustments in the code soon. |
I changed the code to: |
Yellow message are just warnings. |
Allright, with some trial and error. When I change the value 10240 to 8850 the battery voltage is showed like the metering does and battery indicator on oled look good. The dividing value does the calibration likely. |
I run firmware 3.1.10 an added a battery connected to JST 2pin connector on a BPI Leaf S3.
The WebUI shows alwas that it's running on battery, also when only powerd via USB.
There is a difference in voltage level. WebUI shows 3.7V and my multimeter shows 4.1V.
This is the case without BATTERY_PIN 14 connected.
If I add the BATTERY_PIN to +BATT then the oled show's charging battery symbol without and with a battery in de holder.
And the WebUI shows 7.3V (but shows plugged correctly)
Also when BATTERY_PIN connected and running only on battery a power reset will result in not be able to connect to my home network. When I remove BATTERY_PIN it instantly connects to my home network.
I have already soldered a new connector to the battery holder to exclude bad connections.
Any thoughts?
In the WebUI I can't change the number of LEDS. I can only change this in Pedalino.h?
Is that correct?
Additional info:
PlatformIO shows a couple of issues when I run the inspect command. Don't know of these are important.
Running windows 11 + Visual Studio Code + PlatformIO extension
I only changed PIN 46 to 15 and pin 47 to 16 so the onboard I2C connector works with the OLED.
Furthermore 6 buttons to the first 6 pins[D], potentio to pin 17 and pin 48 for the LEDs
The text was updated successfully, but these errors were encountered: