driving DS18B20 via lpc2138

Thread Starter

eric_s88

Joined Apr 20, 2011
158
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
 

Attachments

Dodgydave

Joined Jun 22, 2012
11,303
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:

Thread Starter

eric_s88

Joined Apr 20, 2011
158
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
thank you.

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