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


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2008
    Posts
    28

    Default I want on the alarm at 60oC so i duno how to write the commet at My progrme

    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

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by slimpeng View Post
    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...

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,616


    Did you find this post helpful? Yes | No

    Question

    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/Catc.../gc%20c103.htm

    Alain
    Last edited by Acetronics2; - 20th January 2008 at 08:54.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jan 2008
    Posts
    28


    Did you find this post helpful? Yes | No

    Default

    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////

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,616


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by slimpeng View Post
    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 ...
    Attached Images Attached Images  
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    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/Catc.../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
    Last edited by skimask; - 21st January 2008 at 04:54.

Similar Threads

  1. INT2 anomaly in DT_INTS-18??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2010, 20:07
  2. WRITE: One more PBP 2.60 Surprise ...
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 26th August 2009, 09:10
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  5. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts