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 > Open Source CNC Machine Designs


Open Source CNC Machine Designs Discuss Open Source CNC Machine Designs here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #37   Ban this user!
Old 03-11-2011, 05:39 PM
 
Join Date: Aug 2010
Location: Austria
Posts: 10
schoeftinger is on a distinguished road

Originally Posted by aggrav8d View Post
I don't know if it helps but I wrote an instructable about combining Sparkfun stepper breakout controllers and Arduino to run the electronics for a CNC machine. I'm still working to put my frame together (sourcing parts is awful). Once I have that complete I'll be working on hacking together some control software.

Very impressive!
I've done a very similar thing recently, but with only 2 steppers.
An Arduino Uno controls 2 EasyDriver boards with a SparkFun stepper attached to each.
I'm using this setup for an automated guitar pickup winder...

Anyway, I'm wondering how you manage to controll the steppers live from the PC???
When I tried running Firmata on the Arduino to control the steppers live from the PC (via USB), I noticed that the transfer rate was too low...
I guess without some dedicated caching and execution logic on the Arduino, the USB connection won't suffice, right?

-Tom
Reply With Quote

  #38   Ban this user!
Old 03-11-2011, 07:49 PM
 
Join Date: Sep 2010
Location: USA
Posts: 73
dkirtley is on a distinguished road

I keep reading people explaining that you can't control motion over USB well enough for it to be usable. Of course I really can't figure out why the people doing it seem to not understand that it's not possible. Kind of like the arguments that aerodynamically, bumblebees can't fly. Reprap, Makerbot, Dank, Planet-CNC all have them running off usb without too much difficulty. All these except the PlanetCNC board are running arduinos (or something real similar -- Sanguino). The Planet-CNC is using a PIC processor. Printers seem to be able to handle it pretty well too.

They have interpreters running and just issue commands for the movement and not trying to control individual steps. The processor on the board handles the stepping and other controls. There is a big difference between just sending a move command rather than 15000 steps.

The only real problem with it is the small memory on the arduinos, although they are going to spooling stuff onto flash cards. Pop in a 2GB flash card and the memory problems seem to be much less constraining.

Make: Online » Arduino GRBL Has an article about a 3 axis arduino shield. Just for fun I ordered one but am waiting on shipment that is due pretty soon. Anxious to get one to play with.
__________________
My uncensored views and CNC Router planning: http://reinventingcnc.blogspot.com/
Reply With Quote

  #39   Ban this user!
Old 03-12-2011, 02:29 PM
 
Join Date: Aug 2010
Location: Austria
Posts: 10
schoeftinger is on a distinguished road

Well, I'm not saying that live control via USB is not possible.
It should be definitely possible if you use some smart command encoding and caching instead of transferring a dedicated command for every single stepper step to the board.

From my experience, however, there is a sh*tload of use cases where I WANT TO transfer dedicated commands for each stepper movement.
From my personal experience, this unfortunately limits you to approx 20% of the max. performance (with 1 stepper) when issuing the commands from the Arduino locally.

BTW, when using some smarter command mechanism the Arduino memory contstraints should not be a problem at all.
I guess I'm just too lazy to write myself an Arduino library for G-Code (or whatever proprietory command language)..

Thanks for the link to the 3 axis Arduino shield! - That's going to save some effort compared to wiring and soldering stuff to the EasyDrivers...

cheers,
-Tom



Originally Posted by dkirtley View Post
I keep reading people explaining that you can't control motion over USB well enough for it to be usable. Of course I really can't figure out why the people doing it seem to not understand that it's not possible. Kind of like the arguments that aerodynamically, bumblebees can't fly. Reprap, Makerbot, Dank, Planet-CNC all have them running off usb without too much difficulty. All these except the PlanetCNC board are running arduinos (or something real similar -- Sanguino). The Planet-CNC is using a PIC processor. Printers seem to be able to handle it pretty well too.

They have interpreters running and just issue commands for the movement and not trying to control individual steps. The processor on the board handles the stepping and other controls. There is a big difference between just sending a move command rather than 15000 steps.

The only real problem with it is the small memory on the arduinos, although they are going to spooling stuff onto flash cards. Pop in a 2GB flash card and the memory problems seem to be much less constraining.

Make: Online » Arduino GRBL Has an article about a 3 axis arduino shield. Just for fun I ordered one but am waiting on shipment that is due pretty soon. Anxious to get one to play with.

Last edited by schoeftinger; 03-12-2011 at 02:46 PM.
Reply With Quote

  #40   Ban this user!
Old 03-12-2011, 04:05 PM
 
Join Date: Sep 2010
Location: USA
Posts: 73
dkirtley is on a distinguished road

What you might consider if you want something a "bit off schedule " is to take one of the basic g-code interpreters and add in a couple "extra commands" that you can put it into some immediate mode or customize some extra commands.

I started with playing with the easy drivers too. I am still relative beginner again. It has been 20 years since I have played with any electronics. In many ways, I am starting from scratch.

I am just surprised that they don't have more integrated shields like this. My opinion is that they are thinking too small. I could see having an integrated shield with extra flash and volatile memory, maybe 6 or 8 stepper controllers or I2C addressable array of them, a couple high power PWM motor controllers and/or brushless ESC, a couple high voltage ac relays, and a few servos to play with. It would make things like the RepRap a thousand times simpler. I guess they just like making up cables and stringing things together.

Originally Posted by schoeftinger View Post

BTW, when using some smarter command mechanism the Arduino memory contstraints should not be a problem at all.
I guess I'm just too lazy to write myself an Arduino library for G-Code (or whatever proprietory command language)..

Thanks for the link to the 3 axis Arduino shield! - That's going to save some effort compared to wiring and soldering stuff to the EasyDrivers...

cheers,
-Tom
__________________
My uncensored views and CNC Router planning: http://reinventingcnc.blogspot.com/
Reply With Quote

Sponsored Links
  #41   Ban this user!
Old 03-13-2011, 02:20 PM
 
Join Date: Aug 2010
Location: Austria
Posts: 10
schoeftinger is on a distinguished road

Fwiw, I've never seen any greater re-usability in "higher-level" open source hardware.
Most people just use basic, good-quality boards and start hacking their proprietary code and design a simple hardware just about fit enough to support their use cases.

The better & more re-usable components are mostly quite expensive (& too complicated to build them from scratch yourself)...

However, looking at that triple-stepper control in your link, I guess Arduino could be a pretty darn good choice for a home-brewed CNC control.

just my 2 cents!
-Tom
Reply With Quote

  #42   Ban this user!
Old 03-14-2011, 05:58 AM
 
Join Date: Dec 2005
Location: canada
Posts: 28
AndyL is on a distinguished road

Honestly the grblshield interested me, but ... By outward appearance it's just 3 of the reprap driver boards mounted on a nice shield format... That A3892 is the only headache, SMD components don't make for easy DIY'ing...

Part of my CNC use is to cut and drill PCBs, usually arduino shields... The one nice thing about that A3892 is the microstepping, but there's also the L293, good for a similar output in a simple 16pin DIP package...

Experimentelle Interfaces WS 06 » Blog Archive » Motortreiber L293D

L293Ds are a whopping 8$ each at my local electronics supply... Add a protoshield Freeduino SB-Protoshield (SKU: 16090) - HVW Technologies and you've got the same functionality... If you don't want to cnc a shield for yourself...

To be a true grblshield, they should have added the SD card; Arduino Forum - SD card read/write with Arduino - again a nice simple circuit... relatively easy to put it all on one shield - for way less than that commercial product....
Reply With Quote

  #43   Ban this user!
Old 03-14-2011, 03:25 PM
 
Join Date: Sep 2010
Location: USA
Posts: 73
dkirtley is on a distinguished road

I also like the new Makerbot 2.4 motherboard. SD card, outputs for 5 steppers, limit switches broken out, AT power supply connector, plus 20 digital pins brought out to a connector. Pricey at $85 without any stepper controllers.

I think it is potentially a better implementation but still falls short in my opinion.
__________________
My uncensored views and CNC Router planning: http://reinventingcnc.blogspot.com/
Reply With Quote

  #44   Ban this user!
Old 03-18-2011, 07:00 PM
 
Join Date: Oct 2010
Location: usa
Posts: 14
rinthesun is on a distinguished road
Grbl vs Planet CNC

Few comments
1) Grbl directly interprets GCode and CNC USB Controller by Planet CNC does not. You need both the PC program and the 18F4550 controller, since the PC code converts the GCode to an optimized form.

2) Grbl can handle limit switch with three arduino pins. PlanetCNC does also but uses 6 pins.

3) PlanetCNC has input for 8 switches for jogging step motors. Grbl does not.

4) PlanetCNC has some additional outputs. So far Grbl does not.

I assume can jog motors with small GCode program. I do not see why jogging can't be added to Grbl. Could use two arduino pins to a shift register like a game keyboard.

A PC program to work with Grbl would be handy.
Reply With Quote

  #45   Ban this user!
Old 03-22-2011, 06:51 AM
 
Join Date: Jul 2007
Location: us
Posts: 6
hippy is on a distinguished road

They have some major advances using the propeller chip by Parallax Home having eight gogs (cpu cores) with plenty of memory with expansion.
Each axis can be controlled by an individual gog (core) which all the gogs can communicate with each other.
And the Propeller chip itself is roughly $8.00.
Theres downloadable code on file for controlling stepper motors and servo's.
Reply With Quote

Sponsored Links
  #46   Ban this user!
Old 05-03-2012, 11:39 AM
 
Join Date: Apr 2012
Location: Canada
Posts: 1
re3e is on a distinguished road

Originally Posted by aventgps View Post
The arduino board is programed with a modified reprap gcode interpreter. 3 axis motion and 6 limit switch...

hey , basically following the same steps , going with arduino mega 2560 , got my 3 h-bridge going and i am able to control steps/usteps, direction and speed , my original plan was to use CNCLinux for toolpath / gcode , but the LPT limitation is having me look at what else (+i'd like to use the arduino for more then jist the sensor loop back) .... considering a gcode interpreter on arduino but haven't found anything workable yet .... could consider coding one but it looks much larger then i see as a n00b
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 2 (0 members and 2 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
Need Help!- Arduino AlienCNC C control gremilRoute General Electronics Discussion 6 04-23-2008 04:02 PM
cnc controlled mandrel bender controlled by mach3 timmyb199 Bending, Forging,Extrusion... 5 05-30-2007 06:35 PM
PDA controlled CNC machine Sanghera General Electronics Discussion 0 04-30-2007 12:58 AM
MCA (Machine controlled art)/artbot‘s? j m Suggestions for the CNCzone.com site. 3 08-16-2005 07:19 AM
Human controlled CNC spalm DIY-CNC Router Table Machines 4 06-19-2005 01:48 PM




All times are GMT -5. The time now is 05:13 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