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! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-12-2005, 11:20 AM
 
Join Date: May 2005
Location: Australia
Posts: 4
StressedMech is on a distinguished road
3 axis CNC Router with AC/DC Brushless motors (Need help with electronic Design)

Hi guyz!

Its great that I stumbled across your website..I just want to get your opinions on a couple of things...

I'm building a CNC Router. A 3-axis machine which accepts G-codes and outputs this data in the form of +-10V to my AC/DC Brushless Servo motors.

Basically I'm planning my system architecture to consist of a host controller, and 3 chips to receive encoder feedback.

Thus my host controller (Atmel AVR AtMega32) is going to produce 3 PWM channels which I will have to convert to +-10V to drive my motors. I will have 3 chips (any suggestions?) which will receive channels A & B and index from my servo motor encoders, keep a count on my motors and feed this information back to my host controller.

thus my atmel AVR AtmEga32 is responsible for...
1) Motion/Trajectory profiling for each axis
2) Co-ordinating the 3 axes to work in tandem to draw circles, helical motions etc.
3) receiving data from all 3 encoders.

What do you guys think of the set up? Do you think that I have enough processor speed to be able to build a CNC Router with suitable accuracy?
If I miax up my AtMega32 with PIC chips used to read the encoder counts do you think I will have problems? due to different instruction sets? or is it better to stick with AVR all the way then?

thanks,
Reply With Quote

  #2   Ban this user!
Old 05-12-2005, 12:56 PM
 
Join Date: Aug 2004
Location: US
Posts: 2,786
ViperTX is on a distinguished road

Sounds plausible....which CAM software will you be using?
Reply With Quote

  #3   Ban this user!
Old 05-12-2005, 09:42 PM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 1,102
H500 is on a distinguished road

Instead of doing a motion controller, why not start out by using Mach or TurboCnc? The demo versions are very functional and you are unlikely to outgrow them any time soon.

Then all you need to design would be the servo driver, which is challenging enough in itself. I'm looking at doing one for a regular dc motor.
Reply With Quote

  #4   Ban this user!
Old 05-13-2005, 05:41 AM
 
Join Date: Jul 2003
Location: north wales,u.k
Posts: 46
mmjpotter is on a distinguished road

Very interested to read about your new project and also encouraged to see you are thinking servo. I have just completed my project ( No! I don’t think this project will ever be complete but it is now working ). It is based on the same design theory as yours and the GOOD news is it works just great! But the BAD news is it's taken me 3 years.
If you are going to design your own servo system then the most important consideration has to be which operating system to use. It MUST be capable of real time interrupts; the whole concept of servo motion is based on the time interval. The system must respond to the encoder feedback with precise timing and I would suggest you start by thinking 1ms.
If you prefer the ‘Windows’ environment then you will have to install a DSP motion card , these can be expensive and to a certain extent take away the independence that us DIY’ers thieve on. Or, you could take the advice of H500 and go Mach or TurboCNC but these are stepper systems and are not closed- loop so you will never really be sure of what is going on, and Backlash can play havoc! Even if you convert the step and direction output to drive a servo, the best you can get is semi closed-loop, this means the drive will respond to an error but the control still won’t have a clue what is happening.
I am using my website www.3dmotioncontrol.com to try and log my progress but I have neglected it recently (trying to get my new card working). This new card is a 4 axis card which tracks the encoders and outputs the +/-10 volt command signals, I've just uplaoded a picture of it to the gallery (lmscard.jpg) it might provide some ideas.

Good luck with your project.
__________________
mike potter
Reply With Quote

  #5   Ban this user!
Old 05-14-2005, 06:45 PM
 
Join Date: May 2005
Location: Australia
Posts: 4
StressedMech is on a distinguished road

CAM software? I haven't decided on that yet really. Basically I want to get the electronics up and running. Thats my biggest worry really, and programming the PID control required for the feedback systems.

But basically I'm just gonna get a bunch of G-codes, download it into the host controller (AtMega32) and the AtMega32 is responsible for translating those G-codes into motion.

Mainly I'm getting back to the basics and building everything from scratch (well as much as possible). Its mainly cos I think this is the best way to learn about electronics and feedback motion control systems which gives me alot of practical knowledge. (I'm final year undergrad =)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-14-2005, 06:49 PM
 
