DIY Brushless Speed Control - Page 21 - RC Groups
Thread Tools
Oct 16, 2012, 08:33 PM
Registered User
hello snackescb
can make the circuit, load the program for c8051f330 of silab?
I just loaded circuits for avr and pic, can you help me?
Sign up now
to remove ads between posts
Oct 17, 2012, 08:54 AM
Registered User
Originally Posted by snakescb
Hi again,

Ok, attached you can find my simple implementation for scilabs controllers. Not perfect yet, still working on, but I already made a lot of flights using this FW with some turnigy plush 12 esc's. I am developing the code in Ride7 and it is compiled using the RKit-51 on a hobbyist license.

Some ideas how to make motor startup smoother?

looking forward to receive some feedback

im not good with assembly .. but i also build a ESC atm. ..

the startup works smooth with about 25% PWM (depending on input voltage) i dont did anything special. so here is generally how i do it:

rotorState = 0

  if(rotorState == 0){
     rotorState = 1;
  }else if(rotorState == 1){
     rotorState = 2;
  } .. so on
to get rid of some ADC interrupt noise i do some edge verification in startup phase. delayed by arround 5us atm. 3 times.


compInterrupt(){ // backEMF interrupt
    if(edge != exepted edge) return;
    delay 5us;
    if(edge != exepted edge) return;
    delay 5us;
    if(edge != exepted edge) return;

i use 40 goodies (successful backEMF interrupts in a row)

here is a video .. active freewheel works also .. as you can see on the voltage display :P (the power supply dont likes it)

CIMG4088 (0 min 0 sec)

regards felix
Last edited by juuuut; Oct 17, 2012 at 11:38 AM.
Oct 18, 2012, 04:37 PM
Registered User
Hi Felix,
that looks very good.Nice startup response.

go on and make it a sucsess

grz B.
Oct 19, 2012, 02:38 AM
Registered User
Hi Felix....

this is quite impressive... I still have to work on my startup until I reach this Thanks a lot for your help...
Oct 23, 2012, 10:38 PM
Another one on the way...
ysolomon's Avatar
Does anybody use any BLDC development kit?
I'm thinking about using this TI kit:

Feb 12, 2013, 07:20 AM
Registered User
Hi Felix, thanks a lot for posting this!