Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 22nd November 2007, 08:32 AM   #1
Default Driver- Temp vs Volt Vs Current Sense

I am designing a 3-phase BLDC motor driver right now and have limited space on my pins left.

Although I do have current limiting (ie. comparators) on each of the three phases, I have chosen to also run those readings off to 3 ADC pins to be able to get readings of the motor phase currents (ie. the ability to measure motor currents during flyback as opposed to the battery current which would not allows this but would only require on ADC pin). Because I have chosen this route, I only have two pins left with the following functions:

Pin1- Comparator or ADC
Pin2- ADC

Now I am left with voltage and temperature. I can't decide on the importance of each- voltage limiting (ie. comparators) would provide faster response when the battery voltage gets too low to shut off everything for protection while voltage sensing (ie. ADC) would allow me to better control the motor (I already have speed measurement though so it would be used for self-calibrating control coefficients used for control system predictions).

Then I have temperature which would be nice to measure though I am not sure what I would do with the readings, but temperature limiting would be much more important though I am not sure how accurately I could measure it- I don't have enough pins for a per-phase or per-transistor temperature sensing. I just have enough pins for one. Not all the MOSFETs have their large heatsinking pins connected to ground either so I am not sure if I could effectively measure the temperature of all the FETs with just a single silicon temperature sensor connected to the ground plane.

Or should I forego measuring motor phase currents for measuring battery current and two extra pins?

What would you guys pick? I'm fairly sure temperature sensing is kind of useless, but temperature limiting could be very important. I am undecided on voltage sensing or voltage limiting, however, and am not certain that I really need to be able to measure the motor phase currents (I already have current limiting on each phase).
dknguyen is offline  
Old 22nd November 2007, 08:35 AM   #2
Default

How about if you used a latch and changed between each input when you wanted to read each separate one?
__________________
What is a joule per second?
erosennin is offline  
Old 22nd November 2007, 08:40 AM   #3
Default

Quote:
Originally Posted by erosennin
How about if you used a latch and changed between each input when you wanted to read each separate one?
I would, but I don't have pins left to control a latch. It's also nice for limiting functions like temperature or voltage to have dedicated comparators (Just so they act as fast as possible). BUt I literally only have those two pins left.

I actually do have a single extra pin...the shutdown pin on the FET driver ICs. If I had those connected to comparators, then I could have auto-shutdown whenever the temp or voltage was out of bounds. The problem is the uC would have no idea what happened due to the lack of free lines. It would take the uC a while to figure out what was going on, and when it did the algorithm would interpret it as a stall. I suppose I could lump battery undervoltage, overtemperature, and stall into the same category since they are the most serious failures and stop the motor from being operational for longs periods of time.

Last edited by dknguyen; 22nd November 2007 at 08:45 AM.
dknguyen is offline  
Old 22nd November 2007, 11:23 AM   #4
Default

Well... in the original post you said you had implemented current control methods. So if that is working correctly and the enclosure is well ventilated I don't see why the temperature should become high and unmanagable.
So I think you should go with Voltage detection - it would have more use as you already mentioned.
If you are still worried about temperature get a couple of 12VDC low current fans and configure one to blow in air and one to suck air out creating a continuous flow.
__________________
What is a joule per second?
erosennin is offline  
Old 22nd November 2007, 06:02 PM   #5
Default

Yeah, I was never going to implement tempeature monitoring of any kind at first (for either motor or FETs) because the only reason you would really need to is if the ambient temperature could get high enough that your heat dissipation via current monitoring is no longer effective without knowing ambient.

But I just recently sat down and calculated the switching losses for the FETs and they're pretty high...I was looking at some motor drivers made for RC and I do not understand how they can possibly support 100A (and sometimes 200A!) continuous. THe only way they could be rated that way is if you totally ignored the switching losses and only accounted for conduction losses. For mine the switching losses are about half the power dissipation and the conduction losses are the other half.
dknguyen is offline  
Old 22nd November 2007, 06:46 PM   #6
Default

