The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: [OT] host my Domain


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Thermostat Hysterysis


  • To: <ukha_d@xxxxxxx>
  • Subject: RE: Thermostat Hysterysis
  • From: "Dean Smith" <ukha@xxxxxxx>
  • Date: Tue, 7 Oct 2003 22:56:02 +0100
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

Currently I've stuck with the DS1820's own scheme for the temp i.e. store
i=
t
as double the real value (therfore last bit =3D 0.5 or 0.0). I match my
required temps and hystersis etc to that scheme so keep the 0.5 degree
resolution. - and use "Byte" throughout for that side.

Some of my string handling I think is too blame a little. Too much bad
practice from VB coming through ;) I think I need to explore storing a few
bytes in eprom or something.

Currently I've had to drop checking for negative numbers to get it to fit.
Hopefully that would never be an issue though :o

Dean

-----Original Message-----
From: Dave McLaughlin [mailto:dave@xxxxxxx]
Sent: 07 October 2003 09:52
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] Thermostat Hysterysis


Hi Dean,

I use a 2 degree hysterisis. At present it is only used to operate an
electric heater in my loft, where my computer and HA system lives. To save
code space, I didn't use an LCD and stored the temp as an integer times 10.
The DS18S20 only changes by 0.5 degrees anyway so this is ideal. The CAN
Bu=
s
interface code is quite compact as it uses the filters built into the CAN
controller to receive any new messages for the setup etc. Haven't really
done much more than this at present. The relay output is fed into Homeseer
via Justin's gameport plugin.

I programme in C using the excellent Codevision compiler so I can't really
comment on code optimisation other than ask how you store the value in the
software and if maybe using integers might compact it up more?

Regards
Dave...
PS.. My embeddedcomputer.co.uk website is back up now if you want to have a
look at the CAN bus stuff. I am looking at doing some simple room
thermostats using the ATMega16 and a 2 digit LED display as I wanted an
excuse to use the new blue seven segment displays from Farnell :o)
---
Very funny Scotty, now beam down my clothes!!!
---


-----Original Message-----
From: Dean Smith [mailto:ukha@xxxxxxx]
Sent: 06 October 2003 20:38
To: ukha_d@xxxxxxx
Subject: RE: [ukha_d] Thermostat Hysterysis


Dave

Do you implement any hold time on the heating on/off state ? i.e. It can
only change 1 a minute etc. or do you rely on the general hysteresis of
the
house to ensure the thermostat cant cycle on/off too quickly ?

I have working code for :- Reading the DS1820 and displaying to a 2 line
LCD
+ RS232 Comms for Parameter Setup/Temperature interogation

Which is now 99% of the available flash on a 2313 using BASCOM-AVR. Any
hints and tips for code optimisation !

Thanks
Dean
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003


[Non-text portions of this message have been removed]



UKHA 2004: 15th and 16th May 2004

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/




Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.