CNC Mill + NES Controller + Arduino = Awesomeness!


Results 1 to 18 of 18

Thread: CNC Mill + NES Controller + Arduino = Awesomeness!

  1. #1
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default CNC Mill + NES Controller + Arduino = Awesomeness!

    This is nothing revolutionary, but maybe a few people will get a kick out of it.

    I've been running my DIY CNC with an Arduino and recently hooked up an NES controller to "jog" the machine around with.



    Similar Threads:


  2. #2
    Registered
    Join Date
    Aug 2005
    Location
    USA
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Awesome! I've got one of those GIANT NES controllers (the one that's about 10" across with the big joystick) sitting around, every time I walk by it I think "gee, that would make an interesting control pendant". LOL!! I was going to build an Atmel processor into my breakout board, ran out of time and left it off to get the machine working. Good stuff! What's up with the X axis though, is it supposed to make that noise?



  3. #3
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default

    Thanks! As far as the X axis goes: It's jacked and has been since I tried dropping a new bearing in, LOL.

    I tried boring the hole out to fit a larger OD bearing and being that my drill press has a ton of runout and I was trying to do it to MDF... well it didn't work out so smooth.

    I'm basically just using this frame to finish up my R&D and hoping to have a new set of parts cut in the next 6 weeks. Besides that *horrible!* noise, it's working OK



  4. #4
    Member
    Join Date
    Jun 2007
    Location
    canada
    Posts
    3891
    Downloads
    0
    Uploads
    0

    Default

    neat. i have been looking at the arduino for a stepper control function recently.

    im curious how fast it can run. mach we know is limited to 100khz for pulse rate, and works best at 45khz or less. what can the arduino push out?

    thanks



  5. #5
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default

    I'll start off by saying that I'm not an expert by any means. Just a dude thats pretty passionate about both the arduino and DIY CNC!

    For the sketch you see in the video:
    I have the delay between pulses set to delay(200); this is because speed profiling is not setup and as everyone knows you can't just start a stepper at top speed so in order to prevent stalling the motor out while running it with the NES controller, I opted to just run it at a medium speed. What you're seeing the Z and Y axis do is about 60-70% of their max rapid speed.

    For the embedded program (grbl) that actually parses gcode:
    At the current time, we have not experienced any stalling problems that were related to the Atmega168 not keeping up. Sort of amazing really.

    Right now we have the duration of the step pulse set to 5 microseconds which figures out to a 100,000 pulses per second (with a 5 microsecond delay between pulses).



  6. #6
    Member
    Join Date
    Jun 2007
    Location
    canada
    Posts
    3891
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by edward.ford View Post
    I'll start off by saying that I'm not an expert by any means. Just a dude thats pretty passionate about both the arduino and DIY CNC!

    For the sketch you see in the video:
    I have the delay between pulses set to delay(200); this is because speed profiling is not setup and as everyone knows you can't just start a stepper at top speed so in order to prevent stalling the motor out while running it with the NES controller, I opted to just run it at a medium speed. What you're seeing the Z and Y axis do is about 60-70% of their max rapid speed.

    For the embedded program (grbl) that actually parses gcode:
    At the current time, we have not experienced any stalling problems that were related to the Atmega168 not keeping up. Sort of amazing really.

    Right now we have the duration of the step pulse set to 5 microseconds which figures out to a 100,000 pulses per second (with a 5 microsecond delay between pulses).
    so it could actually deliver the pulses mach can... dependent of course on if you can make the data that quickly.

    interesting. thanks.

    my application is not for a machine control, but now im curious if this could be used a cheap and cheerful usb interface for mach.



  7. #7
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default

    now im curious if this could be used a cheap and cheerful usb interface for mach.
    Indeed! We have already used it as a "cheap and cheerful" USB interface for EMC2. It's fantastic.

    One of the problems we run into with both Mach and EMC (and most of the others, including turbo) is they all depend on an LPT port! Those are getting harder and harder to come by. So yes, arduino + grbl = a great USB interface for interpreting step/dir commands.



  8. #8
    Member
    Join Date
    Jun 2007
    Location
    canada
    Posts
    3891
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by edward.ford View Post
    Indeed! We have already used it as a "cheap and cheerful" USB interface for EMC2. It's fantastic.

    One of the problems we run into with both Mach and EMC (and most of the others, including turbo) is they all depend on an LPT port! Those are getting harder and harder to come by. So yes, arduino + grbl = a great USB interface for interpreting step/dir commands.
    mmmm. now im gonna have to learn more and see what i can do with it.



  9. #9
    Registered
    Join Date
    Feb 2010
    Location
    usa
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    Love the controller idea. I was going to put a couple buttons on mine i.e whenever i am going to build a cnc. Simple and useful add on!



  10. #10
    Registered
    Join Date
    Mar 2009
    Location
    USA
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    Indeed! We have already used it as a "cheap and cheerful" USB interface for EMC2. It's fantastic.
    Do tell me more! I use EMC2 and would really like to utilize USB.



  11. #11
    Registered
    Join Date
    Sep 2004
    Location
    Canada
    Posts
    209
    Downloads
    0
    Uploads
    0

    Default

    Is it just me or is anyone else wondering what would happen if you hit "up up down down left right left right b a start"?



  12. #12
    Registered
    Join Date
    Nov 2009
    Location
    United States
    Posts
    106
    Downloads
    0
    Uploads
    0

    Default

    Cheater!!!



  13. #13
    Registered
    Join Date
    Dec 2008
    Location
    canada
    Posts
    226
    Downloads
    0
    Uploads
    0

    Default

    Now you need to run the Mario theme G-code on it



  14. #14
    Registered
    Join Date
    Apr 2006
    Location
    usa
    Posts
    18
    Downloads
    0
    Uploads
    0

    Default

    Cool retro idea, I actually used a Nintendo Wii Remote for mine. Its nice because its wireless, and having one of the buttons mapped for "pause" has saved me more than a couple of times already.



  15. #15
    Registered
    Join Date
    Feb 2010
    Location
    USA
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    I see notes that EMC2 runs with Arduino and does step and dir? Is the software etc for doing this on the Linuxcnc.org web page some where?



  16. #16
    Registered
    Join Date
    Aug 2005
    Location
    USA
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Pandinus View Post
    Now you need to run the Mario theme G-code on it
    That was awesome!!!! Funny, nobody at work was really impressed by it, but it was freaking cool to hear Mario Brothers coming out of my mill!! Thanks for bringing that up!



  17. #17
    Registered
    Join Date
    Sep 2007
    Location
    USA
    Posts
    23
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Highlander01 View Post
    I see notes that EMC2 runs with Arduino and does step and dir? Is the software etc for doing this on the Linuxcnc.org web page some where?
    Where do you see notes that EMC2 supports Arduino?



  18. #18
    Member
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    140
    Downloads
    0
    Uploads
    0

    Default

    Wow this satisfies so much of the geek in me.

    I'm planning to use a similar set up for a 2 axis machine, although I wont be running gcode, simply moving in a hard coded sequence of steps.

    If you don't mind me asking, what motors are you using? I was thinking of ordering mine from sparkfun with the rest of the parts, but am afraid they might be a bit too weak, although they appear to be nema 17 so they should be easy to replace if need be.



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

CNC Mill + NES Controller + Arduino = Awesomeness!

CNC Mill + NES Controller + Arduino = Awesomeness!