STMF3 Discovery & Motors (RC car)

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

Moderators: barthess, RoccoMarco

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

STMF3 Discovery & Motors (RC car)

Postby Pasquale » Mon Jun 10, 2013 12:32 pm

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: 13085
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 759 times
Been thanked: 637 times
Contact:

Re: STMF3 Discovery & Motors (RC car)

Postby Giovanni » Mon Jun 10, 2013 12:45 pm

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: 452
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 12 times
Been thanked: 18 times

Re: STMF3 Discovery & Motors (RC car)

Postby mobyfab » Mon Jun 10, 2013 8:37 pm

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
Location: Aberdeenshire, UK

Re: STMF3 Discovery & Motors (RC car)

Postby gmb42 » Mon Jun 10, 2013 11:24 pm

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)

Postby Pasquale » Sat Jun 29, 2013 8:52 am

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: 13085
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 759 times
Been thanked: 637 times
Contact:

Re: STMF3 Discovery & Motors (RC car)

Postby Giovanni » Sat Jun 29, 2013 2:26 pm

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)

Postby Pasquale » Tue Jul 02, 2013 9:16 am

Understood, thanks.

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

Re: STMF3 Discovery & Motors (RC car)

Postby BouchkatiTarek » Fri Jul 19, 2013 5:54 pm

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 5 guests