(05-10-2016, 04:37 AM)peterz Wrote:(05-10-2016, 03:01 AM)ItsDave Wrote: Hello -
After several hours wasted trying to get the board to boot up (don't use unetbootin!) I finally managed to get Ubuntu installed
on the Pine 64 2Gb. I am trying to get it to read a Dallas 1-wire sensor from the GPIO Headers (Using pin 4).
I've installed the ported GPIO library for the Pi which doesn't seem to be able to read the device.
Has anyone managed to read data from the Dallas 1-Wire interface yet?
Also I read somewhere that the Pine64 supports analog connections - what pins support analog sensors?
Here are described pins of Raspberry PI bus, Euler Bus, Exp bus and Wifi/BT bus.
http://files.pine64.org/doc/Pine%20A64%2...160119.pdf
I suppose you mean Raspberry PI bus GPIO4 (RPI pin7) because RPI pin4 is 5V VCC.
Here is table where a community member tested the GPIO pins (PINE seems to have different GPIO numbers than Raspberry PI)
http://joey.hazlett.us/pine64/pine64_pins.html
Raspberry PI bus doesn't have ADC (Analog to Digital Converter). You can use MCP3004/MCP3008 chip to achieve this.
https://learn.adafruit.com/reading-a-ana...spberry-pi (step by step guide)
https://cdn-shop.adafruit.com/datasheets/MCP3008.pdf (MCP3008 datasheet)
Here is guide for DS18B20 1Wire temperature sensor for Raspberry PI.
https://learn.adafruit.com/adafruits-ras...ng/ds18b20
Thanks for your reply, although I am currently a little confused by it! The links you have added refer to getting the DS18B20 working with an RPi rather then a Pine64 which is something i've already achieved (or i'd be posting on the Rpi forums)....
However, the same doesn't seem to work on the Pine64 (although I have just noticed the difference in the GPIO numbers - I shall try that this evening). On the Pi once connected the sensor is mounted at /sys/bus/devices/w1/ but I can't seem to find a similar location for the Pine.