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 12-20-2009, 06:31 AM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road
PWM drive for a 2KW universal motor/router

Hello all,

I am designing a PWM drive with a closed-loop speed control but have some major problems with the power stage. The schematic is pretty simple: TL494 pwm generator, mosfet driver and a single mosfet/igbt at the end. A fast diode with a soft recovery across the motor. The problem is at the switching between states of the power transistor. I have very high peaks of current, measured across a source to ground resistor of 0.22Ohms. I read something like 25-30Amps for a period of 0.3usec. I have tried to increase the gate drive resistor and got some results but the switching speed degraded significantly and switching loss was getting high. Is there a way that I bring these peaks low enough so I don't blow my transistors? Btw, power supply is kept low - around 80V DC. Target is a rectified 220V AC line.

I have tried a resistive load in forms of a light bulb and got much lower values of the peak current. This is not the case with the motor connected however.

I have attached a photo of the voltage across the sense resistor, this is with a 1KOhm gate resistor /pretty much I know/. 20usec/div and 0.5V/div measurement.

Thanks,
Todor
Attached Thumbnails
Click image for larger version

Name:	20122009.jpg‎
Views:	88
Size:	64.2 KB
ID:	95602  
Reply With Quote

  #2  
Old 12-20-2009, 09:50 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

I believe traditionally universal motors have been triac controlled, there is a Motorola IC out there designed for such an application using a simple inductive pick up tach.
TDA1085. There was a treadmill maker that used this that had the triac fire into a full wave bridge and the motor connected to the bridge DC side.
Al.
Attached Files
File Type: pdf tda1085c.pdf‎ (111.7 KB, 1110 views)
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #3   Ban this user!
Old 12-20-2009, 03:04 PM
 
Join Date: Feb 2007
Location: canada
Posts: 619
Larken is on a distinguished road

Sounds like you have some capacitance in the load. A 1k is much too big. it should be less than 50 ohms for the gate resistor.

Can you post the output part of the circuit ?

Larry K
__________________
Manufacturer of CNC routers and Viper Servo Drives
www.LarkenCNC.com and www.Viperservo.com
Reply With Quote

  #4   Ban this user!
Old 12-21-2009, 01:55 AM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

Thanks for the replies. I am very close to the moment that I abandon this project and really do it with the TDA1085. Anyway here is a part of the schematic I drew recently. I managed to keep the positive peak of the current low with the BC547 transistor but the negative caused by the freewheeling diode remained. I still cannot understand why the mosfet shorts out and what is the cause. I've got the gate protected, power supply voltage if far less that the device rating, I've got no ringing at the voltage across the FET, no excessive heat dissipation. It is some transient process that causes the damage. Sometimes it is done at startup, sometimes when I change the programmed speed. It is always connected to some major change of the input. The 494 is wired to have a current limit, and also the BC547 acts just like one, so I don't think I overloaded the thing. By the way the sense resistor is 0.1 Ohm now.

I will be glad to see any light for my problem guys. Thanks.

Todor

EDIT: I removed the choke and the filter capacitor inside the motor at the very beginning. It should be his internal capacitance only now. Maybe it is something to the with the motor being series wound.
Attached Thumbnails
Click image for larger version

Name:	MOTOR.jpg‎
Views:	773
Size:	46.2 KB
ID:	95669  
Reply With Quote

  #5   Ban this user!
Old 12-22-2009, 11:06 PM
 
Join Date: Feb 2007
Location: canada
Posts: 619
Larken is on a distinguished road

I would replace that DS12 diode with a mosfet with the gate and source connected acting as a diode.
I couldn't find specs on the diode, but it may have too much capacitance.

I would think the BC547 can cause the mosfet to be under driven and make it fail. you would need that transistor to be fully on or fully off .
BTW,the mosfet you are using is pretty wimpy.

Driveing an inductive load may be causing the diode to saturate on the reverse kick and then its too slow to recover when the mosfet turns on.
Is it possible that your turning the mosfet back on as the coil is colapsing ? maybe reduce the pwm frequency.
__________________
Manufacturer of CNC routers and Viper Servo Drives
www.LarkenCNC.com and www.Viperservo.com
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 12-23-2009, 05:01 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

Hi Larken,

Recently I did some more tests and measurement. It looked like I didn't take into account that the sense resistor has some inductance and the voltage that I see across it is not quite the current through the transistor. I obtained a 120Mhz current probe for the scope and the output seemed more friendly than I thought, you will see it on the attachment. I removed the BC547 that was on the gate.

