mirror of
https://github.com/brendanhaines/Hohm-Phone.git
synced 2024-12-25 18:37:45 -07:00
removes arduino controlled battery management
This commit is contained in:
parent
4bfe585457
commit
34ae6a7f70
|
@ -15,10 +15,8 @@
|
||||||
#define GSM_RST A2
|
#define GSM_RST A2
|
||||||
#define GSM_RING A5
|
#define GSM_RING A5
|
||||||
|
|
||||||
// Charging voltage thresholds. Will turn on charging at CHG_VLO and turn off charging at CHG_VHI (millivolts)
|
// Low battery light threshold
|
||||||
#define CHG_VLO 3900
|
#define CHG_VLO 3900
|
||||||
#define CHG_VHI 4100
|
|
||||||
#define CHG_PIN A0
|
|
||||||
|
|
||||||
#define MAG_SENSE A1
|
#define MAG_SENSE A1
|
||||||
|
|
||||||
|
@ -171,10 +169,7 @@ void loop() {
|
||||||
uint16_t vbat;
|
uint16_t vbat;
|
||||||
fona.getBattVoltage(&vbat);
|
fona.getBattVoltage(&vbat);
|
||||||
if ( vbat < CHG_VLO ) {
|
if ( vbat < CHG_VLO ) {
|
||||||
digitalWrite( CHG_PIN, LOW );
|
|
||||||
digitalWrite( LED_BAT_LOW, HIGH );
|
digitalWrite( LED_BAT_LOW, HIGH );
|
||||||
} else if ( vbat > CHG_VHI ) {
|
|
||||||
digitalWrite( CHG_PIN, HIGH );
|
|
||||||
} else {
|
} else {
|
||||||
digitalWrite( LED_BAT_LOW, LOW );
|
digitalWrite( LED_BAT_LOW, LOW );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user