Page 1 of 1

Yet another BLDC controller

Posted: Mon Aug 19, 2013 6:06 pm
by kjellhar
Hi everyone,
I have started a small project to educate myself in Chibios, STM32 programming, and of course the art of making a BLDC motor turn. I have made an add-on card to the STM32F4Discovery, and I am currently writing software. The motor started to turn for the first time only a couple of hours ago, so it made sense to brag about it. I have not implemented the zero crossing detection yet since I wanted to measure with an oscilloscope on a running motor first. I'll add functionality in the coming weeks, and once I have tested the electronics, I will make it public for anyone to build. It's quite cheap, with all the components available at Farnell, and the PCB is a two layer card made at OSHPark.

Here is a video of the running motor: http://www.youtube.com/watch?v=LCDkIbIY6yk

And here is the source code: https://github.com/kjellhar/chibi-bldc

Also, I have implemented a pretty nice USB module on top of the chibios driver. If you want to talk USB, just plug it in and you can push packets through Chibios mailboxes. Libusb in the other end. I'm using Python and C on a Mac, and it is very easy.

Cheers,
Kjell

Re: Yet another BLDC controller

Posted: Mon Aug 19, 2013 7:42 pm
by Giovanni
Ok, you gained bragging rights :)

Good work.

Giovanni

Re: Yet another BLDC controller

Posted: Mon Aug 19, 2013 9:50 pm
by Tectu
Giovanni wrote:Ok, you gained bragging rights :)

Totally agreeing with this one. Impressive work, really well done!


~ Tectu

Re: Yet another BLDC controller

Posted: Tue Aug 20, 2013 5:10 pm
by kjellhar
Thanks,
I have had some more progress, but I will post more when I get the zero crossing detection going.