Pic12f629-i/p


Closed Thread
Results 1 to 7 of 7

Thread: Pic12f629-i/p

  1. #1
    Join Date
    Mar 2008
    Posts
    79

    Default Pic12f629-i/p

    Is it possible to interface a DS18b20 to a PIC12F629-I/P?
    What I want to do is possible is have 1 ds18B20 as an input and 4 outputs simple transistor switches that go high and or low depending on the temperature of the DS18B20

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Karen

    VCC, VDD + 4 Outputs + 1 input = 7 pins ...

    One pin left for what you want !

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    Is it possible to interface a DS18b20 to a PIC12F629-I/P?
    What I want to do is possible is have 1 ds18B20 as an input and 4 outputs simple transistor switches that go high and or low depending on the temperature of the DS18B20
    Search here for 18B20 brings up over 50 hits...most with code...and the PBP manual says OWIN/OWOUT will work on 12F series PICs, with a couple of notes.

  4. #4
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    Search here for 18B20 brings up over 50 hits...most with code...and the PBP manual says OWIN/OWOUT will work on 12F series PICs, with a couple of notes.
    I know the code for the DS18B20 thanks so hopefully wont need any help with that, and hopefully the pic will have enough space for it lol
    What i wasn't sure was if the ds18b20 would "talk" to the pic, still new at all this and learning as I go sorry

    One thing you could help me with if you dont mind me asking questions again
    If I wanted to monitor a range of temp's and enable an output only between 2 temp's i.e. a pin go high only between 30șC and 50șC but as I'm not using an LCD display to display the temp, how would I do that?
    i've done it before using an lcd but I'm not sure if the same works or not when you dont have an lcd connected or displaying the temp
    Last edited by karenhornby; - 13th June 2008 at 20:17.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    If I wanted to monitor a range of temp's and enable an output only between 2 temp's i.e. a pin go high only between 30șC and 50șC but as I'm not using an LCD display to display the temp, how would I do that?
    i've done it before using an lcd but I'm not sure if the same works or not when you dont have an lcd connected or displaying the temp
    Use a Red/Green bicolor LED, or maybe continuously flash an led on the output, have it output a series of pulses relating to the actual temperature.
    If you've got an o'scope, you could output a pulse corresponding to the temp (i.e. 50C = 50ms pulse).

  6. #6
    Join Date
    Mar 2008
    Posts
    79


    Did you find this post helpful? Yes | No

    Default

    Last of my stupid questions for today, can I just tell the led to light when it gets to say 30șC and go off at 50șC?

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by karenhornby View Post
    Last of my stupid questions for today, can I just tell the led to light when it gets to say 30șC and go off at 50șC?
    Quite frankly, it depends on whether or not you can figure out how to code it that way or not.

    Let me add on to that statement a bit...
    It depends on whether or not you can write the correct code to read the temperature output from a DS18B20 and create a single or pair of IF/THEN statements to either set or reset the port pin that the LED is connected to.
    Last edited by skimask; - 14th June 2008 at 04:59.

Similar Threads

  1. semaphore pic12f629
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 7th November 2008, 13:55
  2. Ultrasound with PIC12F629
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th February 2007, 16:22
  3. PIC16f877-20 to a PIC16f877A I/P Disaster
    By andyf in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 21st November 2005, 17:11
  4. PIC12F629, useing all I/O pins
    By Jcee324 in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 7th December 2004, 11:05
  5. PIC12F629 or 8pin
    By andyf in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 27th October 2004, 18:11

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