driving DS18B20 via lpc2138

Discussion in 'The Projects Forum' started by eric_s88, Nov 15, 2013.

  1. eric_s88

    Thread Starter Member

    Apr 20, 2011
    hi everyone!
    some days ago I posted a topic asking how to drive pt100, but I have to change my sensor to DS18B20 for some reasons.

    this sensor has an output via 1wire protocol. Codevision has a libraries for both 1wire and especially for ds18b20. but doesnt have source!
    \I want ro drive it via lpc2138 arm7 uC.

    I have read some codes but they didn't help me.

    *does anybody have experience with this?
    *anybody knows about how to implement 1wire protocol on lpc2138?

    I have attached DS1820 datasheet and a pdf that talks about that(sth like datasheet) and a code, that has only the functions name.

    thank you
  2. eric_s88

    Thread Starter Member

    Apr 20, 2011
    any idea ? :(
  3. Dodgydave

    AAC Fanatic!

    Jun 22, 2012
    Don't know about that sensor, but do you need 1 wire or just a linear sensor that gives out a dc voltage perportional to temperature in degrees Cent ,so you can use an A/D on your micro, if so try an MCP9700 from microchip, 10mv per degree C, range from -50 to +150C

    or a TMP36 will do -40C to +125C
    Last edited: Nov 15, 2013
    eric_s88 likes this.
  4. eric_s88

    Thread Starter Member

    Apr 20, 2011
    thank you.

    but their accuracy is low. I want an accuracy of 0.1deg. so I will need sth like ds18b20 , with digital output.
    Dodgydave likes this.