Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC16F84 with DS18B20 program need

Status
Not open for further replies.

mxdalas

Newbie level 1
Joined
Feb 12, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
I have to test a digital temperature controller in three positions. Scheme I is composed of PIC16F84 and sensor DS18B20, I have to exit the heater and fan.

What I need is a program that would allow me to set the LCD to the desired(wanted) temperature control and when they say the temperature dropped below the desired temerature, the heater would be included. When the temperature was higher than the desired temperature the fan should be included. Would anyone could help me how?

Thank you in advance
 

Code:
While(1)
{
    Read Temp
    if(Temp > Hi_Threshold)
    {
        Fan_ON
        Display Temp on LCD
    }
    else if(Temp < Low_Threshold)
    {
        Heater_ON
        Display Temp on LCD
    }
}

Since you are using PIC controller then, you can go for the MikroC compiler. It has a built-in libraries for the LCD and, the 1-Wire for the DS18B20.

Hope this helps.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top