Electronic – How to build hall sensor based PWM dimmer

hall-effectpwm

So there is a hall sensor on a scooter throttle and it's missing the speed controller. I tested the sensor and it does work. 5V in, and with full throttle it's about 4V and 0.9 when closed.

I want to make a pwm 'dimmer' (actually a motor speed controller which are similar) but I can't find a way except using arduino to measure the analog volts and calibrate it into a 0-255 value which I did last night.

But can someone tell me if this can be done with an op amp and 555, and tune it to have 0-100% duty cycle? The 0% is important as the motor shouldn't start without throttle, but also should be able to reach near 100%.

Thanks

Best Answer

I expect a microcontroller with an ADC and a timer with output for pwm will be easiest. If you do want an analogue solution, you might look at comparator type relaxation oscillators. See http://www.linear.com/solutions/1417 for example.