I reassembled the current limit circuit, removed it from the input op-amp section and put it on the dead-time control input of the TL494 as manufacturer suggests. This should do a pulse-current limiting that works better. It looks like my previous limiting circuit was slow enough so that the current at turn-on was rising faster than it can sense and that eventually blew the switching FET.

Tuning the PID settings is a bit tricky also and the interesting thing is that I couldn't find a suitable info on the net about driving a DC motor with a single OP-AMP PID controller. There is of course a lot of theory but almost no one put some real values of the resistors and capacitors on the feedback circuit. I doubt mostly on the impedance of the circuit. Say I can make the same time constant with a 1mF cap and 1MOhm resistor and with 10mF and 100KOhm. I'm not sure though which one will do better and how it would influence on the control process. I managed to do some good results as minimum slow-down when torque is applied and less ringing at a change of speed but I realize it should do a lot better if I find the proper scale of the values of elements there.

Anyway, datasheet of diode DSEP 12-12A says it is designed especially for "free wheeling diode in converters and motor control circuits". It is rated 15A continuous at 1200V max, 40ns recovery time. The IRF634 is weak and I used it at lower voltage for testing purposes only. The final version should be with an IGBT. I will change it with IRG4PC40W and make some more tests at higher voltages, possible reaching a rectified 220V AC, which goes up to 300V.

Attached is the voltage across the FET at 50V/div and the current through it at 2A/div.
Todor
Attached Thumbnails
Click image for larger version

Name:	24122009.jpg‎
Views:	73
Size:	71.2 KB
ID:	95959  
Reply With Quote

  #7  
Old 12-30-2009, 11:56 AM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

The 300ns turn-on spike is a sum of the diode reverse recovery current and motor inter-winding and winding to motor case capacitive currents. Your diode is fast enough (50ns trr) so I'm guessing it's capacitive current for the most part. The capacitance can be substantial, someplace between 1nF and 10nF. Place a 10uH to 100uH ferrite core choke in series with your MOSFET drain to motor connection near the MOSFET end. This should limit the di/dt to a reasonable value.

About your BC547 current limit circuit. It puts your MOSFET at risk and is unstable. The collector feedback to MOSFET gate will tend to bias your MOSFET in its linear region as it attempts to limit current. Operation in that region exposes your MOSFET to SOA curve restrictions. MOSFETs are very fragile in that region (simultaneous significant Ids and Vds). It is unstable because it will repeatedly turn your MOSFET on and off at a high frequency (>1MHz).

Instead, your BC547 collector should terminate the PWM cycle for the balance of the switching period. Use an RS flop; a narrow (<1us) "set" pulse to initiate the PWM cycle and a narrow "reset" pulse to terminate it. OR the collector with "reset" signal. This will give you stable and safe cycle-by-cycle current limiting.

Mariss
Reply With Quote

  #8   Ban this user!
Old 12-31-2009, 06:23 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

First of all, happy new year!

Thanks for the answer mr. Freimanis. The BC547 current limit circuit was part of my first tests, it is removed now. I didn't quite understand your idea of the RS trigger, I guess it is useful when the pulse generator is a microprocessor, which is not exactly my case. I have seen it done with a D trigger that was put before the mosfet driver and powered its shutdown input. This should be similar in terms of operation.

I read an application note on using the TL494 and they give a simple schematic of a pulse current limiter incorporating 3 transistors. Basically it works but is not so stable, I think they missed some base to emitter resistors in it and it should be thought over to make it work as it should. The principle is that when a high enough current is measured, the outputs are disabled until the timing capacitor is discharged. This is exactly my problem that the BC557 does not fully go to the OFF state.

More or less the schematic is working, the last thing to be done is of course the current limiting. I realized that when we are going to high voltages and a stall rotor only the proper operation of this circuit will prevent the output transistor of frying.

Attached is a more finished state of the design, the IR2184 driver is for reference only, final schematic will be with a single driver.

Any advice on improvements are welcome.

Todor
Attached Thumbnails
Click image for larger version

Name:	motor2.jpg‎
Views:	943
Size:	79.9 KB
ID:	96467  
Reply With Quote

  #9  
Old 12-31-2009, 08:18 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

Todor,

Happy New Year to you! I'm not Mr. Freimanis to you; I'm much more comfortable with Mariss.:-)

