Does anyone on here know if the capacitor-resistor combo attached to a pwm output pin of an Arduino gives a decent analog output?
I'm getting somewhere now. It's not giving full throttle but it is giving some throttle.
I had to hook up the throttle unit in parallel with the Arduino for the bike to accept inputs from the Arduino.
This might work out ok because i wanted to have a throttle lever and pedal assist anyway.
More testing to do still!
control a transistor with the potentiometer..
1. ardie -> potentiometer -> transistor -> motor control voltage
not
2. ardie -> potentiometer -> motor control voltage
#1 is probably how it's done inside the hall effect sensor chip. there is probably more than just hall effect sensor + amp etched on that silicon chip. Identify the hall chip if you can and grab the manufacturer's data sheet if possible to verify.