Page 1 of 1

Re: OneWire Devices On GPIO

Posted: Wed May 02, 2012 6:45 pm
by beakersoft
Hi,

Has anyone managed to talk to a OneWire device (i have a temperature sensor) over the GPIO? I have arduino board that is talking to it over python, i was wondering if i could plug my breadboard into the GPIO pins and read the sensor data of that?

Any examples, pointers etc would be great.

Cheers

Luke

Re: OneWire Devices On GPIO

Posted: Thu May 03, 2012 1:01 am
by hzrnbgy
Am i safe to assume you are referring to the ds18b20? I worked with these before on the driver level and it requires hundred microsecond timing accuracy that your regular linux might not be able to provide.

Re: OneWire Devices On GPIO

Posted: Thu May 03, 2012 1:11 am
by error404
There's a 1wire GPIO driver in the kernel (see w1-gpio). It'll require some changes to the board definition file (ie. kernel source) and a correct kernel configuration, but should probably work.