Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-settings.php on line 512

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-settings.php on line 527

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-settings.php on line 534

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-settings.php on line 570

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-includes/query.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /home/sodoityo/public_html/wp-includes/theme.php on line 1109
 » DS1820 Temperature regulator : SoDoItYourself.com

DS1820 Temperature regulator
15 Votes | Average: 4 out of 515 Votes | Average: 4 out of 515 Votes | Average: 4 out of 515 Votes | Average: 4 out of 515 Votes | Average: 4 out of 5
Loading ... Loading ...

image002.gifThis 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.

 

Breadboard circuit:
Dallas 1820 Regulator Breadboard circuit

Circuit

Circuit

Source code:

This code compiles with B. Knudsen CC5X(Trial version/without optimization).

Download them here:

ds1wire.c  temp.c

Add 'DS1820 Temperature regulator' to Del.icio.us Add 'DS1820 Temperature regulator' to digg Add 'DS1820 Temperature regulator' to FURL Add 'DS1820 Temperature regulator' to blinklist Add 'DS1820 Temperature regulator' to My-Tuts Add 'DS1820 Temperature regulator' to reddit Add 'DS1820 Temperature regulator' to Feed Me Links! Add 'DS1820 Temperature regulator' to Technorati Add 'DS1820 Temperature regulator' to Socializer 

18 comments to “DS1820 Temperature regulator”

  1. Comment by Teles:

    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

  2. Comment by kkhallee:

    hello sir

    the example give error when compiler by cc5x

    pls send the hex file

    thank you

    khaled

  3. Comment by SoildCrumble:

    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.

  4. Comment by SoildCrumble:

    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

  5. Comment by SETIORION:

    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

  6. Comment by pasan:

    Plz can some one supply working ASM or HEX code here.

  7. Comment by fernando prudencio:

    Dear khaled
    Would you mind please to send me thermostat .hex file?
    Thanks a lot, best regards

    Fernando-Brazil

  8. Comment by lansonnoah:

    circuit diagram of an electric oven comprises of temperature regulator,protective devices and function of eachcomponent

  9. Comment by Derek Leung -USA:

    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.

  10. Comment by ojog D:

    MULTUMESC/MERCI

  11. Comment by Rajeev:

    Does any one have the hex file/ working scoure code of this project? Please can you share it.

  12. Comment by heri:

    Use Small Device C Compiler (SDCC) to compile the code… SDCC should be useul for you… :)

  13. Comment by me:

    absolute shite, unable to compile, sober up first !!

  14. Comment by choi:

    16f628 microcontroller hex pile gave me thank you

  15. Comment by choi:

    pic16f 628 hex pile gave me thank you

  16. Comment by choi:

    hi pic16f628 hex pile gave me

  17. Comment by German:

    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

  18. Comment by aurelian:

    It’s working.
    But, there are some steps :-)
    1) in ds1temp.c remove comment from line 33 ( function delay have to be present - will be used in temp.c)
    2) download from net, ascnum.c file
    3) in temp.c replace line 82 with ” #include “DELAY.c” ” - original is >#include “DELAYS.c”<

    I hope i didn’t forgot anything.
    In command-line type: cc5x -a temp.c
    Option -a will output .asm file