CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > WoodWorking Machines > DIY-CNC Router Table Machines


DIY-CNC Router Table Machines Discuss the building of home-made CNC Router tables here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 02-24-2010, 12:44 PM
 
Join Date: Sep 2007
Location: USA
Posts: 23
edward.ford is on a distinguished road
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.

Reply With Quote

  #2   Ban this user!
Old 02-24-2010, 03:39 PM
 
Join Date: Aug 2005
Location: USA
Posts: 230
Riceburner98 is on a distinguished road

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?
Reply With Quote

  #3   Ban this user!
Old 02-24-2010, 07:33 PM
 
Join Date: Sep 2007
Location: USA
Posts: 23
edward.ford is on a distinguished road

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
Reply With Quote

  #4   Ban this user!
Old 02-24-2010, 07:41 PM
 
Join Date: Jun 2007
Location: canada
Posts: 2,336
ihavenofish is on a distinguished road

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
Reply With Quote

  #5   Ban this user!
Old 02-24-2010, 08:22 PM
 
Join Date: Sep 2007
Location: USA
Posts: 23
edward.ford is on a distinguished road

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).
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-24-2010, 08:34 PM
 
Join Date: Jun 2007
Location: canada
Posts: 2,336
ihavenofish is on a distinguished road

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.
Reply With Quote

  #7   Ban this user!
Old 02-24-2010, 08:44 PM
 
Join Date: Sep 2007
Location: USA
Posts: 23
edward.ford is on a distinguished road

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.
Reply With Quote

  #8   Ban this user!
Old 02-24-2010, 09:43 PM
 
Join Date: Jun 2007
Location: canada
Posts: 2,336
ihavenofish is on a distinguished road

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.
Reply With Quote

  #9   Ban this user!
Old 02-24-2010, 10:26 PM
 
Join Date: Feb 2010
Location: usa
Posts: 1
ninja87 is on a distinguished road

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!
Reply With Quote

  #10   Ban this user!
Old 02-25-2010, 12:00 AM
 
Join Date: Mar 2009
Location: USA
Posts: 99
marzetti is on a distinguished road

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.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 02-25-2010, 12:15 AM
 
Join Date: Sep 2004
Location: Canada
Posts: 204
ckirchen is on a distinguished road

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"?
Reply With Quote

  #12   Ban this user!
Old 02-25-2010, 12:44 AM
 
Join Date: Nov 2009
Location: United States
Posts: 106
stangtjk is on a distinguished road

Cheater!!!
Reply With Quote

Reply

Tags
arduino, nes




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My new CNC machine. Arduino controlled: aventgps Open Source CNC Machine Designs 45 05-03-2012 11:39 AM
controller for a big mill already motorized chile Controller Cards 6 01-17-2010 04:04 AM
Arduino Mega driving my cnc. aventgps Videos 2 12-30-2009 01:57 AM
Need Help!- Arduino AlienCNC C control gremilRoute General Electronics Discussion 6 04-23-2008 04:02 PM
CNC-mill controller.. which? TechGraphix General CNC (Mill and Lathe) Control Software (NC) 1 06-04-2006 07:05 PM




All times are GMT -5. The time now is 12:33 AM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361