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 03-19-2006, 10:25 AM
 
Join Date: Apr 2005
Location: finland
Posts: 262
andy55 is on a distinguished road
low-side isolated current sensing ? (0-10 A)

Hi Group,

I'm designing an AC servodrive that needs current sensing on two phases.
It will be controlled by a microcontroller which interfaces to a pc or motioncontroller.

The high-voltage circuit obviously needs to be isolated from the pc/motioncontroller and I see two choices for where to do the isolation:
pc<->servodrive or microcontroller <-> powerstage

right now I'm favoring the latter, the digital pwm signals, enable, fault, etc. can be isolated easily with optocouplers. However the current sensing signals need to isolated too...
I've found two-three solutions so far:
1) IR2175 outputs a 130kHz square wave with differing duty cycle, could be easily isolated with optocoupler. but the 130kHz is a little high for my microcontroller which runs at max 30MHz giving me only around 7-bits accuracy...
2) ACS704 hall effect based sensor. isolated in itself, outputs an analog voltage centered around 2.5V. Availability seems to be really poor... Xerxes has had some problems with this sensor...
3) sensing resistor + diff amplifier + isolation amplifier. isolation amplifiers seem to be really expensive, need bipolar supplies etc...

any other ideas ??

Andy

PS. You might also convince me to isolate the pc<->servodrive interface but that involves 3 encoder wires, , a +/- 10V analog input, possibly 2 step/dir wires, and possibly 3-4 RS232 wires so that is not trivial either...
Reply With Quote

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

Curious why you think your micro will only get 7 bits at 130khz? Assuming it has a decent counter/timer function built in?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #3   Ban this user!
Old 03-19-2006, 01:48 PM
 
Join Date: Apr 2005
Location: finland
Posts: 262
andy55 is on a distinguished road

the period of the 130kHz pwm wave from the current sensor is 1/130kHz = 7.7 us
the period of the uP is 1/30MHz = 33.3 ns

so for each 130kHz period there are 7.7us/33.3ns = 231 uP 'ticks' and the uP could thus theoretically resolve 231 different current levels. this is equivalent to ~7.8 bits

another way of doing it would be to transfer the pwm over to the uP side as a digital signal(isolated with optocouplers) and then low-pass filter it and feed it to the 10-bit analog input of the uP.
This might not be a bad idea...
the motors run at about 4500rpm maxiumum which is 75revs/s, I think there are 4 electrical cycles to one mechanical cycle so the maximum frequency for the sinewave output for one phase would be 75*4=300Hz. If we would like to sample the voltage say 10 times during this cycle then the cutoff for the lowpass filter could be set at 3 kHz ??

I wonder if my BW calculation is approximately right ? and what would 130kHz square wave lp filtered at 3 kHz look like ?

Andy
Reply With Quote

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

Andy are you looking for more resolution or is the 7 bits ok?
__________________
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Reply With Quote

  #5   Ban this user!
Old 03-19-2006, 06:56 PM
abasir's Avatar  
Join Date: Apr 2003
Location: Malaysia
Posts: 361
abasir is on a distinguished road

Not sure whether this chip would work but here's the link anyway... (samples are free anyway )
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1654
__________________
Stupid questions make me smarter...
See how smart I've become at www.9w2bsr.com ;-P
Reply With Quote

Sponsored Links
  #6  
Old 03-19-2006, 07:48 PM
Gold Member
 
Join Date: Mar 2003
Location: United States
Posts: 2,717
Mariss Freimanis is on a distinguished road

OK. You mention 'low side current sensing' and then it gets confusing beyond that.

1) Switching frequency: Most loads are inductive in theory but have a significant parallel capacitance in reality. This capacitance leads to ringing (LC resonance) and whatever current servo you use must have a blanking period period after it. This blanking period must be on the order of 3 to 5uS to allow the resonance to die out or otherwise it will spoof your current servo. At 20kHz it's less than 10% of the switching cycle; at 130kHz it's well over half.

Pick the switching frequency above what anyone can hear; 20kHz, no more than that.

2) Hall sensors; forget that. The bandwith is simply not there. Use current-sensing shunt resistors and level-shifting circuits. Bottom sensing is not the way to go anyway; any short on the circuit to ground provides a sneak-path that subverts the circuitry and kills the drive due to overcurrent. Takes only microseconds.

A well designed drive uses top-sensing and a reasonable switching frequency; 20kHz instead od 130kHz. Think about switching losses; 6.5 times higher than at 20kHz. The switching losses are significant. 20A * 100V * 100ns; 400 uJ per cycle per phase per cycle.

Keep the switching freq as low as possible (ultra-sonic to human ears). Practical motor loads require no more than that. Anything above it incurrs pointless losses.

Mariss
Reply With Quote

  #7   Ban this user!
Old 03-20-2006, 12:23 AM
 
Join Date: Apr 2005
Location: finland
Posts: 262
andy55 is on a distinguished road

thanks for your input mariss.

the IR2175 is a current sensor which uses a shunt resistor, measures and amplifies the voltage drop across the resistor and then converts this to a 130kHz square wave with variable duty cycle depending on the current. nothing to do with the pwm switching of the motor phase current itself. sorry for the confusion.

One more question: is there any difference between placing the shunts above the top transistor in the bridge ('in series with the + rail') compared to placing the shunt on the phase leg between driving IGBT stage and motor ?
Reply With Quote

  #8   Ban this user!
Old 03-20-2006, 01:30 AM
 
Join Date: Mar 2004
Location: United States
Posts: 1,147
vacpress is on a distinguished road

a side note, a distraction... this IR2175 Current sensor.. I looked at the datasheet, but am a bit confused. It says it can handle upto 400v, yes..

Also, I am not clear on the wiring. I am quite good with electronics, but do we really beleive they are passing the motor drive voltage throught that little IC?

could this be wired to see how much current a 1.75HP Single Phase AC Motor is using?

Thanks! Sorry for the side queston
__________________
Design & Development
My Portfolio: www.robertguyser.com | CAD Blog I Contribute to: http://www.jeffcad.info
Reply With Quote

  #9   Ban this user!
Old 03-20-2006, 02:21 AM
 
Join Date: Apr 2005
Location: finland
Posts: 262
andy55 is on a distinguished road

vacpress:

The IR2175 does high-side current sensing, thus the need to sustain a high common mode voltage.

The current is measured as a voltage drop across an external shunt resistor. You need to size the external shunt resistor yourself. I was planning on 0.020 Ohm 5W resistors. the maximum input voltage to the IR2175 is 260mV so with a 20mOhm shunt that would give max 13 A current and dissipate around 3.3W of heat...

I think the IR2175 could do it, but there are probably easier ways of measuring your motor current.
Reply With Quote

  #10   Ban this user!
Old 03-20-2006, 04:12 AM
 
Join Date: Mar 2004
Location: United States
Posts: 1,147
vacpress is on a distinguished road

sure. a multimeter would probably work...

i am working on a closed loop AC router spindle speed control. (1cpr encoder, microcontroller, etc).

This is for my porter cable router, but i may offer the design to everyone if it works out. I think an affordable LCD based RPM speed control for our devices would be nice.

However, I cannot even figure out the best approach for the speed control. VFD, PWM, etc. Lots to learn. DC is much easier for me, this AC stuff is confusing, what with phases and all...
Robert.
__________________
Design & Development
My Portfolio: www.robertguyser.com | CAD Blog I Contribute to: http://www.jeffcad.info
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 04-22-2009, 11:20 PM
 
Join Date: Jan 2007
Location: JAPAN
Posts: 31
apollonono is on a distinguished road

I have one opinion.
Because English cannot understand it, I use an interpreter.
I cannot express it definitely.
You should consider three systems.
A power driver and a microcontroller.
Meanwhile, with Class IR gate driver, I use common wiring.
It is the controller of the master with a microcontroller more.
Meanwhile, I use CAN or the serial communication.
I break with a photo element during this period and do digital communication.
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





All times are GMT -5. The time now is 02: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 354 355 356 357 358 359 360 361