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 03-21-2005, 07:28 AM
 
Join Date: Dec 2004
Location: australia
Posts: 6
genericuser is on a distinguished road
Chopper for AVR from complete newbie, comments pls

Hello zoners,

I've been playing with the idea of connecting up my AVR 8535 to some steppers for awhile now (especially after seeing H500s "Avr Unipolar Chopper Drive"), and here's what I've come up with. Being a relative newbie at electronic circuitry I would appreciate some tips/pointers to anything I have missed. There's probably a lot, as I didn't really expect this circuit to work as it seemed just a little too simple, but I have it powering a 1.34 Amp 4V stepper with a 12V supply with great success. No overheating anywhere.

It get's it pulses from the 8535 AVR, which is just putting out half-step pulses with no connection to the PC, although this will be done shortly.

All this is currently sitting on my breadboard and I'd like to move it to a proto-board but would like some feedback beforehand.

FYI R6 trimpot is around 3k

Do you think that this design would work for larger stepper?

All comments appreciated

Cheers
generic
Attached Images
File Type: jpg chopchop.jpg‎ (25.2 KB, 104 views)
File Type: gif chopchop.gif‎ (32.0 KB, 224 views)
Tweet this Post!Share on Facebook
Reply With Quote

  #2   Ban this user!
Old 03-22-2005, 12:38 AM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 909
H500 is on a distinguished road

Good work Gen! I originally tried to do the chopping by hardware using a single 324 quad op amp as the comparators, but it was too unstable. Glad to see your's work so well. Software chopping chews up too much cpu time.

One thing to note is that at high stepping rates, the inductance of the motors become the limiting factor and the current never reaches the point where the chopper would kick in. So the acid test is to use a low step rate and a higher voltage, 20 volts or more. Make sure you monitor the current in case the limiter don't work. Keep in mind that the current flow in the sensing resistor is bi-directional, so a simple voltage measurement might not give a true reading. A scope is best.

Also keep in mind that the voltage across the mosfets is TWICE the supply voltage.

To avoid resonance problems, micro-stepping is extremely desirable. In theory, it would be easy to use 6 MCU pins to make two 3 bit resistor ladder D/A converters to feed varying references to each of the two comparators.

Keep us posted on your progress!
Tweet this Post!Share on Facebook
Reply With Quote

  #3   Ban this user!
Old 03-22-2005, 11:03 AM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Great work generic,
Looks like you captured it in eagle, why not do a toner transfer pcb?

Phil
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

  #4   Ban this user!
Old 03-30-2005, 12:12 AM
 
Join Date: Dec 2004
Location: australia
Posts: 6
genericuser is on a distinguished road

Hey H500 & phil,

Thanks for the encouragement, I've spent the easter break fishing, not much on the bite which gave me some quite time to think about this project

Originally Posted by H500
One thing to note is that at high stepping rates, the inductance of the motors become the limiting factor and the current never reaches the point where the chopper would kick in. So the acid test is to use a low step rate and a higher voltage, 20 volts or more. Make sure you monitor the current in case the limiter don't work. Keep in mind that the current flow in the sensing resistor is bi-directional, so a simple voltage measurement might not give a true reading. A scope is best.
I working on getting a 24volt supply going to test it at a slow stepping rate as you suggested, but have no scope to monitor.

Originally Posted by H500
Also keep in mind that the voltage across the mosfets is TWICE the supply voltage.
Here's where my newbieness come into play, I'm not sure why the voltage across the mosfets is 2X supply. Can you explain briefly so I can further investigate? I assume your making sure that if I increase supply then I must also ensure mosfet max volts is in safe limit.

Originally Posted by H500
In theory, it would be easy to use 6 MCU pins to make two 3 bit resistor ladder D/A converters to feed varying references to each of the two comparators.
This makes sense to me and would be a good use of an avr, it's now on my next to do list.

Originally Posted by pminmo
Looks like you captured it in eagle, why not do a toner transfer pcb?
my first attempt at eagle, I've never done a toner transfer board before. I'm going to attempt to implement some of the suggestions of H500 and if that works out I'll give it a go.

Cheers
generic
Tweet this Post!Share on Facebook
Reply With Quote

  #5   Ban this user!
