Welcome to OpenBuilds Community

Signup today and join in on the fun!

Sign Up

Software speed control of a brushless dc (Bldc) motor from Mach3.

Discussion in 'Other Builds' started by Tweakie, May 21, 2014.

  1. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Tweakie published a new build:

    Read more about this build...
  2. 3DMON

    3DMON Well-Known Builder

    I am looking forward to this. I've never played with PIC though.
    Cool stuff Tweakie!
  3. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Hi 3DMON,

    Very nice to see you here - I have been following your exploits on the Phlatforum over the last few years with great interest. :thumbsup:

    This project will start to unfold as I get further along. So far I have only tested with a servo but I have now ordered a replacement outrunner for my Pond Flier - when it arrives (from China) I will perhaps be able to get down to some serious testing.

    I have isolation routed a couple of simple circuit boards (always make a spare) and one will be assembled up later on in the week - so far so good. ;)

    Tweakie.

    DSC01710a.jpg
  4. bit53b

    bit53b Well-Known Builder

    brilliant :)

    what type of copper clad board are you using there for milling, is it HP?
  5. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    It's fibreglass but the actual grade of the material is unknown.

    Tweakie.
  6. David the swarfer

    David the swarfer OpenBuilds Team Staff Member Builder

    strange coincidence, I was just thinking about this last week. except I'm thinking Arduino based hardware and was also thinking about monitoring the motor speed 'somehow' and using PID to maintain speed under load. could be just a coil next to the motor to generate a few volts that can be read into the A/D.

    a sideways thought is that a 450 size helicopter motor would be just about right for a spindle, light weight, high RPM, not expensive.
    kram242 likes this.
  7. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Great thinking David - there has to be many different possibilities by which an outrunners speed can be computer controlled.
    I certainly like the PID idea of feedback to maintain speed under load. :thumbsup:

    Tweakie.
  8. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Robert Hummel likes this.
  9. Robert Hummel

    Robert Hummel Custom Builder Staff Member Builder

    What software do you use to generate the code for your PCBs as that is part of the puzzle I need to complete my Stinger PCB mill :)
    I know eagle has a plug in that generates g-code but have yet tried it
  10. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Hi Robert,

    Eagle is best for auto layouts but for simple circuits like this I use FrontDesign for the .bmp then Aspire to vector the outline and create the GCode.

    Tweakie.
  11. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    After demonstrating the prototype to a friend, he suggested that a manual override switch (controlling the outrunner’s speed with a potentiometer) would be a nice addition as it would then also allow usage by those without PWM availability from their machine controllers.


    As the PIC12f683 incorporates an Analog to Digital module it would be a simple enough task to add a switch (Manual / Automatic) and then use a potentiometer (potential divider between 0V and 5V) to create the necessary 1mS to 2mS output pulses to drive the outrunner’s ESC.

    The switch and potentiometer could, of course, be substituted with a single rotary switch and fixed resistors to produce off and 3 or 4 pre-set speeds for the outrunner – there are many possibilities here.


    A further suggestion was made (on another forum) to use a GOV / ESC for the outrunner’s control as this could allow for (more or less) constant RPM under varying load conditions. GOV / ESC’s do require a bit of software setting-up but those using them with RC Heli’s tell me it is very easy to do and they work extremely well indeed. I have never used one so I need to do a bit more investigation into this possibility.


    Tweakie.
    kram242 likes this.
  12. 3DMON

    3DMON Well-Known Builder

    Good ideas there Tweakie. I'm still following this thinking I will still build one some day. I was looking into programming PIC and I was hoping to find a simple inexpensive DIY or one I can buy programmer. What are you using for programming the chip?

    I've used gov mode in esc's in my heli's and that is a good idea. It isn't hard to do as the esc manual will tell you how to get into it.
  13. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    I am still using an extremely old Peter Crowcroft design PIC programmer but there are plenty of newer designs (complete with the prog. software) available on the bay - extremely cheap from China.

    Thanks for the info - I will start searching for a cheap GOV / ESC to experiment with. :)

    Tweakie.
  14. Robert Hummel

    Robert Hummel Custom Builder Staff Member Builder

    Doing some awesome work here bud!
    :thumbsup:
  15. Tweakie

    Tweakie OpenBuilds Team Staff Member Builder

    Thanks guys.

    I have now updated the build, adding a new circuit diagram to show the potentiometer speed control and PWM / Manual selector switch positions and I have also added a new HEX file (under the files tab) which covers the software changes as mentioned in post #11.

    Tweakie.

Share This Page