slot car controller based on Arduino with speed control and brakes

Thread Starter

dante1

Joined Nov 30, 2010
9
I need a slot car controller based on Arduino with speed control and brakes. The motor speed is controlled with an H-bridge but the brakes are the problem. The brakes must be adjustable from no brakes to full brakes and everywhere in between and is controlled by a pot...
A Schematic and sketch would be very helpful.
Does anybody have some ideas?
 

ronv

Joined Nov 12, 2008
3,770
I need a slot car controller based on Arduino with speed control and brakes. The motor speed is controlled with an H-bridge but the brakes are the problem. The brakes must be adjustable from no brakes to full brakes and everywhere in between and is controlled by a pot...
A Schematic and sketch would be very helpful.
Does anybody have some ideas?
You should be able to do it with regen braking. If you pwm the high side FET while leaving the bottom on.
Then turn on both lower FETs when the control is at o. This will short out the motor. There will be no coast so you have to drive it all the time.
 

dendad

Joined Feb 20, 2016
4,641
As you are using a H bridge, to brake more then shorting the motor, drive the motor in reverse a little. The pot can control the level of reverse used for braking.
It would be a good exercise to have a go at writing the sketch yourself. And then come back for help if you need it. That is the best way to learn.
Maybe have a button on the controller that is Brake, and use the same pot as forward but just scale it to suit so full reverse (brake) is not the same as full forward.
 
Last edited:
Top