DS1820 Temperature regulator
This simple project uses a Dallas DS1820 one wire temperature sensor and a pic 16f628 microprocessor. A simple temperature regulator where a LED symbolizes the Fan.
Data derived from the DS18s20 is a 9bit centigrade temperature measurement. As mentioned the temperature sensor communicates over a one Wire bus that requires only one data line and ground for communication with a central microprocessor.Â
The DS18S20 can use power directly from the data line (parasite power) wich eliminates the need for an external power supply. This is not used in this project though.
16f628 microcontroller
 A 16f628 microcontroller is used to Poll temperature readings from the probe at about 1 second intervals. If the temperature rizes above a user defined temperature a fan is set on.
HD44780 LCD
The current temperature and a simple user interface is presented on a standard HD44780 LCD. This particular one has 4 buttons and 3 LEDs built in. It can display 2 x 16 characters. The display is connected through a 14 pin contact plus 6 for LEDs and buttons.
Â
Circuit
Source code:
This code compiles with B. Knudsen CC5X(Trial version/without optimization).
Download them here:












Sunday, November 19th 2006 at 12:13 am
Hi!
I liked made this project, but when I try compile de source code I get the errors:
First:
Error temp.c 82: Unable to open file ‘delays.c’
In the compiler, I change file’s name DELAY.C to DELAYS.C
—————————————————————
Then, I get secund error message:
Error temp.c 100: Unable to open file ‘ascnum.c’
I find in net one file and I placed in de root of CC5X.
—————————————————————
And finally I get next error!!
void main( void)
{
^——
Error temp.c 112: Duplicate definition og function ‘main’
(The same function identifier is used for another function)
Warning temp.c 384: Only one call to ‘_mult8×8′ (try inline code to save space OR
option -wm to remove warning)
delay(10);
}
^—–
Error temp.c 384: Function ‘delay’ is not defined
(The application contains a call to a function that is not defined)
——————————————————————-
So, I can´t compile the file.
I need some help, please. Thank you.
Best Regards
Monday, January 8th 2007 at 9:50 pm
hello sir
the example give error when compiler by cc5x
pls send the hex file
thank you
khaled
Thursday, February 22nd 2007 at 12:20 pm
hi i doing a project onDS1820 and a pic 16f628 and disply on LCD
c compiler if you still have material on this project pls feel free to help
now i haven’t started i am just gathering info on the Subject.
Thursday, February 22nd 2007 at 12:21 pm
hi i doing a project onDS1820 and a pic 16f628 and disply on LCD
c compiler if you still have material on this project pls feel free to help
now i haven’t started i am just gathering info on the Subject.
karabo_moloto@yahoo.com
Thursday, May 10th 2007 at 7:39 am
well this code doesnot work for sure because there are too many errors
it would be wise to release the hex code if you can compile it
dont waste yourtime on this guys caus it has toomany errors and the code is not complete
Wednesday, May 23rd 2007 at 6:50 pm
Plz can some one supply working ASM or HEX code here.
Monday, June 25th 2007 at 4:40 pm
Dear khaled
Would you mind please to send me thermostat .hex file?
Thanks a lot, best regards
Fernando-Brazil
Saturday, June 30th 2007 at 12:24 am
circuit diagram of an electric oven comprises of temperature regulator,protective devices and function of eachcomponent
Sunday, July 13th 2008 at 11:05 pm
You can google ascnum.c on the web.
You can get delays.c from the comment out in ds1wire.c.
You will compile with error with the 1k limit of Free CC5x.
Consider to use another 2k limit of Free Boostc IDE.
Or use TurboCC5X trick to de-limit the 1k boundary.
Enjoy!
Derek Leung.
Thursday, October 16th 2008 at 9:45 pm
MULTUMESC/MERCI
Wednesday, November 5th 2008 at 11:45 am
Does any one have the hex file/ working scoure code of this project? Please can you share it.
Wednesday, August 19th 2009 at 9:30 am
Use Small Device C Compiler (SDCC) to compile the code… SDCC should be useul for you…
Thursday, September 3rd 2009 at 10:57 pm
absolute shite, unable to compile, sober up first !!
Tuesday, October 6th 2009 at 11:29 pm
complete shit, you havent a clue you waster
Tuesday, January 19th 2010 at 1:10 pm
no hex and errors wile compiling, just what we need to do it ourselves. :/
What is purpose of this page?
Saturday, June 19th 2010 at 3:27 am
HP 530 battery
Thursday, July 29th 2010 at 1:59 pm
16f628 microcontroller hex pile gave me thank you
Thursday, July 29th 2010 at 9:42 pm
pic16f 628 hex pile gave me thank you
Wednesday, August 11th 2010 at 3:39 am
hi pic16f628 hex pile gave me
Thursday, September 2nd 2010 at 9:11 pm
hello my name is Hernan and by chance found your thermostat project and would like to set it up, but I have the disadvantage not handle programming language “C” would you mind if I can give away the code “Hex” very grateful to you Hernan G