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 07-18-2008, 01:13 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road
Check my *cough* logic - H-bridge design.

This is a combination of a few circuits floating around the zone.. I am in need of a simple current limited h-bridge that will take PWM UP/DOWN from emc. I have built a non-current limited one that has been working great for testing.. http://www.electronicsam.com/images/...art/almost.JPG and http://www.electronicsam.com/images/...rt/ampmess.JPG
using IR2111 gate drivers..

Mainly looking for feedback on the current tripping. The reason I am using the logic I am - is I have it in hand. (in case there is a - you could do it better using....)

annother note.. parts of this was taken from the uhu iirc.. it was outputing pwm - notpwm. With emc - there is never any signal on one pin while the other is outputing pwm.. (up/down) so I needed to OR the 2 pwm signals to the flip flop so I was sure it was reset. (hope I am making sense)

Thanks for looking.. (sorry about the mess)
sam
Attached Thumbnails
Click image for larger version

Name:	Newschem3.jpg‎
Views:	522
Size:	69.4 KB
ID:	63288  
Reply With Quote

  #2   Ban this user!
Old 07-18-2008, 01:16 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

Oh - and it works out that if I put 2 drives on one board - all the logic gets used up perfectly...
Reply With Quote

  #3   Ban this user!
Old 07-18-2008, 06:58 PM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I will be watching to see how your current limit goes, I am the same, I have working H Bridges running nicely on my router with no current limit at all I know that is bad but I don't have the time/knowledge to build my own circuit. I will be working on it but for the meantime that is why I went with the Elm Chan servo drive, it does a torque limit that works quite well as a current limit.

Once I get a real current limit done then its off with the Elm Chan drive and onto a closed loop to PC setup with EMC, probably with a pluto-p or Mesa Hostmot card.

Russell.
Reply With Quote

  #4   Ban this user!
Old 07-19-2008, 02:33 AM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Cool Looks reasonable.

Hi Sam. Russell, I think you will find this of interest also.

Some changes and the reason.

Increase R1,R2,R3 and R4 to something like 220R or 330R, or even 470R.
Reason: To reduce or stop 'shoot through' currents in bridge.
Consider the condition where all of Q1,2,3 and 4 are all off and inductive flywheel current is flowing through the load connected to PAD6 and PAD7 and through diodes U$2 and U$3 (and also through the diodes in the MOSFETS).
If transistor Q1 or Q4 are commanded to go on which is (normal part of the logic, which functionality I choose to ignore) Q1 has to reverse the current through U$3. U$3 has a reverse recovery time of just say 100ns (I dunno what it actually is) now Q1 sees a short to ground through the current sense resistor for the reverse recovery time of U$3. The load is irrelevant at this point.
What you will see for the reverse recovery time is the FULL SUPPLY across the current sense resistor R9 which could be upward of 1000Amps given that the ESR of your filter might be quite low, and there was very little inductance in your wiring. I practice it would be more like 100-500A !

At the end of the pulse now you will get a big negative spike across R9 as it in practice does have some inductance, (and you might have used a wirewound one !) This negative spike will cause U$3 to conduct again and Q1 will see a short circuit again. You have just created a high power oscilatory circuit !

To overcome this we allow the MOSFETs to turn on slowly so that the reverse recovery current is limited by themelves dissipating the energy.
We lose a small amount of efficiency, which in most cases is negligible.

2 rules:
1).
DON'T TURN ON MOSFETS TOO FAST as this creates big spikes (and RFI). Make R1/Gate capacitance time 20-50% greater than the reverse recovery time of diode (not forgetting the one in the MOSFET. It might be worse).
2). Turning them off too quickly encourages the inductive load to make BIGGER SPIKES too. The resistor helps here too.

As supply voltages get higher and currents through MOSFETs are lower expect to use a lower value of resistance. The data sheets usually refer to situations where there is a supply voltage near the ratings of the device.
When used at low voltages the higher currents create higher spikes.

It is quite often very problematic measuring or seeing these spikes, but they will be there, even if fleetingly.

Hence the resistors. You can increase them until MOSFETS get a bit warm before you really need to worry, but typically 200-500 ohms is OK.

Not trying to change any of your circuit, but have a look at UC3843 PWM driver IC. It can disappear most of your logic.
It has high output drive, current sensing, a reference voltage, amplifier and draws very little current. It offer an elegant solution to many problems at a low cost. It has +/- high current output so can drive MOSFETS directly. Makes a great negative switcher supply with just a few parts too.
__________________
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.

Last edited by neilw20; 07-19-2008 at 07:19 AM. Reason: typo
Reply With Quote

  #5   Ban this user!
Old 07-19-2008, 10:30 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

epineh: stay tuned..

neilw20: Thanks for the info.
Looking at the ir2184 datasheet - it does all the shoot thru protection and also has on/off delays.

Ton/Toff is 680/270 ns
dead time of 500ns

it also has some other cool protection. (like I say - I have been using the ir2111 in a similar circuit and it has been working great).

• Floating channel designed for bootstrap operation
Fully operational to +600V
Tolerant to negative transient voltage
dV/dt immune
• Gate drive supply range from 10 to 20V
• Undervoltage lockout for both channels
• 3.3V and 5V input logic compatible
• Matched propagation delay for both channels
• Logic and power ground +/- 5V offset.
• Lower di/dt gate driver for better noise immunity
• Output source/sink current capability 1.4A/1.8A

http://www.datasheetcatalog.org/data...irf/ir2184.pdf

The current sense resistor I am using claims to have no inductance.. It is .015R at 7w

thanks again.. sam
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-19-2008, 07:05 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Question How?