Old 03-30-2005, 04:56 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

RE - Twice the supply voltage. Same concept as a relay coil, when you open the switch the coil has a voltage potential stored that is roughly the same value as the supply voltage across the coil when it was on. That coil voltage is additive to the power supply, thus roughly twice the power supply voltage.

Phil
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-31-2005, 01:16 AM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 909
H500 is on a distinguished road

Originally Posted by genericuser
Hey H500 & phil,
Here's where my newbieness come into play, I'm not sure why the voltage across the mosfets is 2X supply. Can you explain briefly so I can further investigate? I assume your making sure that if I increase supply then I must also ensure mosfet max volts is in safe limit.
generic
When the chopper fet turns off, the current in the coil ceases instantly. Those who are familiar with inductors might ask how this can happen since it violates the fundamental characteristics. The answer is that the motor acts like a transformer rather than an inductor.

The + and - phase coils on a unipolar motor is wound bifilar, ie: two strands of wire are wound on the same core.

So, when the fet turns off, the current is actually transferred to the other coil, flowing back into the power supply. This transformer action is what doubles the voltage on the fet

If you are interested in the mathematical details, just read up on transformer theory. Otherwise, just remember to use fets with at least twice the voltage rating as the supply.
Tweet this Post!Share on Facebook
Reply With Quote

  #7   Ban this user!
Old 03-31-2005, 03:58 AM
 
Join Date: Dec 2004
Location: australia
Posts: 6
genericuser is on a distinguished road

Thanks Phil & H500,

I've done some reading on transformers and have a clearer understanding. The IRFZ44 fet has a 55V Drain-Source max, so I'll go with a 24v supply. I'm toying with the idea of building one, as trying to source a surplus 3A 24v supply for testing is proving difficult.

Will hopefully have phase 2 of design with micro stepping shortly.

Cheers
generic
Tweet this Post!Share on Facebook
Reply With Quote

  #8   Ban this user!
Old 03-31-2005, 05:21 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

Originally Posted by H500
When the chopper fet turns off, the current in the coil ceases instantly. Those who are familiar with inductors might ask how this can happen since it violates the fundamental characteristics.
What fundamental chararestic does the inductor have that current flow can continue in an open circuit?

Phil
__________________
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; 03-31-2005 at 05:44 PM.
Tweet this Post!Share on Facebook
Reply With Quote

  #9   Ban this user!
Old 03-31-2005, 05:45 PM
 
Join Date: Feb 2005
Location: canada
Posts: 5
Dr.H is on a distinguished road

current flow will continue in the air for a split second. Thats what create a spark in your switch
Tweet this Post!Share on Facebook
Reply With Quote

  #10   Ban this user!
Old 03-31-2005, 06:01 PM
pminmo's Avatar  
Join Date: Jun 2003
Location: St. Peters, Mo USA
Age: 59
Posts: 3,325
pminmo is on a distinguished road

I thought the spark was because of air ionization creating a conductive path? The moment current is interrupted in an inductor, the inductor opposes current change, and voltage rises to maintain current flow.

Phil
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Tweet this Post!Share on Facebook
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-31-2005, 06:08 PM
 
Join Date: Feb 2005
Location: canada
Posts: 5
Dr.H is on a distinguished road

Thats right

voltage raise to maintain current flow. It raise so much that it will create a spark witch is air ionization
Tweet this Post!Share on Facebook
Reply With Quote

  #12   Ban this user!
Old 03-31-2005, 09:20 PM
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 909
H500 is on a distinguished road

Try measuring the voltage across an inductor after the current is interrupted. You will find that it rises to several times the supply voltage (ie: more than just twice)
Tweet this Post!Share on Facebook
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
complete newbie with q's about hobby cnc order rkremser Hobbycnc (Products) 16 03-25-2006 11:17 PM
Complete Newbie seeking for help. - Clisby mini machines. some8 Mini Lathe 11 03-13-2006 09:23 AM
Trying to clarify, for newbie as me. Comments pls pigifly Open Source Controller Boards 4 10-04-2004 03:23 PM
First post complete newbie slp_prlzys DIY-CNC Router Table Machines 6 04-19-2004 01:20 AM




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