Skip to content

Commit 6052a43

Browse files
committed
pbio/sys/battery: Reduce battery-full threshold voltage.
Some batteries stabilize just above 8200 mV. This is as full as they get, so indicate that it is ready with the green light. This helps people avoid charging their hub longer than needed.
1 parent f672747 commit 6052a43

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
### Changed
88
- Changed order of the `DriveBase.arc` method. This method has not yet been
99
released or documented, so this is not a breaking change ([support#1157]).
10+
- Reduced voltage threshold at which the charging light goes from red to green
11+
to indicate that the battery is full from 8300 to 8190 mV ([pybricks-micropython#292]).
1012

1113
## [3.6.0b4] - 2025-02-14
1214

lib/pbio/sys/battery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define BATTERY_CRITICAL_MV 4800 // 0.8V per cell
2121

2222
// These values are for LEGO rechargeable battery packs
23-
#define LIION_FULL_MV 8300 // 4.15V per cell
23+
#define LIION_FULL_MV 8190 // 4.095V per cell
2424
#define LIION_OK_MV 7200 // 3.6V per cell
2525
#define LIION_LOW_MV 6800 // 3.4V per cell
2626
#define LIION_CRITICAL_MV 6000 // 3.0V per cell

0 commit comments

Comments
 (0)