Author Topic: Temperature Control - A Sudden Thought  (Read 7263 times)

0 Members and 1 Guest are viewing this topic.

Offline German_EETopic starter

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Temperature Control - A Sudden Thought
« on: February 12, 2016, 06:08:01 pm »
I have been thinking about how to control the temperature in a small heated chamber, maximum power required is about 50W and the classical way of doing this is as follows:

Mains Supply  >  Switched Mode Power Supply  >  Temperature Controller  >  Power driver  >  Heater  >  Sensor
                                                                                          |_____________________<__________________|

This is too many steps so why not connect the heater directly to the power supply and use the chamber temperature to regulate the heater voltage? Something like this:

Mains Supply  >  Switched Mode Power Supply  >  Heater  >  Sensor
                                                          |__________<___________|

Temperature sensing is done with a thermistor on the voltage sense divider and arranged so that a decrease in temperature gives a decrease in the feedback voltage, leading to a rise in the power supply output feeding the heater.

Comments?
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #1 on: February 12, 2016, 06:17:12 pm »
Hi

Why bother with the power supply?

Just control the mains voltage into the heating elements with a switch or  relay. That's even more simple. Sensor is cold, power comes on. Sensor it hot, power turns off. That is by far the most common way to do this. (Think of home appliances ...).

Bob
 

Offline German_EETopic starter

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: Temperature Control - A Sudden Thought
« Reply #2 on: February 12, 2016, 06:23:17 pm »
Because I want proportional control of the temperature so that (ideally) the temperature is kept within a degree or so. Also there is the small matter of safety and I really don't want a mains powered heater inside a chamber where there may be liquids spilt.
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #3 on: February 12, 2016, 06:29:43 pm »
Hi

Ok, the gotcha with the "direct to the supply" approach is the inability to take most of them to zero volts. That's one of the things you very much want to be able to do on a temperature controller.

The next most simple way is to just drive the heater with a PWM signal. Nothing much fancy there.

If you are likely to have spill issues, the heaters and electronics will need to be well protected no matter what you do. This is often done by putting them in a chamber all their own. You circulate air between that chamber and the "people chamber" with a fan.

Bob
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #4 on: February 12, 2016, 07:40:25 pm »
Or use "cycle dense modulation": Switch full cycles at the zero crossings with an opto triac. You have then in fact a 1st order oversampling 1-bit DA converter sampling at 50/60 Hz. Resolution at wish. No switching noise and balanced load of the mains. Temperature control is usually slow enough that sampling at the mains frequency is more than adequate.

It has the advantage that you control power linearly, which is what you need for temperature control. Makes PID contol even simpler to manage.
« Last Edit: February 12, 2016, 07:48:27 pm by Pjotr »
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16642
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #5 on: February 12, 2016, 07:54:12 pm »
Because I want proportional control of the temperature so that (ideally) the temperature is kept within a degree or so. Also there is the small matter of safety and I really don't want a mains powered heater inside a chamber where there may be liquids spilt.

Mains electricity can be switched on and off too.

(It's a good idea to match the switching to the mains frequency, is 50Hz/60Hz switching fast enough for temperature control?)

 

Offline German_EETopic starter

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: Temperature Control - A Sudden Thought
« Reply #6 on: February 12, 2016, 08:01:33 pm »
I may be able to get around the inability to get down to zero volts but I will need to experiment. In use there will be an application of full power to bring the chamber up to temperature then (hopefully) the regulation will balance power in with heat lost through the insulation. Running voltage will therefore be a lot lower than full voltage but not zero.

I'm now going to spend a Saturday evening researching cycle dense modulation and PIV theory. Yes, I do stuff like this for fun.
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16642
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #7 on: February 12, 2016, 08:14:31 pm »
I'm now going to spend a Saturday evening researching cycle dense modulation and PIV theory. Yes, I do stuff like this for fun.

http://www.atmel.com/images/doc2508.pdf
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Temperature Control - A Sudden Thought
« Reply #8 on: February 12, 2016, 08:49:05 pm »
The most simplistic way to do this uses an electromechanical temperature switch.
However, the end result might have too much ripple. Or the source cannot handle the sudden changes in load.
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #9 on: February 12, 2016, 08:49:22 pm »

................. is 50Hz/60Hz switching fast enough for temperature control?)

