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 01-18-2010, 11:40 PM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road
Current limit circuit help

I have been working on a bipolar stepper driver and I have the mosfet / driver part done, but now I am working on the current limit portion.

I have built this circuit on a bread board with the PWM comming from a pic 18f2550 with a freq around 20khz and a 3uS on time. I think at this freq it shouldnt make any noise but I can still hear it in the motor. Not sure if its cause of the breadboard or from lack of filters...

So I am looking for any advice for adding filter circuits to my schematic.

I am using the 3uS to enable a NOR flip flop and also add dead time with the same 3uS.

Here is the schematic.

Reply With Quote

  #2   Ban this user!
Old 01-20-2010, 07:18 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road

Hi,

Looking at your circuit design.
1. Any time your 3us pulse is high your enable will be high and your motor current will not control the enable line.
2. Any time your motor current passes the threshold set by the pot, your enable goes low, if your 3us pulse clock line is also low.

Is this what you intended?

Steve
Reply With Quote

  #3   Ban this user!
Old 01-20-2010, 08:13 AM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

The LM393 goes low when the current it higher then the set point.
The 3uS pulse sets the flip flop (enable on), and this stays set untill the reset sees a high signal (enable off).
This high signal comes when both lines on U1C are low (the clock is low after the pulse so its just waiting for the comparitor).
The 3uS is also used to keep the enable on for the 3uS period as a blanking period by giving U1C a high.

I think I got that right...
Reply With Quote

  #4   Ban this user!
Old 01-20-2010, 08:32 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Lightbulb cycle skipping

The lower frequency you hear will be due to 'cycle skipping'
An inductor, by nature resists a change in current.
When you turn off the drive the inductor current falls, but may last much longer than you think.
So the next cycle, there is still current, and no current is commanded.
This is why we us high voltage to drive steppers so we can force the current to change in a shorter period of time, and hence run at higher frequencies.
__________________
Super X3. 3600rpm. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.
Reply With Quote

  #5   Ban this user!
Old 01-20-2010, 08:45 AM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

You also need to look at the decay paths which release the stored energy in the motor coils. You dont say which driver chips you are using but different products handle different decay paths, 'fast decay' offloads the energy back into the power rail, sometimes by part reverse driving the coil earlier. Slow decay just leaves it to decay through the L/R constant and the reverse diodes in the MOSFETS. These modes and the switching between them can greatly change the characteristics of the driver as will the L/R constant of the motor.
__________________
If you're in Europe why not come and visit the UK CNC Community at http://www.mycncuk.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 01-20-2010, 11:42 AM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

Well right now I am just testing the motor with 5 volts and a constant coil on (no motion on the motor) so the low voltage may cause the slow decay. I will be running the driver with my 48 volt supply when I know it works.
I am using the IR2102 driver.
Reply With Quote

  #7   Ban this user!
Old 01-21-2010, 07:36 AM
vger's Avatar  
Join Date: Jan 2006
Location: usa
Posts: 664
vger is on a distinguished road

Attached is a scope trace of the voltage across an inductor with a 14ms 10V pulse applied. There is also a resistor in series with the inductor that is about 1 1/2 times the DC resistance of the coil. The 0 V is at 2 divisions below the top of the screen. You can see the voltage jumps to the applied voltage and then decays over time to about 4 volts at which point the inductor is acting as a pure resistance. When the pulse ends, you can see the negative pulse (caused by the rapid collapse of the field in the coil) that goes to about -25V. The current at that point trough the coil is opposite of the direction of the original applied current. The larger the inductance, the larger this negative spike will be. This is the basis for creating high voltage pulses in ignition coils in cars and in stun guns.

Sound.... is created when something is moving. A speaker cone is one example. The magnetic field in a motor can actually cause the frame (and core) of the motor to deform, or bend, very slightly. This minute movement will generate sound. There is also the rotor of the motor that is free to turn and has inertia. When forced into a specific radial positon by a magnetic field (as in a stepper) there is also and opposite force placed on the frame of the motor. That is, if the rotor is accelerating clockwise, the frame will be accelerated counter clockwise. Even an AC motor operating on very clean sine wave current will generate noise (a little hum) and if you run that motor on a VFD (which uses a higher frequency PWM) you will most likely hear the "whine" generated.

Hope I didn't get too far off subject...

Steve
Attached Thumbnails
Click image for larger version

Name:	ind_resp.jpeg‎
Views:	46
Size:	55.4 KB
ID:	98155  
Reply With Quote

  #8   Ban this user!
Old 01-21-2010, 10:01 AM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

Another example of a trace...
Attached Thumbnails
Click image for larger version

Name:	steppernoise.gif‎
Views:	55
Size:	26.7 KB
ID:	98163  
__________________
If you're in Europe why not come and visit the UK CNC Community at http://www.mycncuk.com
Reply With Quote

  #9  
Old 01-21-2010, 09:48 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

My comments: Ground referenced short-circuit detection is simple but it doesn't address the most common kind of drive fault; a short from a motor output to ground. That requires high-side (sensing +Vsupply current) short-circuit detection.

Mariss
Reply With Quote

  #10   Ban this user!
Old 01-22-2010, 08:15 AM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

High side would be nice, but I really don't know how to go about conditioning the high voltage signal to something that can be read reliably without getting some expensive purpose built chips...
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 01-22-2010, 08:17 AM
 
Join Date: Nov 2006
Location: edmonton
Posts: 104
fahque99 is on a distinguished road

I think I am going to try to use fast decay mode too.
Reply With Quote

  #12   Ban this user!
Old 01-22-2010, 09:45 AM
 
Join Date: Jul 2008
Location: UK
Age: 54
Posts: 411
irving2008 is on a distinguished road

Originally Posted by fahque99 View Post
High side would be nice, but I really don't know how to go about conditioning the high voltage signal to something that can be read reliably without getting some expensive purpose built chips...
Same way as the low side... series resistor, a low pass filter and a comparator... but vref for the comparator relative to the high side rail and well decoupled... need to use an opamp/comparator with a high common-mode voltage rating, or run the opamp off the high side rail and a ground offset. Something like the diagram...
Attached Thumbnails
Click image for larger version

Name:	ShortCircuit.jpg‎
Views:	75
Size:	33.4 KB
ID:	98296  
__________________
If you're in Europe why not come and visit the UK CNC Community at http://www.mycncuk.com
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
Need Help!- I found the contradiction of the PWM method constant current circuit. apollonono Stepper Motors and Drives 1 05-03-2009 12:45 AM
Original UHU current limit question chrugel UHU Servo Controllers 0 02-18-2009 12:15 PM
Simple Current Limiting Chopper Circuit??? fairorgan Stepper Motors and Drives 1 01-20-2007 11:06 AM
need high current regulator circuit tekno General Electronics Discussion 38 05-22-2006 08:00 PM
limit switches circuit? Bryscnc Mach Software (ArtSoft software) 1 02-10-2005 09:18 PM




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