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! > OpenSource CNC Design Center > Open Source Controller Boards


Open Source Controller Boards Discussion for Open Source CNC type Controller Boards and other related items. (for personal use only)


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 05-18-2007, 03:45 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road
Talking Probably the smallest 3 axis controller???

My first real post...

I made this design that i use myself...

Runs unipolar motors of allmost any size (I use JVL 342 Nema 34 for my machine)

Read the howto.txt... It will pretty much explain itself...

Regards... 666
Attached Images
File Type: jpg 3Axis1_resize.JPG‎ (133.3 KB, 724 views)
File Type: jpg 3axis2_resize.JPG‎ (141.4 KB, 637 views)
File Type: jpg 3axis3_resize.JPG‎ (84.5 KB, 544 views)
Attached Files
File Type: txt HOWTO.TXT‎ (1.6 KB, 742 views)
File Type: zip 3_Axis_Pic_Microsize.zip‎ (50.1 KB, 774 views)
Reply With Quote

  #2   Ban this user!
Old 05-27-2007, 10:58 AM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

666, I am attaching my schematics here to continue discussion on it.



Yes, I think without those resistors, it will switch faster, and as you pointed out, we really don't need that kind of speed. My PIC is 12F675 (could have used 12F629) and using its internal oscillator at ~4Mhz.

I had one accident that a piece of aluminum chip got stuck between two terminals of one MOSFET, for some reason that killed both the FET and the PIC. So I decided to add those resistors, just in case when PIC's pin (connected to the gate) is low and then it is shorted to V supply by accident. I know I need to enclose the circuit, but I was too happy to see it work and chips flying . . .
Reply With Quote

  #3   Ban this user!
Old 05-27-2007, 12:52 PM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road

Okay... Sounds reasonable, but normally i donīt polish my FETīs with aluminium chips during a gcode run... LOL... no offense...

Iīm just a big fan of simplicity i guess...

And it was my opinion as a designer, not a user since the resistors wonīt affect the use of your circuit in a negative way.

You could as well change the resistor values to 1K or 1K2.

The fets have a very high input impedance, so i think it might even work with 100K as well...

Conclusiuon: Less drilling & soldering is in my opinion better...

And by the way... You can actually óverclockīthe PICīs you have chosen...

I bet they will run perfect at 8MHz too.

I once had a 16F84 /04 running at 12MHz... NO sweat...

I got better input (step/dir) timing in TurboCNC. Made my motors run more steps/second before īcranking outī... Nice feature in jog mode if your axis has a long way to travel...

Let the chips fly... And keep me updated... Nice work.
Reply With Quote

  #4   Ban this user!
Old 05-27-2007, 03:32 PM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

This is my second shot at stepper driver. The first one was ULN2803 but that limited me to max of 1A. But it worked for its purpose.

I just happen to have these MOSFETs from my last hobby project -- PWM'ing high powered Luxeon LED's for my ring photography light. I basically use it as a flash, only lights up at full power (8 3W Luxeon LEDs) when camera's shutter closes.

Then when I ran out of power for my steppers with ULN2803, I scrambled up this, and it worked the very first TIME, so I used it to chip some aluminum block and then the accident. I only converted my mill into CNC for fun, not even planning to use it seriously, so I never bothered enclosing it.

My software actually has a timer, after 5 second of "idling", ie, no stepping signals, I shut down all MOSFET's. I find it easier to use, particulary when I adjust Z zero, I can use the knob to lower the end mill to workpiece and then set Z to zero on Mach 3. I think I should cut it down to 0.5 seconds. Is that a good idea?

Simplicity is key to me, too. I follow KISS (keep it simple stupid) rule all the time (because I am very lazy).
Reply With Quote

  #5   Ban this user!
Old 05-27-2007, 04:25 PM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road

Sounds reasonable to cut down the idle time as long as you keep in mind that you might need holding torque even if the axisīs areīnt moving. For instance at tool change or manual workpiece movement/turning. I allways keep my steppers on holding torque even if the machine has finished its cycle of gcode.

I donīt even use enable signals at my machines.

If i blow my steppers... I must have made a design mistake...

Theyīre allways ÓNī, but i have the option of adding a solid state relay that cuts the supply to the steppers. E.G. on safety or limit switch activation.

SSRīs are fast and reliable...

I have even thougt of building a bipolar stepper controller just by the use of SSRīs!!! Until now i have made a H-Bridge just by the use of SSRīs and som simple control logic (74ls74/74ls86).

Imagine a biploar stepper controller crankinīout 25 amps per phase without breaking a sweat... And built-in opto isolation is included in the package!!!

I used Crydom SSRīs for the experiment. I get them for free at work...

One day they might drive my steppers...
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 05-28-2007, 02:12 AM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

Yeah, determining the "right" idling time is impossible, but I think it got be done because motors heat up fast. It seems my mill (Sieg X1) has enough friction to hold on its own, so I think I will cut it down to 1 second.

Wow SSR based H bridge, how many SSR's per winding?

I am thinking about unipolar chopping design using PIC's built-in voltage comparator. When I was playing with Luxeon LED's, I had to build a constant current driver using inductor. Motor winding can be treated as inductor, so it ought to be possible. The PIC I am thinking is 16F684 which I just happen to have a bunch. This would eliminate those bulky power resistors.