Depends on the heating element, heat capacity and heat loss. Each cycle delvers a finite amount of joules. This heats up your oven a finite amount of degK. If that heating each cycle is within the temperature resolution you wish it's ok. If it's too much you can do with a smaller heating element and/or make heat capacity of the oven larger. This makes the process slower but smooths out temperature ripple.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 16642
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #10 on: February 12, 2016, 09:46:54 pm »

................. is 50Hz/60Hz switching fast enough for temperature control?)

Depends on the heating element, heat capacity and heat loss.

Maybe a simple feedback loop on each mains cycle would do it. Too cold? Turn on for the next cycle. Too hot? Don't.

(Much too hot? Turn on the emergency fan!)
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #11 on: February 12, 2016, 10:17:00 pm »
No, that's in fact a simple bang-bang controller synchronised to the mains. Due to the time lag of the oven it will give a much larger temperature swing (or ripple) than a PID controller. OP did ask for a proportional control for a reason.

B.t.w. If safety is an issue due to liquids, use a safety transformer. Heating elements also work from 24V AC, either do triacs ;)
« Last Edit: February 12, 2016, 10:20:00 pm by Pjotr »
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14181
  • Country: de
Re: Temperature Control - A Sudden Thought
« Reply #12 on: February 12, 2016, 10:31:52 pm »
One can also consider using transistors as heaters -  the advantage is that there is not more external heat loss and output is linear as opposed to square law with a resistor in linear mode.
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #13 on: February 12, 2016, 10:50:15 pm »
Hi

Given that you can buy an eBay PID controller that will do this off mains voltage for < &30, this is sort of a "solved problem". Anything you do from scratch will cost more than a pre-built solution. So, we are doing this for fun, which is fine.

You can get cycle switching SSR's and drive them on a per cycle (or half cycle) basis. You can also get phase driven units that work more like a light dimmer. For safety, an isolation transformer likely costs less than a high power supply. It's also a lot more reliable.

A typical small oven will have a time constant in the 100's of seconds range. On a 50 Hz line, you have > 5K cycles to pay with. It is unlikely you will need to go to the phase angle versions. 

Bob
 

Offline dom0

  • Super Contributor
  • ***
  • Posts: 1483
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #14 on: February 12, 2016, 11:37:52 pm »
Ok, the gotcha with the "direct to the supply" approach is the inability to take most of them to zero volts. That's one of the things you very much want to be able to do on a temperature controller.

