I had suspected one of the two thresholds acts as the system setpoint. If your system is fully characterized as a first order model and if you did not need some optimum response then the system should work fine ... As i understand your needs you have no need to implement a PID (or a PD) corrector ; or i missed something (always my English understanding ... :( )
BTW : What is R3/C3 ? did not understand the reference of this RC model
temperature of a mass coupled to the thermodynamics of the configuration b ut with much less heat capacity than the mass to be temperature regulated. The heat capacity is used as the low pass filtering of the temperature excu rsions of the critical element of the system.
One thing for certain is that no one uses SPICE for this. Maybe you can get a free eval copy of something like this:
formatting link
They /should/ enable a time varying control input, if not at least a steady state, but like I've said in the past, if engineers have any say in the ar chitecture, it will be lacking.
It's always a 3D simulation. One big problem is the requirement for input d ata you may not have, that's why your best hope is to get a system specific to electronics.
Google "thermal modeling for electronics cad' for others.
Or you could control both; an inner loop controlling heater temperature and an outer loop controlling the heated object temperature (the output of which is the setpoint for the inner heater temperature controller). This should give you the better dynamics without any loss of accuracy.
Not really pertinent to your control system, actually responding to another comment about optimal control with PID, but I do not think PID can ever achieve optimal transient response in a temperature controller (or pretty much any other controller, possibly excepting some which need to be too fast for digital control). PID can be tuned for the best response possible from a system with a PID controller; fastest response with specified (possibly zero) overshoot. But some sort of model reference control system can always do better, at the cost of additional complexity.
For a temperature controller you would create a math model of the thermal system which will accurately model the temperature at the sensor as a function of heat load or ambient temperature, heater power input, possibly other variables influencing the system, and time. If the system has significant nonlinearities they should be included in the model. The model parameters can be determined from measured response to a step or other stimulus. Then when you have a transient to respond to the controller calculates how many watt-seconds of energy are needed to reach the set point and turns the heater on or off fully for the calculated time, then backs off to the calculated steady state power. The error signal is not the difference between set point and measured temperature, it is the difference between measured temperature and model predicted measured temperature, and this error signal can be used to adjust heater on/off time or power level and also to adjust the model for more accurate response on the next transient, which I have seen referred to as adaptive model reference control.
While not too many heaters need this level of optimization, there are situations where the improvement is worth the effort, and it can be a lot more fun than boring old PID or bang-bang .
Calling the hysteresis the gain is a bit funny, though I understand what you mean. In theory smaller hysteresis leads to a smaller excursion of the temperature from the set point. At some point I don't think smaller hysteresis will do anything you'll be stuck with what ever time delay is in the loop. (I set you R3 to 1 and C3 to 1p, and lower hysteresis does nothing.)
Sure.. It's a bang-bang oscillator vs. one with too much gain and phase shift. I guess I was thinking about the oscillations you get with a P-only controller when you crank the gain up too high.
I'm sorry to say that besides the thermostat in my house, I don't know much about them for thermal control. If your set point was higher, so that the heater had to be on for a longer fraction of the time it seems like there might be larger temperature excursions. So picking the power level so that it's on about 1/2 the time might be optimal. (But again I'm totally guessing)
Why two? (at only 1" apart?) Are they worried about thermal gradients? It's usually worth while to spend some time thinking about how the heat will flow and putting the heaters and sensors in the "right" places.
An LT Spice default Schmitt has trip points + and - Vh from 0.5 volts.
Your English is fine, about as good as mine. A PID controller takes more parts and has power dissipation in the amp and the square-law problem, or needs PWM drive. A PID might need big capacitors in the integral and would need tuning, too.
I was just playing with a system that has multiple thermal masses and thermal conductivities. The conductivities are actually diffusive, so an RC is only an approximation. Well, the masses are diffusive, too. C3 could be the heater mass and the big one, C2, the thing to be heated. I used lots of RC delays to see what the dumb thermostat loop would do.
I can probably get by with three thermal masses (three caps) corresponding to heater, gadget, and sensor, connected by thermal conductivities/resistors. The heater mass might exceed the gadget mass. What's interesting is that the bang-bang loop works pretty well, even with zero hysteresis. Saves parts.
I'd just never thought about thermostats much before. Now I need to try to characterize the physics of the actual setup, including losses to ambient everywhere. I need numbers, of course.
The thing below might be better. It has a current/heat source dumping into the heater mass, no R3 that you asked about.
Incidentally, this is pretty close for simulation:
SYMBOL cap 48 224 R0 WINDOW 0 66 13 Left 2 WINDOW 3 66 45 Left 2 SYMATTR InstName C2 SYMATTR Value 5m SYMBOL cap -384 224 R0 WINDOW 0 69 15 Left 2 WINDOW 3 68 46 Left 2 SYMATTR InstName C3 SYMATTR Value 5m SYMBOL res -160 144 R90 WINDOW 0 -40 52 VBottom 2 WINDOW 3 -36 53 VTop 2 SYMATTR InstName R1 SYMATTR Value 2K SYMBOL res 240 144 R90 WINDOW 0 -45 55 VBottom 2 WINDOW 3 -39 53 VTop 2 SYMATTR InstName R2 SYMATTR Value 10K SYMBOL g -368 80 R180 WINDOW 0 -53 4 Left 2 WINDOW 3 -68 -24 Left 2 SYMATTR InstName G1
SYMBOL res -112 192 R0 WINDOW 0 54 44 Left 2 WINDOW 3 48 74 Left 2 SYMATTR InstName R3 SYMATTR Value 10K TEXT -24 0 Left 2 !.tran 200 uic TEXT -48 -80 Left 2 ;THERMOSTAT TEXT -56 -40 Left 2 ;JL July 15, 2015 TEXT -344 312 Left 2 ;heater mass TEXT 96 312 Left 2 ;gadget mass TEXT 336 312 Left 2 ;sensor mass TEXT -72 312 Left 2 ;heat loss
--
John Larkin Highland Technology, Inc
picosecond timing precision measurement
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Do you have any idea of how much heat you will need?
1 watt, 10, 100?
I did a P-only control loop, where things were fairly tightly coupled. (heater, thing, sensor) and that worked fine. (Fet as heater, constant voltage, control current.) There's a little gain dependent offset, but not too bad, and I cared more about stability than any exact temperature.
PID isn't optimum, but "optimum" is hard to quantify anyhow. In my current situation, I don't care much about overshoot or transient response.
Mechanical/thermal systems are essentially linear. A resistive heater is a square-law device, like the problem George posted about. PWM or bang-bang eliminate that nonlinearity.
The
Yeah, the nuisance is to quantify the physics, ideally at the design level. A thermal breadboard might be pragmatic; I could probably do that in a fraction of the time I could learn and run thermal modeling software.
The error
A little boredom is fine if I can get it done quick. It's pretty much a charity job. I prefer systems that respond in picoseconds to those that settle in minutes.
--
John Larkin Highland Technology, Inc
picosecond timing precision measurement
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Yup, low hysteresis corresponds to high gain, ultimately a pure comparator with no hysteresis. Thst seems to work, with the p-p temp excursions depending on the thermal geometry.
The bang-bang always oscillates, so you don't worry about it! But unlike a PID, the temperature excursion magnitude is limited, whereas a PID might bang the process rail-to-rail if it's tuned wrong.
No rational reason. I plan to talk him out of it.
--
John Larkin Highland Technology, Inc
picosecond timing precision measurement
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
Actually, if your system contains a convecting element, you can get interes ting behaviour. Convection doesn't happen if the Rayleigh number is less th an 500, and if it's less 100,000 the convection will be laminar. Convection involves mass transfer, so it has a well-defined time lag, that decreases as the temperature gradient rises.
You may need to add a little imagination - or at least physical insight - t o your armoury to appreciate thi.
From your rather restricted perspective that may well be true, at least unt il you start demonstrating something to as customer, which is when the inte resting effects traditionally chose to manifest themselves.
In a system with a significant thermal diffusion contribution, PID will spoil your whole day. In diffusion, the phase shift continues to grow without bound as the signal rolls off, so dialling up the D term will make a nice oscillator. It can help some in cases where the thermal mass approximation works accurately.
Most of my thermal control loops are designed using a plant model consisting of an integrator and a time delay in cascade. You trigger a scope when the heater turns on, and you can read both the delay and the slope right off the trace. Generally in small TEC-based loops, it won't even need tweaking IME.
Ditto, except femtoseconds. ;)
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
Inductance and capacitance work by storing energy in an electric field or a magnetic field with contrasting mathematics. Heat can not be converted to other forms of energy efficiently. Your equations only represent one form of energy storage, heat. Use an engine to efficiently convert the heat to some other form of energy storage and you can use more complex math which may allow for oscillations.
I'd not be so certain of that. A biochemist once remarked to me that he was using SPICE to model enzymes and glandular secretions. It's like a big spreadsheet, really: there's LOTS of uses.
But way, way easier to debug than a big spreadsheet.
Cheers
Phil Hobbs
--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics
160 North State Road #203
Briarcliff Manor NY 10510
hobbs at electrooptical dot net
http://electrooptical.net
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.