Difference between revisions of "H-bridge Driver"

From Black Metal Forest
Jump to: navigation, search
(6 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
*Onboard temperature sensor (PCT2075)
 
*Onboard temperature sensor (PCT2075)
 
*Connections for External I2C temperature sensors  
 
*Connections for External I2C temperature sensors  
 +
 +
 +
 +
 +
 +
  
 
==Driving Thermoelectric Peltier Coolers==
 
==Driving Thermoelectric Peltier Coolers==
 +
[[File:CPM-2Fgraph.png|616px|link=https://www.cuidevices.com/product/resource/cpm-2f.pdf|thumb|right|Performance graph of the CPM-2F TEC]]
 
Thermal Electric Coolers, other wise known as Peltier units, require proper driving to get the most cooling potential out of them.
 
Thermal Electric Coolers, other wise known as Peltier units, require proper driving to get the most cooling potential out of them.
 
The goal is to pump the most energy (watts) from one side to the other, without generating to much heat on the cold side from "IR losses".
 
The goal is to pump the most energy (watts) from one side to the other, without generating to much heat on the cold side from "IR losses".
  
 
First, a TEC pumps heat the fastest when the difference between the two sides is Zero. I found in my experiments how important it is to cool the hotside down to room temperature in order to keep the tempe difference low and pump them most energy. The speed in which the refrigerator cools the container and the minimum temperature the refrigerator reaches is heavily dependent on keeping the hotside as cold as you can. Eventually using large heat sinks and a lot of airflow, we achieved a hot side that was only 10C above ambient.
 
First, a TEC pumps heat the fastest when the difference between the two sides is Zero. I found in my experiments how important it is to cool the hotside down to room temperature in order to keep the tempe difference low and pump them most energy. The speed in which the refrigerator cools the container and the minimum temperature the refrigerator reaches is heavily dependent on keeping the hotside as cold as you can. Eventually using large heat sinks and a lot of airflow, we achieved a hot side that was only 10C above ambient.
 
[[File:CPM-2Fgraph.jpg|500px|link=https://www.cuidevices.com/product/resource/cpm-2f.pdf|thumb|right|Performance graph of the CPM-2F TEC]]
 
  
 
Secondly, keeping IR losses under control is also very important. Increasing TEC Drive current begins to have diminishing returns after IR losses generates more heat then is removed. It may appear from the performance graph of the CPM-2F that 6Amps will achieve the biggest temperature difference and therefore the coldest temperature. It turns out that although though the temperature difference is large, both sides are heated by the IR losses. For example: 6 Amps gets 10C Coldside and 85C Hotside, while 4 Amps gets -10C Coldside and  55C Hotside.  There is a sweet spot between generating to much heat, and pumping the most thermal energy.
 
Secondly, keeping IR losses under control is also very important. Increasing TEC Drive current begins to have diminishing returns after IR losses generates more heat then is removed. It may appear from the performance graph of the CPM-2F that 6Amps will achieve the biggest temperature difference and therefore the coldest temperature. It turns out that although though the temperature difference is large, both sides are heated by the IR losses. For example: 6 Amps gets 10C Coldside and 85C Hotside, while 4 Amps gets -10C Coldside and  55C Hotside.  There is a sweet spot between generating to much heat, and pumping the most thermal energy.
Line 28: Line 33:
  
 
As a final note, although TEC resistance is fairly flat throughout the temperature swing, Constant current driving is preferred for more predictable results.
 
As a final note, although TEC resistance is fairly flat throughout the temperature swing, Constant current driving is preferred for more predictable results.
 
==How to get TEC's as cold as possible==
 
 
Since TEC's are only rated for a maximum amount of current, There is a maximum temperature difference before the heat pumped is zero. So Cooling the "Hot" side with large heatsinks or even another TEC unit is needed. However adding more TEC's only works to an extent.
 
 
Reaching very cold temperatures is impeded by another factor. These coolers generate a lot heat (from resistance inside the cooler) as well and moving heat from one side to the other.
 
Because of IR losses, using PWM is not as good as a constant voltage, since the on time is generating a lot of heat even if the average is the correct sweet spot voltage.
 
 
==Reading TEC performance graphs==
 
 
 
  
 
==Making a refrigerator with TEC's==
 
==Making a refrigerator with TEC's==
 +
[[File:FridgeGraph.jpg|300px|thumb|left|Drawer Cooling Performance (Just cooling the air inside)]]
 
Making a refrigerator with TEC's is not a good idea. Commercial TEC refrigerators are usually gimmicky devices that cool one bottle of beer. In real refrigerator applications, refrigerators with mechanical pumps are much more cost effective for equal performance. It was a design requirement to use TEC's, and because of this, the refrigerator feature in DAX has been put on hold. Even with high performance insulation using Vacuum Insulated Panels, The two TEC's could not pump the energy out of the container fast enough to get it cold in a timely manner.  
 
Making a refrigerator with TEC's is not a good idea. Commercial TEC refrigerators are usually gimmicky devices that cool one bottle of beer. In real refrigerator applications, refrigerators with mechanical pumps are much more cost effective for equal performance. It was a design requirement to use TEC's, and because of this, the refrigerator feature in DAX has been put on hold. Even with high performance insulation using Vacuum Insulated Panels, The two TEC's could not pump the energy out of the container fast enough to get it cold in a timely manner.  
  

Revision as of 01:25, 11 January 2020

The finished 10 Amp H-bridge (TEC Driver)

The 10A H-bridge was primary designed to drive TECs (Thermal Electric Coolers). The DAX Robot design contains a TEC refrigerator unit to cool food in it's drawer compartment. This board works by taking a DC input Voltage, and providing a variable bipolar constant voltage or constant current output. It uses a large filter to remove the ripple caused by PWM since TEC's are much less efficient when driven directly with PWM. This board can also drive DC motors and other loads.

It's Features are:

  • 8-25V Input
  • 10A Bipolar Output (output can be positive or negative)
  • 10% max voltage ripple
  • Analog Current Limit (Voltage Controlled)
  • Output Current Sense
  • Input and output Voltage Sense
  • Onboard temperature sensor (PCT2075)
  • Connections for External I2C temperature sensors




Driving Thermoelectric Peltier Coolers

Performance graph of the CPM-2F TEC

Thermal Electric Coolers, other wise known as Peltier units, require proper driving to get the most cooling potential out of them. The goal is to pump the most energy (watts) from one side to the other, without generating to much heat on the cold side from "IR losses".

First, a TEC pumps heat the fastest when the difference between the two sides is Zero. I found in my experiments how important it is to cool the hotside down to room temperature in order to keep the tempe difference low and pump them most energy. The speed in which the refrigerator cools the container and the minimum temperature the refrigerator reaches is heavily dependent on keeping the hotside as cold as you can. Eventually using large heat sinks and a lot of airflow, we achieved a hot side that was only 10C above ambient.

Secondly, keeping IR losses under control is also very important. Increasing TEC Drive current begins to have diminishing returns after IR losses generates more heat then is removed. It may appear from the performance graph of the CPM-2F that 6Amps will achieve the biggest temperature difference and therefore the coldest temperature. It turns out that although though the temperature difference is large, both sides are heated by the IR losses. For example: 6 Amps gets 10C Coldside and 85C Hotside, while 4 Amps gets -10C Coldside and 55C Hotside. There is a sweet spot between generating to much heat, and pumping the most thermal energy.

Using PWM where can exacerbate the IR loss problem with TECs. Driving a TEC with 8A and 50% dutycycle is worse than a constant 4A. So a Large LC Filter is placed at the output to reduce PWM Current ripple to under 10%.

Using an LC filter creates it's own problem of large voltage spikes when the output is switched on. Ultimately I used a software solution to limit the slew rate of voltage changes. See The two Lt-spice filter simulation graphs.

As a final note, although TEC resistance is fairly flat throughout the temperature swing, Constant current driving is preferred for more predictable results.

Making a refrigerator with TEC's

Drawer Cooling Performance (Just cooling the air inside)

Making a refrigerator with TEC's is not a good idea. Commercial TEC refrigerators are usually gimmicky devices that cool one bottle of beer. In real refrigerator applications, refrigerators with mechanical pumps are much more cost effective for equal performance. It was a design requirement to use TEC's, and because of this, the refrigerator feature in DAX has been put on hold. Even with high performance insulation using Vacuum Insulated Panels, The two TEC's could not pump the energy out of the container fast enough to get it cold in a timely manner.

Control Levels

There are many what I call "control levels" that set PWM, or Constant Voltage, or Constant Current or more.

PWM: Controls the Pules Width of the output and has a maximum slew rate to prevent the LC output filter from overshoot and ringing.

Constant Voltage (Output):Read the two output voltages and A and B and gets the difference, B-A=Output Voltage.

Constant Voltage (Input): Reads the input voltage value (say 24.5V) and then in order to set 12V on the output, it sets the PWM to %48.9. This can be a better choice than CV(output) because complex capacitive and inductive loads will not effect the H-Bridge Control loop leading which could lead to catastrophic unstability. On the other hand, high currents on the output will cause the Output voltage to droop in this mode.

Constant Value This can be a PI Loop that takes any setpoint value IE. RPM, Temp, position, and tries to go to it.

Constant Current Passive: (CCP needs Load Resistance value given to it, then it djust does the math once and sets the voltage

  • PWM
    • Constant Voltage Passive
      • Constant Current Active
        • Constant Value
      • Constant Current Passive
        • Constant Value
    • Constant Voltage Active
        • Constant Value
      • Constant Current Active
        • Constant Value
      • Constant Current Passive