Go to advanced search

by eikcam
Sun Jun 03, 2012 5:26 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

If mine says: root@raspberrypi:/sys/bus/w1/devices/w1_bus_master1/28-0000030a0170# cat w1_slave 50 05 4b 46 7f ff 0c 10 1c : crc=1c YES 50 05 4b 46 7f ff 0c 10 1c t=85000 I'm using the wrong resistor? 85c is the initial value of the sensor on power up. It seems that your sensor isnt doing any calcu...
by eikcam
Sun Jun 03, 2012 5:22 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

davidmam wrote:Now to work out how to drive relays etc..
Thats my next mission as well.
by eikcam
Thu May 31, 2012 12:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

Bass, The post from davidmam is the easiest to follow. That is how my one-wire systems are wired up. Both with Pi and Arduino. GadgetUK, If one is only intending to use a few 1-wire devices then I see no need to go for anything more than what has been described. I am no expert though as I just use t...
by eikcam
Wed May 30, 2012 11:39 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

With some basic perl scripting, I have come up with the following; @sensors = `cat /sys/bus/w1/devices/w1_bus_master1/w1_master_slaves`; chomp(@sensors); foreach $line(@sensors) { $output = `cat /sys/bus/w1/devices/$line/w1_slave`; $output =~ /t=(?<temp>\d+)/; $calc = $+{temp} / 1000; print "Sensor ...
by eikcam
Wed May 30, 2012 10:52 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

Frank, Further to my last, the following output is with two DS18B20's; pi@raspberrypi:/sys/bus/w1/devices$ ls 28-000002f81b52 28-000002f83611 w1_bus_master1 pi@raspberrypi:/sys/bus/w1/devices$ cat 28-000002f81b52/w1_slave 28-000002f83611/w1_slave 70 01 4b 46 7f ff 10 10 e1 : crc=e1 YES 70 01 4b 46 7...
by eikcam
Wed May 30, 2012 10:44 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: kernel patch for Dallas 1-wire interface
Replies: 227
Views: 131751

Re: kernel patch for Dallas 1-wire interface

Frank, Great work getting the DS18B20 working. I am currently using an Arduino to collect and log all of my temp data but I was hoping to shift all the work over the my Raspberry Pi once it arrived. Well, guess what? Today it arrived. The first thing I did was run your script and hook up my breadboa...

Go to advanced search