First-Ever CNC project

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • vinito
    Senior Member
    • Jan 2004
    • 606

    First-Ever CNC project

    Hi Guys.
    Just thought I'd scatter some evidence here from my latest project.

    I've wished for a CNC machine here at the house for many years. I have a lot of years experience programming, setting up and running various CNC machines, but you never have the opportunity to just fiddle with "the man's" machines since they are constantly making parts. I realized that I finally scavenged up enough crap to throw together that I actually have the workin's of a sumthin-er-nuther. I have an X-Y table with 16" x 16" travel and some linear rails & bearings that should give me about 14" to 16" of travel for the Z-axis too. This is pretty good travel for a small mill. The bearings will only allow relatively light duty removal of steel, but much more than a Sherline for instance.

    I had four identical Vexta stepper motors and a couple suitable power supplies, so all I had to buy was a driver board and a bunch of power resistors (due to the style of driver board I bought). A laptop wasn't absolutely necessary at this point, but it would be eventually and I found a cheap one on Craigslist so I pulled the trigger on that, which has already proven to be quite handy just in the past two days of owning it.

    I started out assuming I'd use the Linux EMC2 software, but now that I've tried the demo version of Mach3 I've changed my mind - it has tons more features and it's a lot easier to use.

    My approach is:
    1. Get the steppers working with minimal cost.
    2. Attach the working drive motors to a machine I build from stuff I've collected over the years. High on the design priority list is the ability to switch motors easily so I can change/upgrade them later. Basically this translates to cog-belt drive and plenty of clearance in all directions in case future motors are larger.
    3. Use what I come up with and get used to it. This allows me to analyze what I've got and where the weaknesses are.
    4. Upgrade things later as need & money allow.
    5. Enjoy steps 1 thru 4

    My stepper drive board came from Delagrange (http://www.dtllc.com/). It's pretty primitive and required the addition of a slew of power resistors, but I found the resistors for cheap and the board works pretty well for the money. Man! Those resistors generate some serious heat. Oh, well. This will be upgraded to something much better eventually (so far I'm thinking Gecko - maybe servos). For now the Delagrange board does OK and I'm sure it can make some parts.

    So the tally is: Delagrange board = $120, resistors = $40, laptop = $75, uhhh... I think that's it. $235 total. Not bad for a good start.

    Here are a couple clips showing test #1 with two motors and test #2 with four motors (though A-axis not shown moving in the clip) and the Y-axis attached to a linear slide.
    http://blip.tv/file/896048 Test #1
    http://blip.tv/file/917568/ Test #2
    The clips are pretty low quality, but you can get the gist of it anyway.

    More to come
    V
    Last edited by vinito; 05-19-2008, 12:24 AM.
  • Evan
    Senior Member
    • May 2003
    • 41977

    #2
    What the heck are all those resistors doing besides wasting power?
    Free software for calculating bolt circles and similar: Click Here

    Comment

    • vinito
      Senior Member
      • Jan 2004
      • 606

      #3
      They're for keeping the shop warm. You should get some for up north there. Could heat up a serious cup of coffee, soften plastic sheet for vacuum forming, maybe remove an embarrassing tattoo. Lots of different uses.

      But seriously - hell I don't know. No doubt it's amazingly inefficient. All I know is with this type of driver board, if you're running the motors at the rated voltage (slightly more than 2V) you don't need them, but when you use higher voltage to get better performance from the motors, you need to install a big honkin' power resistor so you don't fry stuff. I'm running at 24V which still isn't a lot, but the higher the voltage, the bigger wattage resistor you need. I just did a series/parallel thing to reach the specs I needed. Ideally I guess you'd just buy the one correct resistor-per-winding that you need (8 for four motors) but buying them from mouser gets into big money quickly... and all that for a low-quality drive. If the resistors weren't relatively cheap, I would have passed (and waited) and just got a better, more $$ drive system.

      The new drives with all the bells & whistles don't need resistors and they perform much better too in pretty much every facet. As I mentioned, this is just to get off the ground and I'll upgrade to a slicker system as soon as I determine which way I want to go and have the money to do so. Maybe not the optimum way to go about it, but if I didn't do it this way, I wouldn't have anything going like I do today and I'd be sitting around counting dying brain cells instead of learnin' sumthin'.
      Last edited by vinito; 05-19-2008, 02:50 AM.

      Comment

      • John Stevenson
        Senior Member
        • Mar 2001
        • 16177

        #4
        Good on you Vinito.

        Those drives, called LR drives are dated but as you say they are a start.

        Later on have a look at the new Gecko 250 /251 it's done testing and is due to be released in a couple of months.
        It's a 40 volt 3 amp drive with full protection and the core price is aimed at about $25 to $30 per axis.

        These are so smooth, power wise and feature wise they will really hurt the other drive makers in the 2.5 to 3 amp range.

        .
        .

        Sir John , Earl of Bligeport & Sudspumpwater. MBE [ Motor Bike Engineer ] Nottingham England.



        Comment

        • Evan
          Senior Member
          • May 2003
          • 41977

          #5
          I will assume then they are used for current limiting in place of a chopper drive. And yep, getting anything running is going to be instructive. The more difficult part may be reconizing when the hardware is the limit.
          Free software for calculating bolt circles and similar: Click Here

          Comment

          • vinito
            Senior Member
            • Jan 2004
            • 606

            #6
            "The more difficult part may be reconizing when the hardware is the limit."

            Hey, are you talking about the drives or my gray matter? I'm expecting my noodle power to hit the wall before the drive does, but hoping for the opposite.

            John,I haven't heard about those new Geckos. $30/per would be pretty amazing. Is that British or US $$ though. Either way it sounds quite affordable. I'll definitely check them out, but if they fall short compared to their finer pieces I'll probably leapfrog on up to as slick as I can afford. I'd like to step up to some high quality someday, but I don't mind skipping a tread here & there. I'll still need to ask around since I don't know much and I hope this forum is as helpful as it was when I last hung around.

            One question I already have is about the amperage ratings. My motors are labeled "4.5A" but I've heard that the drives don't necessarily have to be rated as high as the motor says to work properly. Is that true? If so maybe one of the new $30 Gecko 3A drivers would work OK. I don't want to worry that I'm constantly pushing the envelope and I'd certainly prefer to have a setup that I don't have to think about once it's set up and working.

            Anyways, thanks for the replies guys. Already learnin' stuff.

            Comment

            • Evan
              Senior Member
              • May 2003
              • 41977

              #7
              Hey, are you talking about the drives or my gray matter?
              Nope. The classic problem with computer controlled devices is distinguishing whether a problem is the fault of the software or the hardware. Some problems can be caused by either one and have identical symptoms, such as missing steps.

              My motors are labeled "4.5A" but I've heard that the drives don't necessarily have to be rated as high as the motor says to work properly. Is that true?
              Yes. That's the maximum rated current.
              Free software for calculating bolt circles and similar: Click Here

              Comment

              • vinito
                Senior Member
                • Jan 2004
                • 606

                #8
                I see what you mean about tracing the cause of problems. Now that I think of it, I've never used a PC to control motion of anything before - it was always dedicated hardware on "the man's" machines, though one Mazak booted to Winblows before loading its own system. It can be software or hardware, but in my case I'd add operatorware too. "I'm doomed"

                I'm hopeful, being loaded on a laptop that's never been tethered to the internet, that running Mach3 will be solid. A guy suggested to me today that I should run Win2000 rather then XP because (according to him) it doesn't load all the unnecessary bells & whistles that XP forces on you. How true is that I wonder?

                It seems to run pretty well in my testing so far with XP though. I've disabled various system monitors & such. Of course real axis movement will be the true test. Hopefully I'll be able to wiggle three axes in the next couple weeks.
                Last edited by vinito; 05-20-2008, 12:50 AM.

                Comment

                • JRouche
                  Senior Member
                  • Aug 2004
                  • 10964

                  #9
                  Ok.. First off. I love the way you write and Im diggin the whole project!!!

                  Looks like you are on yer way to a working machine pretty darn soon here..

                  I dont see any problems and you did it on the cheap... Make due with whats available to you and go with it... I like it all... Pat on the back hear bud!!!

                  Looking forward to seeing the motors driving all the axises... JR

                  Comment

                  • John Stevenson
                    Senior Member
                    • Mar 2001
                    • 16177

                    #10
                    Vinito,
                    Looking back thru my notes Marriss at Gecko quoted $29, thats US dollars, per drive, for the G250 which has a ribbon cable connection, the G251 on screw terminals will be more but so far no figure has been quoted.
                    Specs are 3.5 amps max at 50 volts, not3.0 at 40 volts as I quoted.

                    Normally all that required for windows is a clean install.
                    If you have to start messing with optimising the program to run Mach then it's probable you will have computer problems at one point or another.
                    Computers able to run Mach are being discarded everyday now so there is no excuse to mess with laptops.

                    Inside Mach is a program called Drivertest.exe.

                    Run that and see what the trace looks like, if it's stable you won't have any trouble, if it's all over look for another computer.

                    Also there is a dedicated Mach group on Yahoo

                    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!


                    Join that, there are many knowledgable people on that group able to help out on software and hardware problems.

                    .
                    .

                    Sir John , Earl of Bligeport & Sudspumpwater. MBE [ Motor Bike Engineer ] Nottingham England.



                    Comment

                    • Evan
                      Senior Member
                      • May 2003
                      • 41977

                      #11
                      Vinito,

                      To improve performance go to Start>Run and enter msconfig. Click OK.

                      In the Msconfig panel click Startup. Then uncheck all startup items. Don't worry if something stops working as any item can be restored by going back and checking it again.

                      Then click the Services tab. Check the box marked Hide all Microsoft Services. Then unchceck all the items that are left. Again, if anything you need stops working come back later and re-check it.

                      Then exit the Msconfig panel and restart the system as requested. Doing this will disable all non Microsoft software that runs in the background and will make Mach 3 (and everything else) run better.

                      It's all easily and completely reversible.

                      Then click on Start and right click the icon My Computer. Select Properties. This brings up the System Properties Sheet. Select Advanced and click the the Performance Settings button. Click the Adjust for best performance radio button. You can selectively enable any options in the list that you just can't live without such as Show window contents while dragging. Then click OK.

                      For even more stability and performance then open My Computer and right click the C drive. Select Properties. On the properties sheet that opens at the bottom may be a check box that says Allow Indexing Service to index this disk for fast file searching. Uncheck that box and click OK. This step will take several minutes to implement as it will cascade the permissions down through all levels of the file system. By doing this the only impact will be that it will take a little longer when you search for files or folders. It does however prevent the indexing service from running whenever it wants in the background.

                      Please note for anybody taking these steps that it will disable any safety and security software such as antivirus software. That needs to be done in order to prevent it from interfering with Mach 3.
                      Free software for calculating bolt circles and similar: Click Here

                      Comment

                      • vinito
                        Senior Member
                        • Jan 2004
                        • 606

                        #12
                        Thanks for the tips fellers.
                        John those new Geckos sound promising. Money will be less of an issue on my next system, but it's always an issue isn't it? If the specs fit my motors correctly and the feature list is pretty complete, I may go that route. If I dove in a bit later I guess for similar $ I could have started with those and been in better shape for my first go.

                        The laptop ran Mach3 OK on the first clean boot, but XP has a colorful circus of balloons to experience at first so that's why I mentioned disabling things. It was just a once over though and Evan's method sounds nice and thorough. I think the computer runs fine, but I'll certainly run that drivertest and make it official. I'm aware of the Mach3 "special driver" thing too and if necessary I'll opt it in.

                        Thanks TONS Evan for that recipe. That's great. I'm going to make a laminated card of it so it will always be handy - it might reside on my refridgerator for a while.
                        We may be on the same page. Whether or not I'm running Mach3, I'd prefer to just have a bare-bones OS going and only add whatI choose for myself. By the time you install Winblows and service packs 1 & 2 (I know there's a way to do it all at once, but I haven't done it often enough to warrant working it out) you could watch the crop come in. Linux sure is much simpler these days. Oh well.

                        No progress since my first post except that I hammered a wall wart apart (mildly gratifying in itself) to cannibalize the transformer so I can build a regulated 5V logic power supply. Currently I'm using an older but extremely nice bench supply for the 5V which is way-overkill. I'll solder up a pocket-sized circuit and tuck it into the motor PS box somewhere.

                        Update: Just finished soldering up and testing a 5V supply regulated with yer basic 7805 & filtered with various caps. I even included an indicator LED to make it shiny. Works just fine. One less thing ...
                        Last edited by vinito; 05-20-2008, 08:18 PM.

                        Comment

                        • Evan
                          Senior Member
                          • May 2003
                          • 41977

                          #13
                          There is a lot more that can be disabled, especially if the computer is not used online or on a network. However, it means disabling various system services and that means knowing what they do and what other services are dependent on them to operate. There isn't any "standard" set of services that can be automatically turned off. It will vary depending on the computer configuration and hardware as well as what software services are required.

                          There are other "tweaks" that can be implemented and some have dramatic effects on performance. One of the best is to connect a second drive on a different bus system from the System Drive (usually C drive). If C drive is an IDE drive then a second drive running over Firewire or USB 2.0 can be used to achieve about a 20 percent performance boost. All that is done is to reallocate the Page File and the system temp files to the alternate drive so they don't interfere with application access.

                          The system I am using to type this is an Athlon XP 2700 with 1.5 gig of ram and three hard drives. It fully boots in 23 seconds.

                          Through proper configuration Win XP can be made to run about 50 to 100% faster than it does in a default configuration. This isn't new to XP, all previous Windows version could also be similarly configured.
                          Last edited by Evan; 05-20-2008, 05:08 PM.
                          Free software for calculating bolt circles and similar: Click Here

                          Comment

                          • vinito
                            Senior Member
                            • Jan 2004
                            • 606

                            #14
                            Software consideration

                            I loaded some CAM software on the laptop and everything seems to run pretty goodly.

                            Generated some G-code for engraving a bit of text and opened it up in Mach3 to simulate the operation. The 500-line limit (trial version) doesn't let a guy piddle with much more than a couple letters when doing that, and that brings me to a question, which follows a couple thoughts.

                            I'm almost sold already on Mach3. It looks OK - a little busy but if I feel like taking the time I guess the screens are readily customizable. It sure has tons of features and a big following. Using the keyboard and mouse is a little awkward, but I'm sure you get pretty comfortable after a while and I'd eventually like to build a control panel with an RPG, etc.

                            So the question is: How do you guys like Mach and are there others I should explore before diving in and buying the license? I can play with the trial version and maybe use EMC if I need to run a long program (maybe once the machine becomes a semi-functioning 3D reality). Mach seems like an extremely good piece of software for the money they ask for it, especially considering the "cottage industry" factor inherent in this field.

                            I'm sure a lot of folks happily get by with less. It looks like EMC has its enthusiastic disciples, and for good reason. I guess I'm partly leaning toward Mach because it just seems more familiar - more like the CNC machines I've used and less like a DOS program - but I embrace that about myself so this fact doesn't bother me. Looks like Mach is quite a bit more user-friendly anyway.

                            Comment

                            • mayfieldtm
                              Senior Member
                              • Jul 2002
                              • 588

                              #15
                              Love my Mach3.

                              Here are a couple of groups of really great people that are knowledgeable on Home CNC...

                              Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!




                              Tom M.

                              Comment

                              Working...
                              X