Driver for 1-Wire sensor bus
- 
					
					
					
					
 @Nathan-Bertram Hi, thanks for the tip. Created the file, restarted the Onion, folder /etc/devices/w1_master_driver now exists, but nothing with DEVICE to be found there. 
 Any ideas ?
 
- 
					
					
					
					
 Now it's working, using +5V and GND and PIN 26. Before I was using + 3.3V. My sensor is a 18B20 with 10K resistor. 
 
- 
					
					
					
					
 This is how it looks:  root@Omega-276D:/sys/devices/w1_bus_master1/28-0415a810c3ff# cat w1_slave 
 7b 01 4b 46 7f ff 0c 10 af : crc=af YES
 7b 01 4b 46 7f ff 0c 10 af t=23687
 
- 
					
					
					
					
 A big thank you to @Omega303, his awesome 1-Wire tutorial is now up on the Onion Wiki: https://wiki.onion.io/Tutorials/Reading-1Wire-Sensor-Data 
    
 
- 
					
					
					
					
 SUCCESS - thanks @Omega303 guide looks awesome - finally got it to work after hooking up my resistor correctly this time (using the 5v power source though -- I changed my pin # to 19 instead of 0 and it worked): awk -F= '/t=/ {printf "%.03f\n", $2/1000}' /sys/devices/w1_bus_master1/28-0215718f9dff/w1_slave 
 21.500Yeah! 
 
- 
					
					
					
					
 Using firmware 0.0.6 b275, the temperature DS18B20 works using a 3.3V connection with a 4.7K pull-up resistor on the Data out line. A DS18B20 PAR (PARASITIC version) also works. I connected it using GPIO 26 and I have an OLED to display the time and temperature using some python code. 
 Ian 
 
- 
					
					
					
					
 I finally got a chance to try the tutorial, and it worked right away! Thanks Omega303! 
 
- 
					
					
					
					
 @Ian-Pun Would you be interested in sharing your python code? I am just gettng started with python and have no clue where to start. 
 Thank you in advance.Dan 
 
- 
					
					
					
					
 The code in python for the temperature. I adapted from a Raspberry Pi code. 
 Ian
 
- 
					
					
					
					
 @Ian-Pun 
 That is a great example to work from. Thank you.
 Only problem I have now is trying to convert the temp into F.
 I have tried adding the calculations in everywhere I can think of and I just get errors.
 Any help would be great. I am real new to python programing.Thanks again. 
 Dan
 
 
			
		 
			
		