- Code: Select all | TOGGLE FULL SIZE
pinMode(flt, INPUT_PULLUP);
My loop looks like this:
- Code: Select all | TOGGLE FULL SIZE
void loop() {
if(digitalRead(flt) != LOW) {
// go through digital control functions
// go through PWN control functions
} else {
SOS();
}
}
Unless I am having a complete brain fart here, the conditional check within the loop should keep it from going to the SOS function unless there is an overcurrent/thermal shutdown condition present on the DRV8833.
It only seems to happen when I iterate through the digital and PWM functions within my loop() function. If I disable them, it never makes it to the SOS function.
Can anyone provide any insight into why this is happening?