STMF3 Discovery & Motors (RC car)

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Pasquale
Posts: 3
Joined: Tue Jun 04, 2013 9:52 am

STMF3 Discovery & Motors (RC car)

Post 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" !
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STMF3 Discovery & Motors (RC car)

Post 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
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

Re: STMF3 Discovery & Motors (RC car)

Post 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.
gmb42
Posts: 31
Joined: Tue Oct 02, 2012 8:09 pm

Re: STMF3 Discovery & Motors (RC car)

Post 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.
Pasquale
Posts: 3
Joined: Tue Jun 04, 2013 9:52 am

Re: STMF3 Discovery & Motors (RC car)

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STMF3 Discovery & Motors (RC car)

Post 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
Pasquale
Posts: 3
Joined: Tue Jun 04, 2013 9:52 am

Re: STMF3 Discovery & Motors (RC car)

Post by Pasquale »

Understood, thanks.
BouchkatiTarek
Posts: 1
Joined: Fri Jul 19, 2013 5:49 pm

Re: STMF3 Discovery & Motors (RC car)

Post 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
Post Reply