Oh pshh...I just realized that I can take the current limiting on all phases and feed them into a single 3-input OR to free up 2 pins on my uC. Originally, I had planned to use 3 separate internal comparators (each having it's own integrated DAC which was much more convenient than an external one), but it turned out the voltage levels of the internal DACs were better suited to other things so I moved the current limiting to some fault pins and added external comparators and DACs...except I moved them as a group of 3 as if they were still each using separate internal comparators. Huzzah.

I also ran into another problem that I would have either way that I Just noticed. THe current monitors have a 0A bias of 2.5V and can measure bidirecitonal current flow. That means they will only trigger the comparator (for current limiting) when the current is flowing in a particular direction (two will measure the same current flow at any one time and will have readings of opposite polarities). Is there an op-amp circuit that is able to remove the 2.5V bias and then output then rectify the signal so it is always positive so that they can trigger the comparator regardless of the direction of current flow through the sensor?

EDIT: Nvm, I just realized that if there are always two readings of opposite polarities, one will always be positive and be able to trigger the comparator if the level gets too high.

Last edited by dknguyen; 22nd November 2007 at 06:57 PM.
dknguyen is offline  
Old 22nd November 2007, 10:38 PM   #7
Default

You could try Dallas one-wire temp sensors like the DS18S20, for multiple sensors off one pin. At $4-5 each, it can get spendy.
nickelflippr is online now  
Old 23rd November 2007, 12:07 AM   #8
Default

Quote:
Originally Posted by nickelflippr
You could try Dallas one-wire temp sensors like the DS18S20, for multiple sensors off one pin. At $4-5 each, it can get spendy.
Yeah. I'm wondering whether thermocouples could be used to measure the heatsinks of the FETs. The distance is so short though, but the FETs can get quite higher than ambient temperature, but then again, they are also connected to the same ground plane the cold junction ICS are...so I don't know how effective it will be. I have one for the motor though.

I dont think a lack of temperature difference would cause much problems would it since that just means IC and TC are at the same low temperature? Because I only really care when the FET temperature is much higher than ambient or the ground plane of the PCB since that means overheating.
dknguyen is offline  
Old 23rd November 2007, 02:23 PM   #9
Default

Quote:
Originally Posted by dknguyen
Yeah. I'm wondering whether thermocouples could be used to measure the heatsinks of the FETs. The distance is so short though, but the FETs can get quite higher than ambient temperature, but then again, they are also connected to the same ground plane the cold junction ICS are...so I don't know how effective it will be. I have one for the motor though.

I dont think a lack of temperature difference would cause much problems would it since that just means IC and TC are at the same low temperature? Because I only really care when the FET temperature is much higher than ambient or the ground plane of the PCB since that means overheating.
Some motors have (over)-temperature protection sensors built into the windings.

They use PTC thermistors, which have a "threshold" temperature, below that temperature they have a low resistance and above it the resistance increases rather quickly.

They put 3 of these thermistors, one in each phase, between the winding wires.

The three thermistors are wired in series and the total resistance is monitored. if one (or more) gets too hot the total resistance goes up and the motor is shut down. They use only one input (comparator or ADC) to monitor it.
__________________
E Cerfoglio
Buenos Aires
Argentina
ecerfoglio is offline  
Old 23rd November 2007, 11:02 PM   #10
Default

I was just going to stick a thermocouple into the brushless outrunner's middle, but I wasn't sure I culd because thermocoples are wires and motor windings conduct! I wonder if I can fit thermistors into the motor.
dknguyen is offline  
Old 24th November 2007, 11:56 AM   #11
Default

Why don't you get a multimeter thermocouple? One like this:
http://jaycar.com.au/productView.asp?ID=QM1283
The wires are covered, and I've used one before and they're fairly accurate... I have since upgraded to a stainless steel probe type one...

Edit: You just need to cut off the connector - which I'm sure you already have assumed...
__________________
What is a joule per second?

Last edited by erosennin; 24th November 2007 at 11:59 AM.
erosennin is offline  
Old 25th November 2007, 12:00 PM   #12
Default

Quote:
Originally Posted by erosennin
Why don't you get a multimeter thermocouple? One like this:
http://jaycar.com.au/productView.asp?ID=QM1283
The wires are covered, and I've used one before and they're fairly accurate... I have since upgraded to a stainless steel probe type one...

Edit: You just need to cut off the connector - which I'm sure you already have assumed...
That was my plan, except I am now hestitante because for MOSFET junctions, the thermocouple would connect to either Vbat+ or GND, and for the motor it would connect to whatever the motor was connected to, and I'm almost positive the junction on the thermocouple is unsheathed.
dknguyen is offline  
Old 25th November 2007, 12:18 PM   #13
Default

How about if you got an LM35 and touched the sensitive face to the fets and cover the pins in heatshrink?
__________________
What is a joule per second?
erosennin is offline  
Old 25th November 2007, 12:32 PM   #14
Default

I was considering doing that with a Maxim DSi except the sensitive face is supposed to be left floating or on ground which gives the same problem as the thermocouple (connecting to +V junctions). THey also have a built in comparator which is nice but I suppose I could always add 3 comparators pretty easily. I suppose i coudl always cover the junction with soldermask and make it contact that way. Do you think it would be accurate enough if I Did that?

THe heatsnks are a bit high off the the pcb though:
http://www.aavidthermalloy.com/cgi-b...pl?Pnum=7109dg

But the temperature of the heatsink is probably very close to the copper track connected to the FET's tab anyways so I can just place the temperature sensor there.

I still need a thermocouple though to measure motor temperature though. It'd probably be okay if I just use ont thermocouple for the motor right? Rather than 3, for each phase, even though I am measuring the FETs in each phase separately.

Last edited by dknguyen; 25th November 2007 at 06:26 PM.
dknguyen is offline  
Old 25th November 2007, 12:54 PM   #15
Default

Does your micro really need to know what's going on all the time?

For example, if the comparator closes down the MOSFET drivers it can switch on an LED or peizo buzzer to indicate there's a fault.

You can use a fulwave precision rectifer biased at 2.5V to overcome the problem of detecting the current flow in both directions.
__________________

I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

Please ask on the open forum if you have a question and I'll be happy to help,
if I know the answer.
Hero999 is offline  
Reply

Tags
current, driver, sense, temp, volt

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Expert Stabilised Power Supply with Current Limiting mechie Electronic Projects 41 11th May 2009 11:20 PM
Voltage ElectroMaster Electronic Theory 44 8th August 2007 06:35 PM
Current and Conductivity ElectroMaster Electronic Theory 1 2nd February 2007 01:50 PM
current Driver Pao Electronic Projects Design/Ideas/Reviews 7 25th September 2006 04:38 PM
Will this work? daviddoria Electronic Projects Design/Ideas/Reviews 31 9th May 2003 05:43 AM



All times are GMT. The time now is 03:08 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker