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! > Events, Product Announcements and More > Product Announcements & Manufacturer News


Product Announcements & Manufacturer News If you are a manufacturer or company with relevant news related to machining or have a new product announcement you may post it here only! (Commercial Posting Forum)


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-28-2009, 05:29 PM
Kroko's Avatar  
Join Date: Apr 2009
Location: Slovenia
Posts: 98
Kroko is on a distinguished road
CNC USB motion controller

I'm pleased to announce CNC USB motion controller. Check project home page for more information.

Andrej
Reply With Quote

  #2   Ban this user!
Old 07-08-2009, 05:17 AM
Kroko's Avatar  
Join Date: Apr 2009
Location: Slovenia
Posts: 98
Kroko is on a distinguished road

I'll soon start building low cost 3-axis machine with basic tools which will be powered with CNC USB motion controller and PICStep drivers. I'm waiting for material to be delivered.

I'll create a build thread so that you could see progress.

Until then you can check my CNC hot wire foam cutter. Cutting foam wings is realy simple with this setup.
Reply With Quote

  #3   Ban this user!
Old 07-08-2009, 09:43 PM
 
Join Date: Oct 2004
Location: usa
Posts: 39
greggv is on a distinguished road

That's pretty cool! I've a shop full of professional cnc equipment and I couldn't do that! I'm impressed!
Reply With Quote

  #4   Ban this user!
Old 07-08-2009, 11:50 PM
 
Join Date: Nov 2008
Location: USA
Posts: 397
MechanoMan is on a distinguished road

But you used a PIC18F4550?
That can't step very evenly at all. None of the PIC line have useful specs in this area.
I spent awhile drawing up similar plans before seeing that the PIC18 line just won't perform satisfactorily, due to the 10MHz instruction cycle. It needs to be around 10x-100x faster to perform "well" for CNC use.

Last edited by MechanoMan; 07-09-2009 at 01:33 AM.
Reply With Quote

  #5   Ban this user!
Old 07-09-2009, 01:55 AM
Kroko's Avatar  
Join Date: Apr 2009
Location: Slovenia
Posts: 98
Kroko is on a distinguished road

Actualy PIC18F4550 performs just fine. With 12MHz instruction cycle (this PIC runs at 48MHz) I get around 25kHz maximum step rate which is more than enough for stepper motors with 8x microstepping which is what I'm using.
Other systems and popular parallel port solutions work in similar range. 100x faster means 5GHz frequency which is faster than most processors available. If you need that kind of performance I sugest you go analog with servo motors.

After all, this is 100$ solution not 100.000$.

Andrej
__________________
CNC USB controller - http://www.planet-cnc.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-09-2009, 02:13 PM
 
Join Date: Nov 2008
Location: USA
Posts: 397
MechanoMan is on a distinguished road

Originally Posted by Kroko View Post
Actualy PIC18F4550 performs just fine. With 12MHz instruction cycle (this PIC runs at 48MHz) I get around 25kHz maximum step rate which is more than enough for stepper motors with 8x microstepping which is what I'm using.
Other systems and popular parallel port solutions work in similar range. 100x faster means 5GHz frequency which is faster than most processors available. If you need that kind of performance I sugest you go analog with servo motors.

After all, this is 100$ solution not 100.000$.

Andrej
But 25khz is not nearly enough.
Assuming the steps go to a Gecko, that's 10 microsteps/fullstep, and a Taig 20 tpi leadscrew:
That's a theoretical max of 37.5 ipm. But, that's only ONE speed and not applicable to most any CNC case.
The problem of reality is that you've probably got pulses broken down into 40us timesteps of resolution. If a program asks for 30 ipm, that needs 50us steps. The only way this will be accomplished is to space step pulses steps 40us, 40us, 40us, 80us, 40us, 40us, 40us, 80us. That's FAR too rough to step "properly". There's a huge deceleration asked for during the 80us-step and then acceleration before the next 40us. That's also a big phase error and can easily cause lost steps. It's only able to regulate the pulse width "well", such as as +/-10%, at 3.75ipm. In that case you'd have 400us, 400us, 400us, 440us, 400us, etc. I believe it would still have measurably degraded performance over 1% pulse width control.

Even assuming I'm mistaken and this can actually adjust spacing to intermediate spacings between 40us and 80us, the total PIC18F4550 capability cannot physically exceed 83nS steps, and in reality it's not possible to get that kind of resolution. That's where I concluded it's generally NOT possible to do with a PIC18F when evaluating my project earlier.
Reply With Quote

  #7   Ban this user!
