PDA

View Full Version : I want on the alarm at 60oC so i duno how to write the commet at My progrme



slimpeng
- 20th January 2008, 04:09
Hello....who can help me below is my source code, and i using 16F877A pic and i using the temperature sensor is gc-c 103 and now i want add the alarm system is (buzzer) in this system so i only want the port D to on the alarm when the temperature going to high temperature around 60oC the alarm will automative on and lcdout will show too hot or warning after 15s no ppl to slove the problme the alarm system will stop it all. so wat the comment i need to write down...i really no ideal to write it i hope all the genius can help me slove this problme....urgent.........!!!! thanks all the genius here frist !


include"modedefs.bas"
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 0
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 1
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
DEFINE OSC 4
DEFINE ADC_BITS 8
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50

trisa = $ff :
trisc = 0 :

pause 2000
LCDOUT 254 , 1 , " WELCOME MY "
LCDOUT 254 , 192 , 2 , " MONITOR SYSTEM "
pause 3000
LCDOUT 254 , 1 , " MY STARTING "
LCDOUT 254 , 192 , "TEMP IS: "

TRISA = 255
TRISC.6 = 0
TRISD = 0
TRISA.0 = 1
b0 VAR BYTE
MAIN:
ADCON1 = 3
ADCIN 0 , B0

lcdout 254, 201, "<"
if b0 = 0 then lcdout 254, 201, " "
lcdout 254, 202, DEC ( b0 ) , "'C"
serout portc.6, n2400, [#b0]
pause 5000
goto main
END

skimask
- 20th January 2008, 08:49
gc-c 103

?WTF?
GC-103???
http://www.km.kongsberg.com/KS/WEB/NOKBG0397.nsf/AllWeb/2A39228E2E616664C1257132004D70CD/$file/gc100_ce.pdf?OpenElement
Yep...that'll work...

Acetronics2
- 20th January 2008, 08:51
Hi,

for GC C103 ...

I get THAT :

http://www.tehnet.net/index_files/Page1089.htm

You offer the beer ???

also THAT :

http://www.lorifayebockshop.com/Catch-Me-If-You-Can-And-He-Did-p/gc%20c103.htm

Alain

slimpeng
- 20th January 2008, 12:46
Thanks for u all giving me the wedsite infomation...actually i no want the wedsite i want the commnet and source code who can teach me i jst leave that part i can finish my assignment ad..i very urgent......pls help me all the genius////

Acetronics2
- 20th January 2008, 13:13
Thanks for u all giving me the wedsite infomation...actually i no want the wedsite i want the commnet and source code who can teach me i jst leave that part i can finish my assignment ad..i very urgent......pls help me all the genius////

Hi,Slim

Really sorry ...

But we do not do any student homework here ...


With that You just send your bluetooth module the voltage on pin 2 ( A0 ) ...

the "number" is A0 Voltage * Vsupply / 256 ...


That's not a temperature ... so, you have to convert this number to the corresponding temp.

Without ANY data about your PTC ... NO FURTHER HELP POSSIBLE !!!




see what genius you look for attached ...

skimask
- 21st January 2008, 04:51
Hi,
for GC C103 ...
I get THAT :
http://www.tehnet.net/index_files/Page1089.htm
You offer the beer ???
also THAT :
http://www.lorifayebockshop.com/Catch-Me-If-You-Can-And-He-Did-p/gc%20c103.htm
Alain

I got those two...then re-spelled his version of GC103 and got the temp sensor...4-20mA current mode sensor no less. Looks like something used in high temp oil systems of some sort.
But what I really think he wants is one of these to sense temperature with great accuracy:
http://www.healthsquare.com/mc/fgmc0922.htm