16F88 and temperature sensor


Closed Thread
Results 1 to 21 of 21
  1. #1
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default 16F88 and temperature sensor

    I have one open pin available on a project I'm working on. I would like to add a temperature sensor to give me air temp. What is the best option to go with?

    I've looked at the LM35 but it requires a negative source to utilize the full range....thats not an option for me. Thoughts?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I found the DS18B20 to be quite a nice chip to play with. This one has 0.0625ºC increments with a range of -55 to +125ºC. The best part is that all the data is in a digital format.

  3. #3
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Pretty pricey for what I'm doing. I don't need several sensors....just one.

  4. #4
    achilles03's Avatar
    achilles03 Guest


    Did you find this post helpful? Yes | No

    Default

    What other peripherals do you have on your current project? You may be able to share a clock pin, or a data pin, with another peripheral. For instance, if you have an SPI eeprom, you can share the clock and data lines, and whatever you do with those two pins is transparent to the eeprom so long as the chipset is held high. In other words, you might not be limited to 1 pin.

    Dave

  5. #5
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I currently have a switch, LCD (4-bit), DS1307, MAX232. This gives me one open, unused pin.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    You might use a LM75A, and put it on the I2C bus with the DS1307, and you'll still have a Pin left.
    <br>
    DT

  7. #7
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    My big concern with IC based sensors is that I will only be able to get the temp of the inside the project box everything is going into. I'm thinking I need something that I can either use remote or attach to the side of a metal project box.

  8. #8
    Join Date
    Jun 2005
    Posts
    53


    Did you find this post helpful? Yes | No

    Post

    DynamoBen

    I use LM34, AD592 and AD590 solid state sensors. The AD592 and resistor makes a simple wide range sensor into an analog input. I am currently using an inexpensive 10K NTC thermistor, 10K fixed resistor voltage divider connected to an analog input on a 16F819. I get approximately 6 counts per degree F resolution. The NTC thermistor is not linear so I use a lookup table. My current application only requires a 30F control window.
    I also use the hardware PWM to control 400 watts of fan motors based on temperature and it works excellent.
    I also recommend Darrel Taylor's averaging routine. It works great!
    http://www.pbpgroup.com/modules/wfs...php?articleid=7

    Mark

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Actually, it's ...
    http://www.pbpgroup.com/modules/wfse...hp?articleid=7

    I know it looks the same, but the link is different.

    Thanks for the referral.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Smile Temp rising ...

    Quote Originally Posted by DynamoBen
    I've looked at the LM35 but it requires a negative source to utilize the full range....thats not an option for me. Thoughts?
    Hi, Ben,

    Did you had a look to it's brother : the LM335 ...gives Kelvin degrees. A 273.15 °C offset is easy with the PIC !!!
    You also have the SMT 160-30 ...with a PWM output.

    Alain
    Last edited by Acetronics2; - 27th September 2005 at 07:38.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  11. #11
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I've been pouring through the LM335 datasheet. Its starting to look like a really good option. Price looks good...range looks good.

    Any gotchas with this one? Disadvantages?

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


    Did you find this post helpful? Yes | No

    Talking Everything in the Datasheet ...

    Hi, Ben

    The Only disadvantage WAS in Analog meters : needed to have a precise 2.7315 ref voltage to calibrate ( TL 431, generally ...).

    nothing to add, except it's analog ... take care with long cables, if so ...

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

  13. #13
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I'm looking to do time and temp on a motorcycle. Originally I was looking at the I2C temp ICs. This was due to the fact that they are easy to interface to and are fairly accurate. However my concern is protecting the electronics from the environment and getting fairly accurate outside air temp. (within a degree) However if there is a way to use these ICs and keep the rest of the electronics out of harms way I'm all for it.

    This is what started my thread. My hope is that if you know my application that will give you insight into what I'm trying to do.

  14. #14


    Did you find this post helpful? Yes | No

    Default

    I run the DS18B20 using the parasite power option and a 22 AWG twisted pair cable with adhesive lines heatshrink over it. The heatshrink seals the sensor making it perfect for harsh environments. Yes they are expensive but I found they work perfect and you don't need to calibrate anything

  15. #15


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    Analog Devices make a current-based temperature probe called the AD590.
    It takes a bit of signal conditioning at the processor side, but you can run the sensor for a hundred feet on a twisted pair. It comes in a small 3-pin package (ideal for heat-shrinking) and is highly resistant to noise.

    Here are some links:

    http://www.picbasic.org/forum/showth...ighlight=AD590

    http://www.picbasic.co.uk/forum/show...ighlight=AD590

    http://list.picbasic.com/forum/messages/5820/6521.html?


    Good luck!
    Last edited by picnaut; - 27th September 2005 at 21:00.
    ---> picnaut

  16. #16
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    "22 AWG twisted pair cable with adhesive lines heatshrink over it"

    What do you mean by adhesive lines?

  17. #17


    Did you find this post helpful? Yes | No

    Default

    Oops, that should have been lined, not lines.

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


    Did you find this post helpful? Yes | No

    Wink 3 Cylinders KH 500 for ever ...

    Quote Originally Posted by DynamoBen
    I'm looking to do time and temp on a motorcycle. Originally I was looking at the I2C temp ICs. This was due to the fact that they are easy to interface to and are fairly accurate. However my concern is protecting the electronics from the environment and getting fairly accurate outside air temp. (within a degree) However if there is a way to use these ICs and keep the rest of the electronics out of harms way I'm all for it.

    This is what started my thread. My hope is that if you know my application that will give you insight into what I'm trying to do.
    Hi, Ben,

    There's no problem on a bike ...I have such a thermometer home for outside temp, a silicone seal and therm schrinkable protects the LM from snow and rain for now 15 years !!!
    I think it would be convenient to use shielded cable ( for Alarm wiring i.e. ) not to be disturbed by the ignition system ( ? )

    If I understand you well , you're looking for a freeze alert smart device ... isn't it ???

    read you soon
    Alain
    Last edited by Acetronics2; - 28th September 2005 at 10:43.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  19. #19
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I don't really care about the freez alarm.

    Just looking for an outdoor ambient temp when riding. Because everything is going to be in a water tight project box I will need to somehow get the sensor into the air outside the box. (inches at best)

  20. #20
    webstern's Avatar
    webstern Guest


    Did you find this post helpful? Yes | No

    Default

    SMT160-30 only need power, ground and signal.

  21. #21
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Why not look at the Analog Devices TMP-03. It outputs a ratiometric pulse which can be measured with PULSIN. They make real nice remote sensors and only use 1 pin. I ues them in an weather station I designed and also in my house to control the zone temperature of my hot water heating system.

    Dave Purola,

Similar Threads

  1. Help with DS18B20 program
    By presario1425 in forum mel PIC BASIC Pro
    Replies: 38
    Last Post: - 22nd August 2012, 00:50
  2. Another DS18B20 problem
    By ruijc in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd February 2008, 19:18
  3. ds1820 error
    By CrazyCooter in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 9th September 2007, 07:34
  4. LCD and 16F88
    By G-R-C in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 6th February 2007, 03:07

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