Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with direction selector - with proposed fix #10

Open
derekclawson opened this issue Apr 29, 2024 · 0 comments
Open

Issue with direction selector - with proposed fix #10

derekclawson opened this issue Apr 29, 2024 · 0 comments

Comments

@derekclawson
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant