OK - google was my friend
http://en.wikipedia.org/wiki/PID_controller
OK - google was my friend
http://en.wikipedia.org/wiki/PID_controller
Err.... yeah...
LOL - £34 for a commercial thermostat looks more promising !previous_error = 0
integral = 0
start:
error = setpoint - actual_position
integral = integral + (error*dt)
derivative = (error - previous_error)/dt
output = (Kp*error) + (Ki*integral) + (Kd*derivative)
previous_error = error
wait(dt)
goto start
What ? That's as clear as mud! I thought they taught you that in primary school.Originally Posted by malc-c
34 pounds for a thermostat? Must be the VAT ! Damn Globalists, want to federalize the world !
http://www.prothermostats.com/produc...product=100934
$40 US 24.42 GBP
Last edited by Archangel; - 16th December 2009 at 16:56.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
hi all,
i would like to make the circuit for the thermostat. could you please upload the circuit schematic? thanks a lot for your help.
Dear all,
sorry for asking you for the schematic, i did it from the code but i need your advice according to the second sensor please.
could you please help me out to finish the schematic?
thanks.
i have been trying to simulate the circuit on the proteus and also trying to make it work on the test board.
On the simulation i have some result but on the test board i dont get anything on the lcd.
Unfortunately with the code from Elektor i get some results on the lcd on the test board. But very wrong result like 234 oC.
Could someone upload the hex file from Mr. Fratello's #35? Could anyone made it work?
The second sensor (and the third, forth, fifth, etc, etc.) simply goes in parallel with the first... see example below.but i need your advice according to the second sensor please.
could you please help me out to finish the schematic?
The PIC's job is to address each individual sensor to read its value. That is how the One-Wire bus works. Each sensor has an address and will only respond to it's address.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
You've got better friends than that.
HenrikOlsson for instance ...
PID-filter routine (2nd try).
http://www.picbasic.co.uk/forum/showthread.php?t=5874
I've used it. It works great.
It's a little tricky to find the correct constants. But trial and error usually works.
Although there is a purposeful method to tune the loop.
<br>
DT
Bookmarks