585,902 active members*
4,068 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 21
  1. #1
    Join Date
    Aug 2011
    Posts
    0

    Question DIY Electronics?

    Is there any info somewhere on building your own electronics for a cnc machine?

    I am an electrical engineering student and would like to make my own motor controllers, etc, for a cnc machine I plan to build in the future but I would prefer to have some sort of guide to help me. I plan on eventually converting a SX3.

    Thanks!

  2. #2
    Join Date
    Dec 2003
    Posts
    24221
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    May 2005
    Posts
    3920

    It depends upon what you are looking for.

    For example there are many approaches to stepper comtrol on the net, you just need to do the required searches. Likewise chip manufactures have prints, guides and even complete development systems. Your solution can be as simple or complex as you want though if you are a beginner at design the obvious approach is to go for a simpler solution for controller #1.

  4. #4
    Join Date
    Nov 2011
    Posts
    54
    hey ktkg

    I am a recently graduated mechatronics engineer, and i gave thought to doing the same thing. As others have said, the solution is as complex as you want it to be, depending on how much you want to do yourself.

    what i will say is this; be aware that you are VERY unlikely to end up with a better end product than somthing you buy off the shelf. Marketed motor drivers have large amount of post-design testing done to account for wide ranges of operating conditions etc.

    Dont take this as discouragement, as i am a HUGE fan of DIY, and i do a lot of it myself. If you are doing it as a learning experience, or for the satisfaction of completing it yourself, then i say go for it. But if you just want to end up with a good driver, it will be cheaper/more relaible to just buy something.

    Ok warnings aside, there are alot of motor driver chips avaliable, some are just control ones, designed to be used with transistors or FETs. Others are total intergrated solutions capable of directly driving motors. I would suggest working out what size motors you need to drive first.

    Also think about microstepping. this is a little more difficult to implement, but is required for any decent level of accuracy/smoothness on a mill. All the gecko drives use 10x microstepping and then jump up to 1/2 stepping at higher speed. This works pretty well.

    Basically, just do as much reading as possible on the subject before you start anything.

  5. #5
    Join Date
    Jul 2009
    Posts
    205
    Quote Originally Posted by kensbey View Post
    what i will say is this; be aware that you are VERY unlikely to end up with a better end product than somthing you buy off the shelf. Marketed motor drivers have large amount of post-design testing done to account for wide ranges of operating conditions etc.

    seconded.

    not to say i am against tinkering. In fact, I have a couple of homemade driver boxes on the bench i am tinkering with, and one i have even used reliably for years. i did, however, build them before modern commercial drivers were available for home cnc users.
    so, i have built drivers myself, and they worked. nowadays though, i just buy something off the shelf. they are going to be far and away superior to whatever it is you plan on building yourself - and by quite a bit - unless you intend to spend one hell of a long time refining their development.
    so, if you have an eye toward competing in the market for drivers and plan to manufacture what you develop for sale, it would justify the development time at that point. if you just want to save some money on drivers for personal use, you are best served buying them off-the-shelf. they are not only better, they are cheaper at this point than the parts to build your own.

  6. #6
    Join Date
    May 2010
    Posts
    28
    There is a good deal of information about building your own electronics at PMinMO.com. I built one of his controllers and breakout board and have been happy with the results.

    He sells bare boards or if you choose you can start from a schematic and completely roll your own.

  7. #7
    Join Date
    Aug 2011
    Posts
    0
    Thanks for the advice guys, very helpful. Since I wanted to do some sort of electrical project anyways, I will probably still try to build my own. Its a shame that I will have to sacrifice performance though, especially if I'm not going to be saving money.. As long as I can get it to be accurate enough I wont mind.

    In my mind, as long as it supports microstepping, and it steps when the computer tells it to, and has enough torque to not miss a step, it will be good. Are there more variables than just that? Because that doesn't seem too hard. I don't care that much about speed as long as it get to the right place.

    I will probably be driving nema 23 or 34 or both.

    There is a good deal of information about building your own electronics at PMinMO.com. I built one of his controllers and breakout board and have been happy with the results.
    What kind of motors are you using with them?

  8. #8
    Join Date
    May 2010
    Posts
    28
    Quote Originally Posted by ktkg View Post
    What kind of motors are you using with them?
    I had already purchased NEMA 23 bipolar steppers so I used his L297-298 controllers. I used his unpopulated boards but he has the images out there for someone who wants to do their own PCB's.

    I'm running my steppers at 24V & 2A which works although I'm certainly not going to set any speed records that way.

    He has designed for both bipolar and unipolar steppers so you can design a system using either type.

  9. #9
    Join Date
    Aug 2011
    Posts
    0
    @ dogsop
    Cool, when I get a chance I'll look into that as well as the link Al_The_Man posted.

    Do you guys think nema 23's would be sufficient for a BF20 conversion with a 4th axis? Or should I go with 34's?

  10. #10
    Join Date
    Nov 2011
    Posts
    54

    stepper size

    Do you guys think nema 23's would be sufficient for a BF20 conversion with a 4th axis? Or should I go with 34's?
    remember to look at more than just holding torque. you probably know that stepper torque drops dramatically as speed increases, but what you may not know is that the rate is very different for different steppers.

    A smaller stepper sized correctly may enb up having more torque at the speeds you most commonly move at than a larger one.

    look at torque/speed curves more than rated torque during stepper selection. also take note of the voltage used for rated torques

  11. #11
    Join Date
    Aug 2011
    Posts
    0
    Good advice, thanks. Also, it looks like while micro stepping, the holding torque per micro step goes down substantially depending on how many microsteps per full steps your using.

    I suppose the question is - whats the minimum amount of microstepping I should do for best accuracy? And what is the minimum torque/microstep I would want while cutting something like stainless?

    Here's a chart:

    Microsteps/full step Holding Torque/Microstep

    1 100.00%
    2 70.71%
    4 38.27%
    8 19.51%
    16 9.80%
    32 4.91%
    64 2.45%
    128 1.23%
    256 0.61%

    MICROMO - Microstepping: Myths and Realities

  12. #12
    Join Date
    Feb 2006
    Posts
    7063
    You are significantly misunderstanding what that page says - pay particular attention to the use of the word "incremental".

    10X microstepping is pretty much the point of diminishing returns. Beyond that, it's bragging rights, with little or no practical value in the real world.

    You really should study this site until you FULLY understand all of it:

    Jones on Stepping Motors

    Regards,
    Ray L.

  13. #13
    Join Date
    Aug 2011
    Posts
    0
    Ill probably just go with these.

    High-Torque Stepper Motor, Stepper Motor, Driver, Stepper Motor kit, DC Servo Motor, DC Servo Motor kit, Stepper Motor Power Supply, CNC Router, Spindle, and other Components. Automation Technology Inc

    Since it is what Hoss recommends for the BF20 build and the torque curve looks pretty solid from 100 - 450 rpm.


    Thanks Himy for making me aware of my mistake, I'll definitely check out that link! I admit I don't know much about stepper motors right now but definitely want to learn

  14. #14
    Join Date
    Nov 2011
    Posts
    54
    This is where you need to start thinking from a systems point of view. Will you be using ballscrews? and what pitch?

    if you assume a 5mm pitch (pretty standard) (i am aussi so i work metric) then 1 step = 5/200 = 0.025mm

    4 microstepping then would be 0.00625mm. I highly doubt that you are going to need more accuracy than this, as you are going to get many times this error in column flex etc anyways.

    geckodrives really only to to 10x microstepping for smoothness i think.

  15. #15
    Join Date
    Aug 2011
    Posts
    0
    I read up on stepper motors and micro stepping..

    The way I understand it, with regards to torque, is that since multiple rotor teeth are energized in order to orient the rotor in a position between the two steps, the magnetic field holding the rotor in place is not as strong, and hence you get a lot less torque per microstep then you would per step. This doesn't mean that you will miss a step though, because the torque on the rotor increases after successive microsteps and eventually the rotor will be able to turn to catch up to the current position.

    Ideally I suppose you would want your motor to be powerful enough, or at least operate for the majority of the time in a region that supplies enough torque so that at say 1/4 or 1/8 microstepping, (or higher) you will not normally miss a microstep. This will give you the greatest accuracy and anything else past that will only aid in reducing the noise, resonance problems, etc. But will actually give you less accuracy since at times, in the software the motor will be moving when in reality it hasn't moved yet.

    Another potential drawback of microstepping is that the motor cannot hold its position accurately against a load, but I don't know if that would come into play. Most stepper drivers probably implement some sort of fix for this.

    Also, a high holding torque could actualy hinder microstepping abilities since it would likely take more torque to turn it, making you miss more microsteps.

    Feel free to correct me if I'm wrong about anything btw. lol

    I wish I actually had a mill right now, then I might be able to somewhat accurately determine how much torque I would actually need for the speeds I want, and to get the most out of microstepping. For instance, if I knew how much everything weighed, and approx how much friction loss there would be, I could caluclate how much torque I would need at a certain acceleration or speed for milling a certain material, and make sure it could do atleast 1/4 microstepping without missing any microsteps. Then I could get the most efficient motor and ballscrew combination. Thats what a real engineer would do

  16. #16
    Join Date
    Jun 2008
    Posts
    128
    You won't find a better resource than Mariss for stepper design.

  17. #17
    Join Date
    Jun 2008
    Posts
    128
    Sorry posted before finished typing . check out these two topics by Mariss

    http://www.cnczone.com/forums/steppe...ng_have-5.html

    http://www.cnczone.com/forums/genera...torial-26.html

  18. #18
    Join Date
    Mar 2009
    Posts
    533
    I started to learn stepper controller concepts with this old thread.

    http://www.cnczone.com/forums/steppe...epping-42.html

    From there I bought a G540 lol.

  19. #19
    Join Date
    Jan 2009
    Posts
    334

    Servo System

    Quote Originally Posted by ktkg View Post
    Is there any info somewhere on building your own electronics for a cnc machine?

    I am an electrical engineering student and would like to make my own motor controllers, etc, for a cnc machine I plan to build in the future but I would prefer to have some sort of guide to help me. I plan on eventually converting a SX3.

    Thanks!
    Most of my work is here:
    http://www.cnczone.com/forums/bencht...red_candy.html

    I derived it from Glaister Consulting Services
    dspic - servo

    Hope this helps,

    Iron-Man

  20. #20
    Join Date
    Aug 2011
    Posts
    0
    Great links guys thanks! I think everything Mariss has ever said should be compiled together and stickied lol, he's a genius when it comes to stepper motors.

    Anyways, there is definitely more to this than i had initially anticipated. I might have to reconsider whether or not I want to go the DIY route. If time wasn't an issue I would totally go for it. I should have started this a month or two a go.

Page 1 of 2 12

Similar Threads

  1. Electronics for FLA-300
    By PortlandGTS in forum DIY CNC Router Table Machines
    Replies: 0
    Last Post: 07-27-2011, 01:25 AM
  2. DIY electronics
    By HCNC in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 05-30-2011, 11:04 PM
  3. Looking to buy some electronics
    By Biff in forum DIY CNC Router Table Machines
    Replies: 23
    Last Post: 04-30-2010, 12:40 AM
  4. Electronics...
    By Stiggero in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 01-22-2010, 12:12 AM
  5. What electronics??
    By saddledance in forum DIY CNC Router Table Machines
    Replies: 7
    Last Post: 06-08-2008, 06:58 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •