Page 1 of 1

STMF3 Discovery & Motors (RC car)

Posted: Mon Jun 10, 2013 12:32 pm
by Pasquale
Hi all,

first of all I apologise for my bad english. Here's the problem: I'm a neophyte in the field and my "dream" is to make a project about a rc car driven by an accelerometer.
I've started from the basics ( combination of leds, gyroscope) and my next goal is to pilot a little motor (I've taken one from an old rc car), but I can't find anywhere any guide to make it run.
What should I study? From where sould I start?


edit: ouch, "STM32F3 Discovery" !

Re: STMF3 Discovery & Motors (RC car)

Posted: Mon Jun 10, 2013 12:45 pm
by Giovanni
Hi,

It depends on the kind of motor, if it is a normal DC motor that you could use a PWM output in order to drive it, you would need some kind of power driver too, a power mosfet for example.

Giovanni

Re: STMF3 Discovery & Motors (RC car)

Posted: Mon Jun 10, 2013 8:37 pm
by mobyfab
It's most likely a sensorless brushless motor, so he'll need to control it via advanced timers or use a dedicated controller.

ST has a motor control firmware library, you should have a look.

Re: STMF3 Discovery & Motors (RC car)

Posted: Mon Jun 10, 2013 11:24 pm
by gmb42
I agree about the likely motor type, although an older car motor might be brushed. Either way to get sufficient power into the motor will need a power driver and I think the best bet would be a standard rc car electronic speed controller (esc). They are available for brushed or brushless, and do the job very well and start from a few pounds/euros/dollars. They take a standard rc servo signal (1 to 2 mS) and for a car they can reverse the motor signals either side of the nominal position. The awkward bit will be matching the ESC current capabilities with the motor.

Re: STMF3 Discovery & Motors (RC car)

Posted: Sat Jun 29, 2013 8:52 am
by Pasquale
Thanks for your answers, very useful.
Now, I would to connect the board to a power supply. Which product/battery do you recommend to use for the purpose?

Re: STMF3 Discovery & Motors (RC car)

Posted: Sat Jun 29, 2013 2:26 pm
by Giovanni
The kind of battery is not very important, you need a voltage regulator because the board requires 5V, the L7805 for example.

Giovanni

Re: STMF3 Discovery & Motors (RC car)

Posted: Tue Jul 02, 2013 9:16 am
by Pasquale
Understood, thanks.

Re: STMF3 Discovery & Motors (RC car)

Posted: Fri Jul 19, 2013 5:54 pm
by BouchkatiTarek
Hi,

visit this git repository it can help you

https://github.com/BouchkatiTarek/ChibiOS-DCMotorDriver
an introduction can be found here : http://bouchkati.hebergratuit.com/blog1 ... ibrary-for