Welcome, Guest

Author Topic: Temperature measurement on android with DS18B20  (Read 3125 times)

lukk

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Temperature measurement on android with DS18B20
« on: March 07, 2014, 04:08:20 PM »
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

  • Full Member
  • ***
  • Posts: 125
  • Karma: +2/-0
Re: Temperature measurement on android with DS18B20
« Reply #1 on: March 07, 2014, 05:20:31 PM »
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

  • Hero Member
  • *****
  • Posts: 625
  • Karma: +18/-0
Re: Temperature measurement on android with DS18B20
« Reply #2 on: March 08, 2014, 04:52:05 AM »
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.