Old 07-09-2009, 08:02 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

MechanoMan has a valid point. A 25k kernel with 1/8th microstep drivers has exhibited issues with other cnc software. It's infrequent, but it does happen. And it's a difficult issue for the user to pin down because their system runs fine for thousand of lines of G-code then all of a sudden, one line on one part repeately won't work correctly.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com

Last edited by pminmo; 07-09-2009 at 08:03 PM. Reason: typo
Reply With Quote

  #8   Ban this user!
Old 07-09-2009, 10:41 PM
 
Join Date: Aug 2006
Location: usa
Posts: 247
amplexus is on a distinguished road

Cplds are better suited for this sort of thing, fast and cheap. see mariss' tutorial. If you really want to use a microprocessor check out the cypress psoc a sort of hybrid with analog and digital blocks.
Amplexus Ender
Reply With Quote

  #9   Ban this user!
Old 07-09-2009, 11:17 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

CPLD's don't have the ALU and math functions necessary to do motion control. You would have to design the ALU and math processing which would be a waste of time since micros and FPGA's already exist. CPLD's would augment a micro nicely to free up tasks that are a waste for a micro.
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #10   Ban this user!
Old 07-10-2009, 01:11 AM
 
Join Date: Nov 2008
Location: USA
Posts: 397
MechanoMan is on a distinguished road

Yeah, I've not programmed FPGAs myself but that task definitely looked like FPGA domain.

A CPLD for the lowest level "counting" tasks paired with a microcontroller also sounds practical, but I couldn't say.

Smoothstepper was a pretty good implementation... but for some odd reason they seem to have abandoned the project in the beta state. It's still got bugs and they haven't released a new revision of the beta plugin since Jan. They never documented the interface so no one else can use it or try to make a better plugin.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-10-2009, 03:07 AM
Kroko's Avatar  
Join Date: Apr 2009
Location: Slovenia
Posts: 98
Kroko is on a distinguished road

You are completely right that faster is better and there are issues at high speeds. This isues are general and are not specific for my PIC18F4550 board.

All step/dir controllers exhibit the same issue. Faster controller just means faster machine with same issues. Mach and EMC software solutions and other similar harware solutions have the same problem. Some of them are faster (but not for much) but issues are the same.

Bigger and faster is more expensive. Why don't we all drive Ferrari cars?

My controller is cheap and produces satisfactory results for hobby use and that is good enough for me. Perhaps my reaction is too emotional. I'm proud on my controller and it hurts me that you're flaming it without ever seeing one.

Check my 3-axis built thread. This controller will control low cost machine that I'm building.
__________________
CNC USB controller - http://www.planet-cnc.com
Reply With Quote

  #12   Ban this user!
Old 07-10-2009, 09:52 AM
Kroko's Avatar  
Join Date: Apr 2009
Location: Slovenia
Posts: 98
Kroko is on a distinguished road

Originally Posted by MechanoMan View Post
The problem of reality is that you've probably got pulses broken down into 40us timesteps of resolution. If a program asks for 30 ipm, that needs 50us steps. The only way this will be accomplished is to space step pulses steps 40us, 40us, 40us, 80us, 40us, 40us, 40us, 80us. That's FAR too rough to step "properly".

Even assuming I'm mistaken and this can actually adjust spacing to intermediate spacings between 40us and 80us,...
I just realized what you mean with rough resolution.
My controller adjusts spacing of pulses. It has resolution of 0.08333us and maximum frequency about 25kHz. Time between two steps is a multiple of 0.08333us. So if 40us is possible so is 40.08333 if we want to go little faster and 40.16666 if we want little faster...

Becouse of low frequency maximum speed is limited but that does not affect resolution.
__________________
CNC USB controller - http://www.planet-cnc.com
Reply With Quote

Reply

Tags
cnc usb controller




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
Yaskawa Motion Controller curtisturner General CNC (Mill and Lathe) Control Software (NC) 0 05-08-2008 01:27 PM
the Motion group Controller 47MLB Machines running Mach Software 1 07-23-2007 04:16 PM
3-4 axis motion controller grebator Stepper Motors and Drives 5 04-19-2007 03:15 PM
PARKER 6K2 or 6K4 Motion controller TUCSONCNC Post Processors for MC 0 02-02-2007 12:07 AM
Can I use this motion controller to make cnc router? Clasic31 General Electronics Discussion 7 12-11-2003 09:17 AM




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