I've experienced some issues with interference on the "forward" input on the ESP32. When the gear shifter is in reverse, I'll get random spikes of voltage on the "forward" input that will cause the car to randomly jump forward. (this only happens when in reverse, forward is weirdly unaffected) In playing around with what triggers these voltage spikes, it appears that static electricity may be the culprit? If I walk around and get close to the control board, it will jump every time, but only for a little bit. Seems to be triggered by movement in proximity to the esp32.
I have duplicated this exact same issue on 2 separate sets of hardware... maybe it's my particular ESP 32 variant?
Solution:
Create a separate input only from the gear shifter to indicate if it is in forward or reverse. The pedal will also have its own input to dictate how much throttle will be applied.
The ESP 32 will see what direction is currently selected and output the signal appropriately to the motor driver according to the pedal input.
Does this make sense?
I've experienced some issues with interference on the "forward" input on the ESP32. When the gear shifter is in reverse, I'll get random spikes of voltage on the "forward" input that will cause the car to randomly jump forward. (this only happens when in reverse, forward is weirdly unaffected) In playing around with what triggers these voltage spikes, it appears that static electricity may be the culprit? If I walk around and get close to the control board, it will jump every time, but only for a little bit. Seems to be triggered by movement in proximity to the esp32. I have duplicated this exact same issue on 2 separate sets of hardware... maybe it's my particular ESP 32 variant?
Solution:
Create a separate input only from the gear shifter to indicate if it is in forward or reverse. The pedal will also have its own input to dictate how much throttle will be applied. The ESP 32 will see what direction is currently selected and output the signal appropriately to the motor driver according to the pedal input. Does this make sense?