beakersoft
Posts: 28
Joined: Thu Apr 26, 2012 4:35 pm

Re: OneWire Devices On GPIO

Wed May 02, 2012 6:45 pm

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

hzrnbgy
Posts: 106
Joined: Mon Dec 26, 2011 10:55 pm

Re: OneWire Devices On GPIO

Thu May 03, 2012 1:01 am

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.

error404
Posts: 351
Joined: Wed Dec 21, 2011 11:49 pm

Re: OneWire Devices On GPIO

Thu May 03, 2012 1:11 am

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.

Return to “Beginners”