Temperature measurement on android with DS18B20

Started by lukk, March 07, 2014, 04:08:20 PM

Previous topic - Next topic

lukk

Hello

I have A10-OLinuXino-LIME board with A10-LIME-ANDROID-SD from your shop and I'm wondering if it's possible to read temperature from DS18B20 sensor. If yes, how to connect it and make it work?

Is it possible to read from ADC?

martinayotte

Hi,
If you read this thread https://www.olimex.com/forum/index.php?topic=2867.0, you will see that we still have troubles getting 1-wire sensor working on Debian, so I presume you will have to wait a bit longer for Android if you don't want to rebuild kernels ...

dave-at-axon

The only way I've seen this done is via the Android IOIO board. The external processor does the work of reading the 1-wire devices and passes this back to the Android app via USB.

Another option you may have with the Lime is to use one of the UART to 1-wire devices and then connect via and RS232 adapter on the UEXT.

There is also I2C to 1-wire. Again connect to the UEXT.

If you want to do this native via GPIO, you are going to have to write your own driver for this. You could look at the Raspberry Pi and see how they do it on there. I know it works as my friend uses 1-wire with his RPi.