Join Date: May 2005
Location: Australia
Posts: 4
StressedMech is on a distinguished road

Mach ot Turbo CNC? thanks, I'll check it out. Hopefully they have some information on how they program the control.

I know its tough but its something I'll hafto do to get something out of the project.
Reply With Quote

  #7   Ban this user!
Old 05-14-2005, 07:13 PM
 
Join Date: May 2005
Location: Australia
Posts: 4
StressedMech is on a distinguished road

really? you mean you used 4 chips and converted PWM to +-10V signals? thats great! cos I wasn't sure if it would work properly. Lots of ppl I've seen on the web were using at least 2 chips (PICS or AVRS) for each axis (not considering specific motion controller chips like LM628/LM629) and one host controller [Total of 7 chips]. My concern was that there wouldn't be sufficient processor speed on my host (AtMega32 is 16Mhz) to properly perform feedback, trajectory profiling & motion control all at the same time. Like you mentioned, can my system respond in 1ms? I guess there's only 1 way to find out!

I guess it really depends on the accuracy requried but I'm really doing it for the education aspect of the project and learning more.

As for the operating system, I'm just gonna download G-codes from a PC on to my host controller, and basically the host-controller will be in charge of translating these G-codes into motion on the 3-axis router. do u think that'll be ok?

I've read your website. It seems what you did is very similar to what i'm doing except you used a PC and if i'm not mistaken, the cards that you were using just plug into the PC and u just connect the wires from the motor and encoder to the card?

What language did you use to write your program?
Reply With Quote

  #8  
Old 05-15-2005, 10:23 AM
Gold Member
 
Join Date: Dec 2004
Location: Newtown, CT, USA
Age: 68
Posts: 517
lerman is on a distinguished road

Why are you building this? What are your goals?

I would use EMC for my G-code interpreter, trajectory control, etc. It will run very nicely on a cheap used PC.

The atmega32 is a fine chip to use as a controller (I'm using that family for some projects) -- but why not start with already existing high level code.

If your goal is to learn as much as possible, then you might as well write your own G-code interpreter, trajectory control, etc. Heck, have you considered drawing your own wire and winding your own servos?

Sorry, I don't mean to make fun of you (well, maybe a little :-)

My goal in converting my Bridgeport Clone to CNC was to get a machine going as fast as possible within a limited budget. I bought ballscrews, servo mounts, servos, controller and driver boards. I made the power supply, mounted and wired the boards, etc. I found limit switches on E-bay, and bought a used PC on E-bay. I've enjoyed it a lot -- but it is still not up and running.

Think about your engineering goals -- functionality, cost, timing. Think about your personal goals -- labor, learning,...

Then plan a way to get there.

Ken
__________________
Kenneth Lerman
55 Main Street
Newtown, CT 06470
Reply With Quote

  #9   Ban this user!
Old 05-15-2005, 11:26 AM
 
Join Date: Jul 2003
Location: north wales,u.k
Posts: 46
mmjpotter is on a distinguished road

There are many ways to crack a nut - as they say - and using the ATmega32 micro-controller is certainly one way to implement motion control. I agree with 2 of Lerman's comments. Redundant PC's make good dedicated controllers and a high level language will make the programming task so much easier. I used C/C++ to write my controller but with an assembly coded interrupt routine to perform the real time data aquisition.
I am now looking at Linux EMC as an alternative platform for my controller, altough as I understand it , the Linux system already contains many of the control functions which I have built into the MSDOS controller.
__________________
mike potter
Reply With Quote

Reply




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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Semi-newbie looking for some design advice galacticroot DIY-CNC Router Table Machines 15 08-24-2006 06:49 AM
CNC Router for pool cue inlays? Cueman8525 DIY-CNC Router Table Machines 7 10-20-2004 09:59 AM
DATA-CUT CNC Router Plans CADCAM GUY DIY-CNC Router Table Machines 2 09-30-2003 10:41 AM
5 Axis Rotery Head Home Cnc Router mace DIY-CNC Router Table Machines 22 09-18-2003 11:29 AM




All times are GMT -5. The time now is 06:42 PM.





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