Do we? A typical minimum voltage would be 1.25 V to 1.5 V. Say German_EE uses a 24 or 48 V supply because he isn't nuts and doesn't use some stupidly low voltage to heat things. A resistor powered by 24 V would dissipate only about ~0.3 % of that power at 1.25 V. In many applications the minimum outward heat flow will be much greater than that (You'd not use a heater that can go to 11 if all you needed was one that goes to 3, right?).

In terms of fire hazard / safety ... well, the heater needs a secondary shutdown mechanism anyway.

@Triacs and low voltage transformers: note that losses in the triac are _much_ higher relative to the delivered power compared to 230 V operation. If so I'd suggest _full_ wave control from the primary of the transformer. That way, you have much less power to dissipate.
« Last Edit: February 12, 2016, 11:40:10 pm by dom0 »
,
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #15 on: February 13, 2016, 01:31:18 am »
Ok, the gotcha with the "direct to the supply" approach is the inability to take most of them to zero volts. That's one of the things you very much want to be able to do on a temperature controller.

Do we? A typical minimum voltage would be 1.25 V to 1.5 V. Say German_EE uses a 24 or 48 V supply because he isn't nuts and doesn't use some stupidly low voltage to heat things. A resistor powered by 24 V would dissipate only about ~0.3 % of that power at 1.25 V. In many applications the minimum outward heat flow will be much greater than that (You'd not use a heater that can go to 11 if all you needed was one that goes to 3, right?).

In terms of fire hazard / safety ... well, the heater needs a secondary shutdown mechanism anyway.

@Triacs and low voltage transformers: note that losses in the triac are _much_ higher relative to the delivered power compared to 230 V operation. If so I'd suggest _full_ wave control from the primary of the transformer. That way, you have much less power to dissipate.

Hi

With a switcher, without changing the output caps, you aren't going to get a 48V to 1V output range. The thing will go unstable. Once you start switching output caps and feedback parts, it gets really messy really fast.

There is no reason to do it. Simply do a PWM on the output of the regulator. Much easier, no nasty things to mess with.

My assumption on the tirac is that you simply have a 1:1 transformer on the thing to ground isolate the system. The triac will blow any switcher made away efficiency wise. It will hold efficiency to a much lower power level than a crazy switcher.

=====

Now, if he wants an oven that is precise, there's more to it. Gradients quickly become the dominant factor. You can have a 0.0000000001C set point and have 5C gradients at pretty normal temperatures. The answer is either a stirred liquid or a lot of moving air.
The pump or fan will put the whole discussion about "how efficient" (93 or 96%) in the waste basket.

So far there is not a lot of numbers behind this. How hot does it get? Does it start from a heated room? (My back porch is at -10C ...). How much heat load is there (if any)? What sort of uniformity is needed? The answers to those sort of questions could easily impact what needs to be done.

Bob
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: Temperature Control - A Sudden Thought
« Reply #16 on: February 13, 2016, 02:01:12 am »

Or use "cycle dense modulation": Switch full cycles at the zero crossings with an opto triac. You have then in fact a 1st order oversampling 1-bit DA converter sampling at 50/60 Hz. Resolution at wish. No switching noise and balanced load of the mains. Temperature control is usually slow enough that sampling at the mains frequency is more than adequate.

It has the advantage that you control power linearly, which is what you need for temperature control. Makes PID contol even simpler to manage.

Yup. I'm designing a heater controller exactly like this to retrofit the mechanical switch in a Power Designs reference oven.

There's a few app notes on the subject. Here's one from (I think) Vishay:



(Note: The schematic clearly has some major issues, but the principle is sound.)
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #17 on: February 13, 2016, 09:48:09 am »

I'm now going to spend a Saturday evening researching cycle dense modulation and PIV theory. Yes, I do stuff like this for fun.

It is no more than a Delta modulator. It consists of an integrator, a subtracter and a comparator (zero crossing detector): https://en.wikipedia.org/wiki/Delta_modulation. This can be easily done in software with a MCU and calling the routine at the mains frequency. Hook on an opto isolated triac and you are there
« Last Edit: February 13, 2016, 09:51:33 am by Pjotr »
 

Offline dom0

  • Super Contributor
  • ***
  • Posts: 1483
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #18 on: February 13, 2016, 10:10:21 am »
FYI you can use the thermal mass as the integrator.

@uncle_bob: Right, I forgot about the conditional (output voltage dependent) stability of many SMPS.
,
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #19 on: February 13, 2016, 10:37:28 am »
FYI you can use the thermal mass as the integrator.

Again, then you will end up with a basic bang-bang controller with a much larger temp swing at regulation. The time constant of such an integrator is much too large. Control theory isn't that easy...
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Temperature Control - A Sudden Thought
« Reply #20 on: February 13, 2016, 12:59:59 pm »
Putbthe heatervinside ofba bridge and put a MOSFET in serial with it. You just need to control the duty cycle on the MOSFET.

A complete DC solution.
================================
https://dannyelectronics.wordpress.com/
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #21 on: February 13, 2016, 02:56:45 pm »
FYI you can use the thermal mass as the integrator.

@uncle_bob: Right, I forgot about the conditional (output voltage dependent) stability of many SMPS.

Hi

I've missed that little "feature" many times .... always with nasty results :0

Bob
 

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 3958
  • Country: au
  • Why shouldn't we question everything?
    • It's not really a Blog
Re: Temperature Control - A Sudden Thought
« Reply #22 on: February 13, 2016, 09:53:07 pm »
Also there is the small matter of safety and I really don't want a mains powered heater inside a chamber where there may be liquids spilt.

So use a stove-top element, with the sheath grounded. That's a problem solved long ago.
They come in all sizes, and if it ever fails (unlikely) you can buy another the same. Also very easy to find for free.

Quote
Because I want proportional control of the temperature so that (ideally) the temperature is kept within a degree or so.
If you used zero crossing cycle control, you have to drive with full cycles, not half cycles. The supply authorities hate DC-draw from the mains - which you tend to get if you use half cycles. Perhaps the power input from a full cycle would be a bit too much to achieve fine temperature regulation?

In which case use phase control, which gives you fully linear fine control. Though you'd need to be sure the phase controller can go to zero.

Don't forget to include a safety secondary over-temp cutout in the mains drive circuit, using a bi-metalic switch. In case your triac shorts, or other fault with the electronics. There's always one or two of these in every tossed-out microwave oven. Those ones typically switch around 120 to 180 deg C. See pic.
« Last Edit: February 13, 2016, 10:01:37 pm by TerraHertz »
Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: Temperature Control - A Sudden Thought
« Reply #23 on: February 13, 2016, 10:07:59 pm »


In which case use phase control, which gives you fully linear fine control. Though you'd need to be sure the phase controller can go to zero.

Hi

The time constants involved are actually quite long. A simple drop /add dither approach on a cycle by cycle controller will do quite well.

Some math (sorry!):

You start from 25 C and want to go to 125. You size the heating element so you can get to 175C. You have a possible 150 C heat rise with the element full on. To control at 125, you need a 100C rise. (Yes these are totally arbitrary numbers). To control to +/- 1C, you need to (among other things) control the power to 2/3%. On 50 Hz power, that will take you just a about 3 seconds. For gross overkill (which is s very good idea in this case) take it out to 30 seconds. For fine control (integrator output) drop or add a cycle to each 30 second "frame" over some longer time period.

For even more fun, do a series of 3 second "sub frames" to make up your 30 second main frame. That way, most of the time, you have the 3 second speed and you get the full accuracy over 30 seconds. You are close enough at 3 seconds that things should average down pretty well.

If you have a heating element or an oven mass that has a time constant of less than a few minutes, I'd be quite surprised. Put another way: Do you expect the oven to heat to 150C in a minute or two or in a fraction of a minute? A commercial test chamber is doing pretty well at 5C per minute.

Bob
 

Offline Pjotr

  • Frequent Contributor
  • **
  • Posts: 461
  • Country: nl
Re: Temperature Control - A Sudden Thought
« Reply #24 on: February 13, 2016, 10:54:02 pm »

You start from 25 C and want to go to 125. You size the heating element so you can get to 175C. You have a possible 150 C heat rise with the element full on. To control at 125, you need a 100C rise. (Yes these are totally arbitrary numbers). To control to +/- 1C, you need to (among other things) control the power to 2/3%. On 50 Hz power, that will take you just a about 3 seconds. For gross overkill (which is s very good idea in this case) take it out to 30 seconds. For fine control (integrator output) drop or add a cycle to each 30 second "frame" over some longer time period.

For even more fun, do a series of 3 second "sub frames" to make up your 30 second main frame. That way, most of the time, you have the 3 second speed and you get the full accuracy over 30 seconds. You are close enough at 3 seconds that things should average down pretty well.


Well, in some way this is what a Delta modulator does (apart from the PID control): It ads cycles when asked by the set value. If that's one in a minute as a set point (0.033% output at 50 Hz), no problem. Provided resolution/range of the integrator is sufficient. But that shouldn't be a problem with a MCU. It adapts its frequency to the commanded output automatically.

TerraHertz has a point to switch full cycles, not half. Although I doubt the energy supplier cares for a 50W oven. a 5kW one is different matter.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf