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.

help me: temperature sensor lm35 with pic16f877 and code

Status
Not open for further replies.

mohamedspider

Newbie level 2
Joined
Jun 1, 2012
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
hi everyone,,

i want to ask for my project

my project is fire alarm by using lm35 sensor and pic16f877

that will send output from sensor to pic then to serial port

and i will recieve it in visual basic 6 program

i draw this circuit in " ISIS 7 Professional "

i want anyone help me and tell me if this circuit correct or not

and send the code that will put in pic by using "microc" and hex file

there hex file with the rar file but i dont't no if this file correct or not

thx:|View attachment New folder (10).rar temp.jpg
 

Well, I don't know why you put that 10k at LM35 supply.

The capacitors of the oscillator are missing too (see the image below)
osc.PNG

I guess the rest of the circuit is ok.
 

    V

    Points: 2
    Helpful Answer Positive Rating
Well, I don't know why you put that 10k at LM35 supply.

The capacitors of the oscillator are missing too (see the image below)
View attachment 75202

I guess the rest of the circuit is ok.

really thank you so much for your help

this is my new schematic


1.jpg

but i try run it on visual basic

it gave me this result

2.jpg

i don't know what's wrong in this code

this code is writen in PICbasic pro compiler

Code:
DEVICE 16F877
DECLARE  XTAL 4
DECLARE ADIN_RES 10
DECLARE ADIN_TAD 8_FOSC
DECLARE ADIN_STIME 50
Dim TEMP As WORD
TRISA = %00000001
TRISC 0.6 = 0
ADCON1 = %10000000
       TEMP = 0
                TEMP = ADIN 0
                TEMP = (TEMP / 2)
                SEROUT PORTC.6,16780, [ DEC TEMP,13]
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top