Brushless ESC and PWM Circuit
Brad Bentley
Posts: 11
Hi, i have the BS2IC, I have gotten up past the servo section in the book, made a few experimental circuits with the programming, I have a basic understanding of how it all works.
But what I want to do is control a 6 pole brushless motor its a c4 dynamite 540 motor, 7700kv 7700rpm/volt. heres the specs
I am looking to run the motor full tilt, i dont really care about·controlling the speed of the motor as long as its full tilt, because this motor will be on a switch·circuit, the basic off/on. Im not sure if I can get it to do what I want, I know the programming end of it fairly well, but what stumps me is how to build the ESC portion.
I totally understand the PWM and how that all works with the servo. But I have also heard that I could use the servotest.bs2 with the ESC so it shoots pulses to the ESC driving the motor, using the same circuit to drive the servo as in the book.
If I could make·the ESC and PWM·all in one circuit with the bs2 that would be awesome, so a quick rundown of what im looking for:
Max rpm with the c4 brushless, which will be around 110,000 rpm. the motor has 6 poles. Each pulse I believe turns the motor a 1/6th of the way. so 660,000 pulses a minute. I would like to turn the unit on and off with a switch. And also a clue on the programming end of it.
But what I want to do is control a 6 pole brushless motor its a c4 dynamite 540 motor, 7700kv 7700rpm/volt. heres the specs
I am looking to run the motor full tilt, i dont really care about·controlling the speed of the motor as long as its full tilt, because this motor will be on a switch·circuit, the basic off/on. Im not sure if I can get it to do what I want, I know the programming end of it fairly well, but what stumps me is how to build the ESC portion.
I totally understand the PWM and how that all works with the servo. But I have also heard that I could use the servotest.bs2 with the ESC so it shoots pulses to the ESC driving the motor, using the same circuit to drive the servo as in the book.
If I could make·the ESC and PWM·all in one circuit with the bs2 that would be awesome, so a quick rundown of what im looking for:
Max rpm with the c4 brushless, which will be around 110,000 rpm. the motor has 6 poles. Each pulse I believe turns the motor a 1/6th of the way. so 660,000 pulses a minute. I would like to turn the unit on and off with a switch. And also a clue on the programming end of it.
Comments
I assume the PWM circuitry is built into the ESC. You should be able to get them at Tower Hobbies or other RC hobby store.
·
·· Some older ESC I have seen still require a servo but I’m sure many now do have the internal circuitry.· Guess I am showing my age.· The ones I refer to also use a wire-wound rheostat for the speed control.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I was thinking i would just take it down to a RC hobby place, and paying them a few dollars to get it setup for me. I have my old homework board i am using to run this, the pulsout tests out fine for a regular servo. I was planning on using this setup for the project im running. and then I would have spare room on the board for extra programming storage. When i want to switch the speeds I could just load in another program.
·
Here is the code modified so you only have to input the duration (speed setting) you want and not the hold time which needs to be constant. This is setup for pin 14 to output the pulse change it to what pin you are using.
' What's a Microcontroller - ServoControlWithDebug.bs2
' Send messages to the BASIC Stamp to control a servo using
' the Debug Terminal.
' {$STAMP BS2}
' {$PBASIC 2.5}
counter Var Word
duration Var Word
DO
DEBUG "Enter PULSOUT duration:", CR
DEBUGIN DEC duration
DEBUG "Servo is running...", CR
FOR counter = 1 TO 150
PULSOUT 14, duration
PAUSE 20
NEXT
LOOP