I have tried writing a simple test case where I turn on the power wait 3 seconds turn off the power then repeat. I have tried initializing the Serial line and setting it to GPIO and the short still occurs.
- #define DSP_DISCONNECT 19 //GPIO pin that controls when 3.3v flows to the LCD
- #define BATTERY_DISCONNECT 12 //Battery disconnect pin HIGH for giving power to sensors, LOW for stopping power to sensors
- void setup() {
- // Serial.begin(9600); //Commented the UART1 line out
- // while(!Serial);
- pinMode(DSP_DISCONNECT, OUTPUT); //Set 3.3v LCD power supply to output for when we need to power it
- pinMode(BATTERY_DISCONNECT, OUTPUT); //Sets the battery disconnect to output for when we need to read from the sensors
- digitalWrite(BATTERY_DISCONNECT, HIGH); //Sets Sensor power to high to the PIC controllers are getting 6v
- digitalWrite(DSP_DISCONNECT, HIGH); //Sets the LCD power to high to turn on the LCD
- }
- void loop() {
- delay(3000);
- digitalWrite(BATTERY_DISCONNECT, LOW); //Sets Sensor power to low to the PIC controllers are getting 0v
- digitalWrite(DSP_DISCONNECT, LOW); //Sets the LCD power to low to turn off the LCD
- delay(3000);
- digitalWrite(BATTERY_DISCONNECT, HIGH); //Sets Sensor power to high to the PIC controllers are getting 6v
- digitalWrite(DSP_DISCONNECT, HIGH); //Sets the LCD power to high to turn on the LCD
- }
Thanks for helping!