Lukaser
Posts: 1
Joined: Sun Oct 07, 2012 4:49 pm

Brushless motorcontroll

Sat Dec 08, 2012 11:09 am

Is it possible to control this http://www.hobbyking.com/hobbyking/stor ... oller.html

Brushless Motor(40-400hz) with the python gpio http://codeandlife.com/2012/07/03/bench ... pio-speed/

Thanks in advance,
Lukas

User avatar
alexeames
Forum Moderator
Forum Moderator
Posts: 2869
Joined: Sat Mar 03, 2012 11:57 am
Location: UK
Contact: Website

Re: Brushless motorcontroll

Sat Dec 08, 2012 2:21 pm

You can do it with hardware pwm control if you are using a brushless ESC to control the motor. The pwm control can be driven by wiringpi for python using port 18.

If you want to see an example of how that is done, you can look in the Python Gertboard program motor-wp.py which you can get from here...

http://RasPi.TV/downloads

Note that you will have to look up the pwm settings for this. They will not be the same as in the example, which is for a brushed motor on the Gertboard.
Alex Eames RasPi.TV, RasP.iO

Return to “Python”