https://github.com/ps2/riled_up_tools
Tools for the RiledUp board
https://github.com/ps2/riled_up_tools
Last synced: about 1 year ago
JSON representation
Tools for the RiledUp board
- Host: GitHub
- URL: https://github.com/ps2/riled_up_tools
- Owner: ps2
- Created: 2016-08-25T04:08:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-21T18:44:09.000Z (over 9 years ago)
- Last Synced: 2025-02-02T05:25:22.924Z (over 1 year ago)
- Language: Python
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RiledUp Tools
Tools for the RiledUp board
## configure_charger.py
This should be run at startup. It configures the FAN54040 charging IC to set appropriate current and voltage limits for a
lithium ion battery that can charge at 4.2V and 1550mA rate.
## get_charger_status.py
This will show various registers of the charger ic. The output while charging should look something like this:
```
*********** Status *************
Voreg = 4.2v
PROD = 0: Charger operating in normal mode
Iocharge = 1550 mA
ITERM_CMP = 1: Icharge > Iterm
VBAT_CMP = 1: Vbat < Vbus
LINCHG = 0: 30mA linear charger OFF
T_120 = 0: Die temperature < 120c. Current charge NOT limited to 340 mA
ICHG = 1: Icharge loop NOT controlling charge current
IBUS = 1: IBUS (input current) NOT controlling charge current
VBUS_VALID = 1: Vbus IS capable of charging
CV = 0: OREG not controlling charger (other limiting loops are controlling)
GATE = 1: GATE pin is HIGH, Q5 is off
VBAT = 1: Vbat > Vbatmin in PP charging, Vbat > Vlow in PWM charging
POK_B = 0: High current draw from host is OK
DIS_LEVEL = 0: DIS Pin is LOW
NOBAT = 1: Battery absent
PC_ON = 0: Post charging (background charging is NOT under progress)
```
## edison_temp.py
Displays core temperature sensors of the edison:
```
Zone 3 temp = 74C
Zone 4 temp = 74C
```