Author Topic: DS18B20 problems Raspberry Pi  (Read 2519 times)

0 Members and 1 Guest are viewing this topic.

Offline 5321488Topic starter

  • Contributor
  • Posts: 27
  • Country: au
DS18B20 problems Raspberry Pi
« on: May 16, 2017, 09:03:07 am »
I am trying to connect a DS18B20 sensor to a raspberry pi. I have done and double checked all the setup code - w1-gpio, w1_therm, added them to startup modules list and added dtoverlay=w1-gpio to config.txt. But the sensor doesn't show up in /sys/bus/w1/devices/ - instead I get a variety of dodgy 00-x00000000 style IDs, with x being a number 1,4,8,6,++. Additionally, the w1_slave directory is not in the device ID directory.

Any ideas on what's wrong? Is it a dodgy sensor?
 

Offline Mr.B

  • Supporter
  • ****
  • Posts: 1319
  • Country: nz
Re: DS18B20 problems Raspberry Pi
« Reply #1 on: May 16, 2017, 09:12:47 am »
Post your wiring diagram...

Are you using it in parasite power mode?
If so, are you pulling the data line high with a 4K7 or close to that?

Need more information to supply advice.
Where are we going, and why are we in a handbasket?
 

Offline 5321488Topic starter

  • Contributor
  • Posts: 27
  • Country: au
Re: DS18B20 problems Raspberry Pi
« Reply #2 on: May 16, 2017, 09:44:39 am »
Schematic attached, basically running off 3.3V, data pin pulled high with 4.7K and connected to pin 4 of Pi.

I don't know about parasitic power mode.

I mostly referenced this tutorial: www.core-electronics.com.au/tutorials/temperature-sensing-with-raspberry_pi.html
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->