The idea on pulse by pulse current limiting is it terminates a switching cycle anytime the current limit is reached. A process (the PWM modulator) starts the switching cycle. A single pulse from the current limit detector is sufficient to terminate the cycle prematurely until the next PWM start cycle. The process repeats until current falls below the limit threshold.

Your BC557 will never saturate (switch). As soon as the collector voltage falls below the MOSFET gate to source threshold, current through your sense resistor eases and acts to turn off your NPN transistor. Gate to source voltage rises then, drain current increases and the process repeats itself again and again. Why does it repeat? There is a propagation delay time through the circuit that stabilizes at a -180 degree phase shift. It's not pretty to see what's on the gate of your MOSFET when you look with a scope.

Can you describe your current limit circuit? It looks to be slower Aesop's turtle based on the impedances I see. Keep in mind the limit is not temperature compensated. It will trip at 14A for a 25C NPN junction temp and 10A for a 125C junction temp. There are ways around this you know. The circuit is way too complicated for what it does.

Also loose the bipolar zener and the 10K resistor gate to source. They contribute nothing. Finally, there is no need for the IGBT collector to emitter diode (DSEI12-12A). It is a big expensive part that will never do anything in your circuit; your switching topology doesn't ever have a state condition where it will conduct.

Finally, this looks like a DC motor speed control. Have you ever considered adding IR compensated feedback to get better than 2% speed versus load regulation? All it takes is a few resistors and capacitors ($0.02 cost).

Mariss
Reply With Quote

  #10   Ban this user!
Old 01-01-2010, 03:18 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

OK Mariss,

The bipolar zener is just for protection, in case something with the gate drive gets corrupted, and the 10K is there because I see many mosfet circuits use one.

I really doubted about the IGBT parallel diode, some designs use it, some don't. I decided to put one just in case. It seems though you are right because it does not even get warm. I'll remove it tomorrow and see if something changes.

I am struggling with the feedback circuit now, it seems that the frequency to voltage conversion that I use as TACH has some ripple at the output and the controller seems to try to correct the speed every revolution or so. This leads to a very fast, jerky movement better seen at low speeds near zero. If I reduce the proportional gain it moves smoother, but the speed lowers significantly under load, which is not good. I have used a DWT wood router for quite long and I hate its feedback loop. It drops under load, it is very slow in reaction, and it overshoots a lot when the load is removed. Seems they didn't make it with the PID settings there, so I intended to design the spindle controller the way I want.

As for the TACH feedback I drew it simple in the schematic, but in the real world it is a UGN3113U hall effect sensor, put near a round magnet with 2 poles, so I have 1 pulse per rev. A LM2917 converter outputs 0-6V which I use in the PID loop.

That is for now, I will give more info after some more testing.

Todor
Reply With Quote

Sponsored Links
  #11  
Old 01-01-2010, 03:37 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

For what it is worth, the SCR TDA1085 T.Mill controller I adapted uses a 8 tooth Pick up wheel and hall type pick up as a tach.
I am using it on band saw and it run very stable at low rpm.
Probably much lower rpm than spindle use.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #12   Ban this user!
Old 01-01-2010, 04:09 PM
LZ1TWB's Avatar  
Join Date: May 2006
Location: Bulgaria
Posts: 158
LZ1TWB is on a distinguished road

The dumb problem that I didn't start the design with the TDA1085 was that I could not find it here in the local shops. I knew the schematic will be simpler and no doubt it will work, I just don't like SCR's from the time we studied their theory in the university. I had a bunch of TL494's here and that's why I did it this way.

Actually this is a revised schematic for higher voltages based on my old design driving a sewing machine PM DC motor with analogue TACH. It also seems that driving a brush motor at DC and at a higher frequency PWM leads to significantly less arcing on the brushes which tends to smooth the collector and brush surfaces, and hopefully produce less wear.

Todor
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
New Machine Build- Looking for AC universal motor driver circuit scheme bedo DIY-CNC Router Table Machines 2 08-17-2008 03:33 PM
Simple, 3 Axes with Dual Drive/Motor (per axis), hardware splitter drive Interface. kreutz Stepper Motors and Drives 3 07-03-2008 06:57 PM
dc series universal motor jed102 Servo Motors and Drives 6 05-02-2007 09:09 PM
What motor drive for an arm? nervis1 RC Robotics & Autonomous Robots 9 12-16-2005 02:30 PM
"Universal" AC/DC motor Swede General Electronics Discussion 1 02-17-2004 02:16 PM




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