Well, depends if I have time to do this, busy at work lately.
Reply With Quote

  #7   Ban this user!
Old 05-28-2007, 03:45 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road
Cool

The PIC as a current limiter.... Sounds smooth...

Looking forward to hear how you do that... You could for instance use a a/d converter and measure voltage drop over a shunt resistor. Could be interresting to see if it can be done. Think it would be a perfect and fast solution. You could then use DIP switches to set the drive current or make a routine for the PIC that measures the DC resistance in the windings...

A single H-bridge is made by using 4 SSRīs for each winding. 8 for each stepper.

A 3 axis controller should have 24 SSRīs and the control logic icīs. They can be stacked on both sides of a heatsink or attached to the cabinet wall, so it wouldīnt be a problem. As i get the time iīll pull off an experiment. I allready got all the SSRīs.
Reply With Quote

  #8   Ban this user!
Old 05-28-2007, 10:15 AM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

8 SSR's per motor sound a little to much to construct, then again I am the lazy type :-) Good idea, but what are the current ratings on those SSR? Last time I used a SSR, it has about 140mA rating, not even enough for the tiny motor I am moding of a coolant spray system.

A/D conversion seems too slow, then again, the built-in voltage comparators seem slow, too, but definitely faster and more reliable than A/D conversion.

My scheme is this, use PIC's internal programmable Vref, its internal voltage comparators (PIC16F684 has two) to monitor voltage across sense resistors (shunt resistors as you put it) and turning on and off the MOSFET's. I am also thinking that I need some resettable fuse (PTC?) to protect motor in case of PIC failure (imagine 50V acrosss a motor winding of 1 ohm DC resistance). The software part does not seem that difficult.

So, if I use the MOSFET that I have, FQP13N10L (rated 100V, 12.5A), I probably can push the driver to handle 70V, 9A (consider massive heatsink and fans blowing). This could be a heck of driver.

But I just have to learn why people use the so called "fixed off" time scheme for chopping. Also, I need to learn those mid-band harmonic stuff. Or maybe I don't have to handle the mid-band thing because it is intended for SIMPLE driver.

The auto measure of motor DC resistance idea is an EXCELLENT one.
Reply With Quote

  #9   Ban this user!
Old 05-28-2007, 11:12 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road

Hi again...

Iīm not an expert in current chopping.

I suggest you ask Alan Garfield (www.fromorbit.com).

Heīs really good on that subject.

About the SSRīs... They trig on 3-32VDC input at very few mAmps.

The Crydom versions i have in stock can pull 25 Amps at 250VAC or DC on the output side.

They have built in triacīs instead of SCRīs and they donīt care if itīs AC or DC thet must handle as output...
Reply With Quote

  #10   Ban this user!
Old 05-28-2007, 08:48 PM
 
Join Date: May 2007
Location: USA
Posts: 32
zwdeal is on a distinguished road

I thought TRIAC can only be used for zero crossing AC -- to turn a TRIAC off once on, no current should flow throw the device for certain time in order for it to turn off.

But I guess the one you have has special features to avoid this problem.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 05-29-2007, 05:57 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road

A Triac is just 2 Thyristiorīs with the gates connected... One will trig on negative and one on positive signals...

You donīt have any negative signals i the DC (0-X volts plus...) Only one of the SCRīs will trig... So AC or DC... Dowsnīt matter...

As it goes for bridge rectifiers you can supply DC to them as well. Only 2 of the diodes wil conduct curent, but the +- on the output side is allways the same.

I made a foam cutting PSU for hotwire. Ajustable from 2 to 14 volts AC using a triac circuit. Is delivers 40 amps on the output side. Not a single heatsink used... Just switching on the primary (230V) side of the transformer.

Itīs a 14.5V E-Core transformer from an APC UPS. Powerful enough to make a 2mm massive copper wire glow. I wonder if it can be adapted to deliver High current DC for my big JVL steppers, but the triac puts out a great deal of noise, so i have to smoothen the DC with some very large CAPīs 22000uF or larger.

Cons: Noise on the DC line to be dealt with. Can be fixed.

Pros: Only apx. 4 amps applied to the triac. No heatsink needed. Simple and dirt cheap. Itīs just a modified light dimmer circuit...
Reply With Quote

  #12   Ban this user!
Old 05-29-2007, 06:02 AM
666 666 is offline
 
Join Date: Aug 2004
Location: Denmark
Posts: 34
666 is on a distinguished road
Lightbulb

Oh... Forgot to tell that to turn the triac off you need a cap+diode mounted as a clamping circuit. Will produce a negative short spike as the signal hits o volts. If the other built-in SCR goes on... Doesenīt matter since you only have a positive supply applies to the triac.

This is NOT needet in Crydom SSRīs. They have built in compensation for that...

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who has the smallest workshop CNCRob CNCzone Club House 73 10-02-2007 11:15 AM
Does anyone has Smallest Jet engn.Plan ? Calico Jet Engines and Ram Jets 7 03-21-2007 08:26 AM
4 axis controller for 3 axis machine? tybrenis CNCzone Club House 8 01-19-2007 09:12 PM
World's smallest DIY CNC? lwill CNCzone Club House 0 12-01-2006 02:14 AM
Smallest bit Sanghera DIY-CNC Router Table Machines 4 06-15-2006 08:02 AM




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