Happy new year, here is a present

Dec 31, 2007 19 Replies

ftp://panteltje.com/pub/hcs.asm



I have written a small temperature controller for PIC16F690 It uses LM135 or similar Kelvin sensors. It is quite universal as it also displays voltage. It has a real time clock (as long as it has power), runs from the PIC internal 8MHz oscillator, and seems quite accurate, flipped over to 2008:


23:50 outside 558 2757mV 2C inside 595 2940mV 21C
23:51 outside 558 2757mV 2C inside 594 2935mV 20C
23:52 outside 557 2752mV 2C inside 594 2935mV 20C
23:53 outside 557 2752mV 2C inside 595 2940mV 21C
23:54 outside 558 2757mV 2C inside 594 2935mV 20C
23:55 outside 557 2752mV 2C inside 594 2935mV 20C
23:56 outside 557 2752mV 2C inside 595 2940mV 21C
23:57 outside 557 2752mV 2C inside 594 2935mV 20C
23:58 outside 557 2752mV 2C inside 594 2935mV 20C
23:59 outside 557 2752mV 2C inside 594 2935mV 20C
0:0 outside 557 2752mV 2C inside 595 2940mV 21C
0:1 outside 557 2752mV 2C inside 594 2935mV 20C
0:2 outside 558 2757mV 2C inside 594 2935mV 20C
0:3 outside 557 2752mV 2C inside 595 2940mV 21C
0:4 outside 558 2757mV 2C inside 594 2935mV 20C


For you Americans, 0 Celsius is freezing, it is cold outside here.



The soft has a serial 19200 Baud, 8 bits no parity interface, and accepts the following commands:



unnENTER sets hour mnnENTER sets minute tnnnENTER sets temperature set point in Celsius, is saved in EEPROM annENTER displays AD channel nn count vnnENTER displays AD channel nn converted to voltage cnnENTER displays AD channel nn converted to Celsius s displays temp set point The above commands exit the control loop (control loop is on by default on power on).


H starts control loop (again) h help message tells you to read README, there is no README yet :-) F loops as fast as ADC can be read (for test). f ADC is read once per second, this is the default.



Very precise control of room temperature is achieved by doing an test against set point every 60 seconds, this is ONLY intended to switch an electric heater (via a triac optocoupler), probably too fast for something that runs on oil or gas.



There is a LED output 'frost alarm' (so you can tap the water if needed).



This control is a bit more pleasant then the normal bi-metal thermostats in the electric heaters, those have an hysteresis of several degrees C, this less then one. I have enabled 2 analog channels here only, AN5 and AN7. If you need more analog inputs you need to set the related bits in TRISA / TRISB / TRISC, and ANSEL and ANSELH (about line 902 in the code). There are too many banksel instructions, and I likely forgot some. The math is done in integer, the floating point lib (copyright Microchip) is defined out.



ASM file is here: ftp://panteltje.com/pub/hcs.asm This was actually just a programming test for the 16F690, as I need the routines for some other project, but may be of interest to some.



Happy new year.


Last night it was 27F. For you Europeans, that is darn freezing. Almost landed on my behind retrieving the newspaper this morning.

[...]

Same to you! Oh wait, you guys are in the new year already. Anyhow, Happy New Year.

Regards, Joerg http://www.analogconsultants.com/

Didn't you have some flyers with it in your mailbox?

Happy new year!

Thanks, Fred.

Not here in Melbourne Australia - New Year's Eve was the hottest day in the hottest year on record... 41.1C or 106F, and overnight minimum was 21.4 (70F)... we've had recent minima (to 6AM) up to 30C (86F). This is not the Arizona desert either - we're only 50Km from the ocean.

Clifford Heath.

Perth, Western Australia, 44.5C / 112F on Boxing Day - hottest December day on record, also located right on the coast. The swimming pool got a tad warm at 34C.....

Nope, it gets tossed out of a car into the driveway. Problem is, our driveway is really steep.

Happy New Year, Joerg http://www.analogconsultants.com/

Don't let my wife know. She is sick and tired of these cold winters here. When we moved to California that was different, mild and short winters. Then all this global warming turned out to be baloney, at least for California.

Happy New Year, Joerg http://www.analogconsultants.com/

It's all cyclical. Here in Arizona I am seeing a virtual replication of the weather patterns in the "winter" of '69-'70

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

Don't tell the warmingists, they don't believe it anyhow. What really surprised me was what a neighbor's daughter said. She studies at the university in San Diego. Down there houses have miniscule electric space heater things, just in case, but it never really gets cold. Or so everyone thought. One morning her car was frozen over and the space heater managed to peak the room to a toasty 50F. She had to wear two pairs of socks, three T-shirts etc. Global warming I guess ...

Regards, Joerg http://www.analogconsultants.com/

It's supposed to drop to 25°F tomorrow night in Ocala, Florida. I was using air conditioning this time of year, as far back as I remember. If this warming keeps up, I'm going to have to buy a furnace.

Service to my country? Been there, Done that, and I\'ve got my DD214 to prove it. Member of DAV #85. Michael A. Terrell Central Florida

It's snowed like 8 times this year already. Heat makes water evaporate. Snow makes less heat though, too.

Tim

-- Deep Fryer: A very philosophical monk. Website @

formatting link

Loose, fresh snow is a good insulator, in cold weather survival situations. It blocks the colder air, but you do need a small opening in your shelter to be able to breath. I learned this at -20 F, almost 35 years ago on a military reserve, in Alaska. Either use tree limbs, or a tent half to hold the snow away from you, and it will keep the temperature inside the shelter at 32 F, no matter how cold it is outside. It isn't comfortable, but it is survivable.

Service to my country? Been there, Done that, and I've got my DD214 to prove it. Member of DAV #85. Michael A. Terrell Central Florida

Yup, see it every time on the survivor shows (Man vs. Wild, Survivorman, etc.) when they're doing a mountain or winter or something situation.

Also keeps the ground warm. For the first month or two of winter, the snow pile melts from below.

Tim

-- Deep Fryer: A very philosophical monk. Website @

formatting link

Similar here. We never blew through so much firewood by year's end as we did this season. Most people around here believe global warming is a bunch of .

ROFL! That was a good one.

Regards, Joerg http://www.analogconsultants.com/

That's just because they don't understand the word "global".

robert

It was even colder last night. It was so bad that the Govenor relaxed a lot of the weight restrictions on the trucks used to haul Citrus to the packing houses. They even predicted SNOW in Central Florida. It was 28°F at the Ocala Airport last night, and my electric heat couldn't keep up. "Cold' is usually in the 40°F range, around here. It is supposed to be 32°F or less, tonight.

Service to my country? Been there, Done that, and I\'ve got my DD214 to prove it. Member of DAV #85. Michael A. Terrell Central Florida

Just got off the phone with a friend in Germany. Solingen, to be precise. They are _out_ of firewood. Not a good thing these days where oil costs through the nose.

Regards, Joerg http://www.analogconsultants.com/

And we are having a humdinger of a strom approaching. Snow, rain, ice, high winds, the works. We were told to tie everything down, get emergency supplies and avoid venturing out on Friday. So if my Internet goes silent for a few days that'll be the reason.

Regards, Joerg http://www.analogconsultants.com/
[snip]

Supposed to hit Arizona tomorrow. We're looking forward to it... rain water for the (reservoir) lakes and snow for the skiers (AND run-off in the Spring ;-)

It's been dropping down to about 28°F early every morning for several weeks now... PERFECTLY NORMAL for Arizona this time of year.

Global warming/cooling is caused by memory lose ;-)

...Jim Thompson

| James E.Thompson, P.E. | mens | | Analog Innovations, Inc. | et | | Analog/Mixed-Signal ASIC\'s and Discrete Systems | manus | | Phoenix, Arizona Voice:(480)460-2350 | | | E-mail Address at Website Fax:(480)460-2142 | Brass Rat | | http://www.analog-innovations.com | 1962 | America: Land of the Free, Because of the Brave

According to the TeeVee Nooz weather sattelite thingy, it's just hitting John Larkin as we speak. (1/3)

Here, (LA, CA) they're predicting 10" of rain and gale-force winds. ;-)

Cheers! Rich

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required