Yet another BLDC controller
Posted: Mon Aug 19, 2013 6:06 pm
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
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