|
tested with 18DS20 TempSensor (resistor between VCC and data)
this is described elsewhere in the forum, but I added some info
GPIO P01 for VCC : +3.3V
GPIO P06 for GND
GPIO P37 for data (CON3-P37 = PA20)
--declaration--in file script.bin---
[w1_para]
w1_used = 1
gpio = 20
(in scriptbin is defined : gpio_pin_28 = portA20)
(I thought -- wrongly --- that gpio had to be 28 ...)
modprobe w1-sunxi
modprobe w1-gpio
modprobe w1-therm
#dmesg
[ 206.449020] W1_SUNXI: Added w1-gpio on GPIO-20
[ 225.174972] Driver for 1-wire Dallas network protocol.
[ 225.182341] W1_GPIO: added w1 master on GPIO20
[ 225.216153] w1_master_driver w1_bus_master1: Family 28 for 28.000003c620a3.37 is not registered.
---------------------------------------------------------------
root@OrangePI:/sys/bus/w1/devices/28-000003c620a3# cat w1_slave
3f 01 4b 46 7f ff 01 10 7a : crc=7a YES
3f 01 4b 46 7f ff 01 10 7a t=19937
----temperature is 19,937 degrees celcius----
|
|