==== Links & info ==== * http://wannabe.guru.org/scott/hobbies/temperature/ * http://www.technotes.se/?p=26 * https://bitbucket.org/hadara/koduvana/ * http://www.langmaier.com/post/Reading-a-DS18B20-temperature-sensor-using-a-DS9097-adapter-with-CPP-on-Linux ==== BeagleBone Black setup and configuration ==== vi /etc/init.d/led_aging.sh #!/bin/sh -e ### BEGIN INIT INFO # Provides: led_aging.sh # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start LED aging # Description: Starts LED aging (whatever that is) ### END INIT INFO x=$(/bin/ps -ef | /bin/grep "[l]ed_acc") if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then /usr/bin/led_acc & fi apt-get install owfs mkdir /mnt/1wire vi /etc/owfs.conf # uncomment: mountpoint = /mnt/1wire vi /etc/init.d/owfs #!/bin/sh owserver -u -p 4304 chmod 777 /etc/init.d/owfs # igonre warnings! update-rc.d owfs defaults apt-get install rrdtool apt-get install ow-shell # start owfs manually /usr/bin/owfs --allow_other -u /mnt/1wire # if owSERVER doesn't start at startup killall owserver sudo /etc/init.d/owfserver ==== DS9097 1-wire adapter pin-out (Latvian) ==== * Red wire - +5V(100mA max) (not used in parasite setup) * //White wire - +3.3V(10mA max)// (not used in any setup) * Black wire- GND (temp sensor edge pins) * Green wire- 1-wire data (temp sensor middle pins) === Testing === * sudo apt-get install digitemp * sudo digitemp_DS9097 -s /dev/USB0 -w ==== Temp sensor pin-out ==== * waterproof: * white=data; black=gnd; red=V * white -> solid color extension * red+black -> halfcolored extension * barebone: * middle leg = data -> solid color extension * edge legs -> halfcolored extension ==== Sensor mapping ==== ^ID ^Address ^Type ^Location ^ |T01 |28.FF24983E0400 |Temp |Sauna main | |T02 |28.FF959C3C0400 |Temp |Sauna boiler | |T03 |28.FFAB583A0400 |Temp |Server room | |T04 |28.FF1D983E0400 |Temp |Outdoors highest | |T05 |28.FFC4583A0400 |Temp |//not in use// | |T06 |28.FFE88B521400 |Temp |Livingroom (TV) | |T07 |28.FF7D09521400 |Temp |Livingroom (office) | |T08 |28.FF628B521400 |Temp |Bedroom (TV) | |T09 |28.FF4420521400 |Temp |//not in use// | |T10 |28.FF20C2511400 |Temp |//not in use// | |T11 |28.FFFE88521400 |Temp |//not in use// | |T12 |28.FF148F521400 |Temp |//not in use// | |T13 |28.FF1114531400 |Temp |//not in use// | |T14 |28.FFBAB3521400 |Temp |//not in use// | |T15 |28.FFD08B521400 |Temp |//not in use// | |T16 | |Temp |//not in use// | |T17 | |Temp |//not in use// | |T18 | |Temp |//not in use// | |T19 | |Temp |//not in use// |