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

One Pedal Driving / Reverse Button #534

Open
Spb2005 opened this issue Jan 14, 2025 · 0 comments
Open

One Pedal Driving / Reverse Button #534

Spb2005 opened this issue Jan 14, 2025 · 0 comments
Labels
question Further information is requested

Comments

@Spb2005
Copy link

Spb2005 commented Jan 14, 2025

Variant

HOVERCAR

Control type

FOC

Control mode

Torque

Description

I am building an electric Bobbycar that uses a single standard potentiometer for acceleration. I want it to brake automatically when releasing the accelerator, so a one-pedal operation.

Initially, I tried using voltage mode, but the braking was too aggressive. To address this, I switched to torque mode. While experimenting with the electric brake option, I encountered an issue where the system oscillates at a standstill. Adjusting the settings hasn’t resolved these oscillations.

Ideally, the braking force should not be constant but rather dependent on speed or accelerator input. A PID loop would be ideal for this behavior. By “accelerator-dependent,” I mean that if you are driving at a constant speed and release the accelerator, the braking force should depend on the difference between the current speed and the desired speed (i.e., the speed dictated by the accelerator position).

Additionally, I’d like to use the "double-brake-tap" feature with a button while disabling the standard brake input. The concern here is that leaving the brake input active and accidentally pressing the button at full speed would be disasteris.

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

No branches or pull requests

1 participant