Yes it protects against shoot through protection by turning off the MOSFET if it does not saturate, by measuring the voltage across the MOSFET, then skips a drive cycle. Do you really want these almost invisible hiccups, because of the reverse recovery time of some other diode which the chip does not know about?
Sure it protects it, but IMHO if you want it to work nice you still need to turn on the MOSFET a whisker slower than the RR time.
Just delaying the turn on wont stop the current flowing through the diode.
Something has to change the direction of the current. Just because you delay for 680/270nS that will not stop flywheel current from flowing. It will continue to flow while there is inductive energy in the coil which quite often will be longer than 680nS.

Neil

Russell. Any comments?
__________________
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

  #7   Ban this user!
Old 07-21-2008, 05:47 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

Originally Posted by neilw20 View Post

Russell. Any comments?
Not really, most of this stuff goes over my head, I am currently running much the same configuration as Sam's schematic using 2184's, I have used 270ohm gate resistors with a fast recovery diode in parallel, (reverse) and it seems to be working OK so far, FETS run only slightly warmer than ambient under rapid accel/decel conditions.

My bridges don't have current limit (yet) but the torque limit with the Elm Chan is doing the job surprisingly well, I had about 12 crashes while jogging around last night and the drive faults out nicely without catching fire, always a bonus

Sam back to your logic, I assume that you are disabling the gate drivers upon overcurrent which in turn produces a following error from the drive or in your case EMC ? I was thinking of doing the same or possibly having the fault signal latching to make sure the bridge doesn't get turned back on if the overcurrent detection resets before the following error picks up the fault... or is that completely unnecessary ?

Another thought I had and Neil you may have ideas about this, is why not use a small micro, say an AVRtiny2313 (I have dozens of them in a drawer ) reading either the sense resistor voltage directly and setting a trip point or reading an amplified linear analogue voltage (I have another circuit in mind, I will swap PC's and add link) say from 0-5v for simplicity ?

Other thoughts I had for doing this is that the micro could be used for a couple of handy things, like handling all logic, enable, fault and if the drive/axis was to be disabled without bringing up an error state to the controller eg. a 4th axis that gets added and removed frequently. Also a little 6 or so LED bar graph showing servo current would be nice.

The current limit could be set using rs232 maybe, might be a little more simple to setup than trimpots, dunno just thinking out aloud. Would a micro running at 20MHz have any problem detecting overcurrent in a 20KHz servo ?

I know cost is usually the drawback for this kind of thing but I can get a tiny 2313 for $1.70 on my doorstep, so it is hardly a high price for some nice features...

Russell.

Here, found link, thought this might be a good way to send 0-5V to micro...

http://www.cnczone.com/forums/showpo...0&postcount=95

Last edited by epineh; 07-21-2008 at 06:26 AM. Reason: Added link
Reply With Quote

  #8   Ban this user!
Old 07-21-2008, 07:19 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

This is just cycle by cycle current limiting.. I am doing it to help protect the h-bridge and servo. Yes - if something happens and the amp goes into current limit - emc will throw a following error. (if it can't get to the commanded positon because of it.)

If everything is tuned right in emc - I really don't think the amp should go into current limit.

sam
Reply With Quote

  #9   Ban this user!
Old 07-23-2008, 08:27 AM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

anyone have info on a good layout for Kelvin configuration. (sense resistor)

Attached Thumbnails
Click image for larger version

Name:	newschem4.jpg‎
Views:	190
Size:	69.7 KB
ID:	63565  
Reply With Quote

  #10   Ban this user!
Old 07-23-2008, 02:27 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

Here is an fyi - the tl082 doesn't like the -supply grounded. (comparing Millivolts)

(glad I breadboarded it)

So - I need to find a comparator that works at near 0v or use an extra supply

sam
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-23-2008, 08:04 PM
neilw20's Avatar  
Join Date: Jun 2007
Location: Australia
Age: 63
Posts: 2,342
neilw20 is on a distinguished road
Smile Use Lm339/LM393

The LM339 / LM393 will work because it IS a comparator.
You will need a 6K8 or 10K pullup on the outputs because they are open collector.
The TL082 can cause a few weird effects during powerup when the internal biasing is too low. During power up the inverting input will work like a non-inverting input which can cause strange side effects.
Using a traditional LM358 is never a drama, and it's input common mode voltage includes ground which makes it easy to use with single sided supplies.
IN this case you need the speed of the LM339 family.
You can run it close to it's maximum supply voltage so that it still responds to spikes correctly. Use at least 1K or higher for R10 and use a fast diodes (1n4148 ok) to protect the input from exceeding the supplies.
Beware that a generic 4013 requires clock rise/fall times < 15uS.
If you cant achieve this easily then the Phillips HEF4013 have schmitt trigger clock inputs. Never get caught replacing a HEF4013 with a generic one. HEF's are often used for this characteristic and circuits can start doing erratic things.
__________________
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

  #12   Ban this user!
Old 07-23-2008, 09:32 PM
 
Join Date: Jul 2003
Location: Holmen, WI
Posts: 1,082
samco is on a distinguished road

Thank you - that is what I needed to know. (getting there slowly)


thanks again
sam
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
mosfet h-bridge design visky General Electronics Discussion 6 06-11-2008 03:51 PM
Half bridge or Full bridge bunalmis General Electronics Discussion 3 04-13-2008 02:11 PM
Fixed Bridge CNC Router design Helstrom DIY-CNC Router Table Machines 0 12-08-2007 01:14 PM
Spell check it out!!! I just noticed CNCzone now has spell check! HayTay CNCzone Club House 3 01-19-2007 07:59 AM
please check my design. also screw position ? max_imum2000 Mechanical Calculations/Engineering Design 20 06-09-2006 04:57 PM




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