Hall effect pedal with PWM speed controller?

ggossett

New member
Messages
2
Reaction score
1
Location
San Francisco
Hey!

I have been building a fully custom electric go kart for a couple years now, using spare parts as I find them (with some new stuff).

My power system uses a 24v 1865w motor (formerly used for direct drive on battlebots).

I have an old speed controller that matches with the motor called a "victor 883."

The speed controller has an input for batteries, output for motor, and a PWM input for an accelerator or other speed control mechanism (at least I use it for an accelerator).

Currently, I'm using a little servo tester device to control the kart. It receives its own power separately, and outputs a PWM signal that i can adjust with a knob.

I can use this to speed up and slow down the go kart, as well as go in reverse.

Now I want to upgrade the controller to a pedal, so I purchased an electric foot pedal off of amazon. Search: "Qiilu Accelerator Throttle Pedal Assembly"

The pedal has 3 wires, a red, a yellow, and a green one. From one of the reviews, I think its a "hall effect" pedal (analog?).

ChatGPT said that I could just plug the wires into the PWM input and it would work. This did not work.

I presume this is because the PWM input is digital and the pedal output is analog.

Could someone tell me how to get the PWM input and the analog output to work with each other?

Thanks!
ggossett
 

busted_blocks

Active member
Messages
110
Reaction score
99
Location
Dongguan, China
It's not 100% clear what the signals look like that your motor controller is expecting. If you're using a servo tester and it's outputting in a hobby type servo format, the controller is likely measuring pulse length. It's not the same as a constant PWM signal that's filtered and interpreted as a voltage. One is a digital timing of a pulse, one is ADC reading of a voltage. You can convert the 2 with an Arduino or similar device but you will have to do some coding or find a suitable example. Arduino has libraries for servo control and reading an analog voltage from the pedal is pretty easy to. analogRead(pin) to read the pedal and then output that value to a pin connected to your throttle input.

Here is an example that's pretty close. The potentiometer acts pretty close to the throttle pedal.
 
Top