diff --git a/src/board_control.cpp b/src/board_control.cpp index cccf04f..43b9b83 100644 --- a/src/board_control.cpp +++ b/src/board_control.cpp @@ -24,12 +24,12 @@ void setup_pins(void){ pinMode(LED, OUTPUT); // Make the LED pin an output turn_gnss_off(); // Disable power for the GNSS - pinMode(geofencePin, INPUT); // Configure the geofence pin as an input + /* pinMode(geofencePin, INPUT); // Configure the geofence pin as an input */ turn_iridium_off(); pinMode(iridiumRI, INPUT); // Configure the Iridium Ring Indicator as an input pinMode(iridiumNA, INPUT); // Configure the Iridium Network Available as an input - pinMode(superCapPGOOD, INPUT); // Configure the super capacitor charger PGOOD input + /* pinMode(superCapPGOOD, INPUT); // Configure the super capacitor charger PGOOD input */ pinMode(busVoltageMonEN, OUTPUT); // Make the Bus Voltage Monitor Enable an output digitalWrite(busVoltageMonEN, LOW); // Set it low to disable the measurement to save power @@ -61,8 +61,8 @@ void turn_iridium_on(void){ Serial.println(F("turn iridium on")); turn_gnss_off(); delay(100); - pinMode(superCapChgEN, OUTPUT); // Configure the super capacitor charger enable pin (connected to LTC3225 !SHDN) - digitalWrite(superCapChgEN, HIGH); // Enable the super capacitor charger + /* pinMode(superCapChgEN, OUTPUT); // Configure the super capacitor charger enable pin (connected to LTC3225 !SHDN) */ + /* digitalWrite(superCapChgEN, HIGH); // Enable the super capacitor charger */ pinMode(iridiumPwrEN, OUTPUT); // Configure the Iridium Power Pin (connected to the ADM4210 ON pin) digitalWrite(iridiumPwrEN, HIGH); // Enable Iridium Power delay(1000); @@ -72,10 +72,10 @@ void turn_iridium_off(void){ Serial.println(F("turn iridium off")); pinMode(iridiumPwrEN, OUTPUT); // Configure the Iridium Power Pin (connected to the ADM4210 ON pin) digitalWrite(iridiumPwrEN, LOW); // Disable Iridium Power (HIGH = enable; LOW = disable) - pinMode(superCapChgEN, OUTPUT); // Configure the super capacitor charger enable pin (connected to LTC3225 !SHDN) - digitalWrite(superCapChgEN, LOW); // Disable the super capacitor charger (HIGH = enable; LOW = disable) - pinMode(iridiumSleep, OUTPUT); // Iridium 9603N On/Off (Sleep) pin - digitalWrite(iridiumSleep, LOW); // Put the Iridium 9603N to sleep (HIGH = on; LOW = off/sleep) + /* pinMode(superCapChgEN, OUTPUT); // Configure the super capacitor charger enable pin (connected to LTC3225 !SHDN) */ + /* digitalWrite(superCapChgEN, LOW); // Disable the super capacitor charger (HIGH = enable; LOW = disable) */ + /* pinMode(iridiumSleep, OUTPUT); // Iridium 9603N On/Off (Sleep) pin */ + /* digitalWrite(iridiumSleep, LOW); // Put the Iridium 9603N to sleep (HIGH = on; LOW = off/sleep) */ } void turn_thermistors_on(void){ diff --git a/src/board_control.h b/src/board_control.h index 4d789a5..9800e14 100644 --- a/src/board_control.h +++ b/src/board_control.h @@ -12,18 +12,18 @@ //-------------------------------------------------------------------------------- // Artemis Tracker pin definitions // TODO: move to constexpr -#define spiCS1 4 // D4 can be used as an SPI chip select or as a general purpose IO pin -#define geofencePin 10 // Input for the ZOE-M8Q's PIO14 (geofence) pin +/* #define spiCS1 4 // D4 can be used as an SPI chip select or as a general purpose IO pin */ +/* #define geofencePin 10 // Input for the ZOE-M8Q's PIO14 (geofence) pin */ #define busVoltagePin 13 // Bus voltage divided by 3 (Analog in) -#define iridiumSleep 17 // Iridium 9603N ON/OFF (sleep) pin: pull high to enable the 9603N -#define iridiumNA 18 // Input for the Iridium 9603N Network Available +#define iridiumSleep -1 // 17 // Iridium 9603N ON/OFF (sleep) pin: pull high to enable the 9603N +#define iridiumNA 32 // Input for the Iridium 9603N Network Available #define LED 19 // White LED -#define iridiumPwrEN 22 // ADM4210 ON: pull high to enable power for the Iridium 9603N -#define gnssEN 26 // GNSS Enable: pull low to enable power for the GNSS (via Q2) -#define superCapChgEN 27 // LTC3225 super capacitor charger: pull high to enable the super capacitor charger -#define superCapPGOOD 28 // Input for the LTC3225 super capacitor charger PGOOD signal +#define iridiumPwrEN 35 // ADM4210 ON: pull high to enable power for the Iridium 9603N +#define gnssEN 38 // GNSS Enable: pull low to enable power for the GNSS (via Q2) +/* #define superCapChgEN 27 // LTC3225 super capacitor charger: pull high to enable the super capacitor charger */ +/* #define superCapPGOOD 28 // Input for the LTC3225 super capacitor charger PGOOD signal */ #define busVoltageMonEN 34 // Bus voltage monitor enable: pull high to enable bus voltage monitoring (via Q4 and Q3) -#define spiCS2 35 // D35 can be used as an SPI chip select or as a general purpose IO pin +/* #define spiCS2 35 // D35 can be used as an SPI chip select or as a general purpose IO pin */ #define iridiumRI 41 // Input for the Iridium 9603N Ring Indicator // Make sure you do not have gnssEN and iridiumPwrEN enabled at the same time! // If you do, bad things might happen to the AS179 RF switch!