Ds18b20 temperature sensor not detected

You have questions or need help around BierBot Bricks - this is the right place.
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Ds18b20 temperature sensor not detected

Post by Diggerg »

I've tried 3 different probes and none appear when I try to set up my biab profile. Gpio inside is enabled on my pi. Ordered another probe just to be sure. Any ideas?
User avatar
Bernhard
Site Admin
Posts: 268
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Ds18b20

Post by Bernhard »

Hey Diggerg,

sorry to hear that! A few ideas:

- Check if you have the resistor (4.7kOhm) connected between 3.3V and Data (usually white)
- Check that you connected it to the right GPIO (GPIO 4)
- Same goes for 3.3V and GND. Maybe try other 3.3V or GND GPIOs.
- It should be covered by the steps in the tutorial, but you activate w1 explicitly (that's the protocol that's used to read out temperatures) like i.e. described here.
- Make absolutely sure, that the connections are snug. This is crucial (and I fucked this up many times).

Cheers,
Bernhard.
Attachments
ds18b20_resistor.png
ds18b20_resistor.png (72.32 KiB) Viewed 4024 times
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Re: Ds18b20

Post by Diggerg »

Yeah still no luck. I'll wait till my new probe turns up and try again. Used both 3.3v outputs and different grounds but no reading
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Re: Ds18b20

Post by Diggerg »

Ok so probe number 4 is no different. Still not showing
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Re: Ds18b20

Post by Diggerg »

Interesting that you use 3.3v on the pi but 5v on the Arduino to run a ds18b20
User avatar
Bernhard
Site Admin
Posts: 268
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Ds18b20

Post by Bernhard »

Unbelievable.

Another idea: connect them to the 5V instead of 3.3V (in theory the DS18B20 supports a range from 3-5.5V)
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Re: Ds18b20

Post by Diggerg »

I have been reading online ( dangerous I know). Do I need to install any extra script for 1 wire even though it is switched on in preferences? Or is it all in the bierbot software?
User avatar
Bernhard
Site Admin
Posts: 268
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Ds18b20

Post by Bernhard »

hmmm, really strange. There seems to be one systematic thing ...

Let's do it the other way round can you share:

- An image of your raspberry Pi settings screen for switching on/off peripherals?
- An image of your Raspberry Pi and the connected GPIOS
- The content of your config file (bricks.yaml)

Anything else where you think it might be important?

Thanks,
Bernhard.
Diggerg
Posts: 9
Joined: Sun May 01, 2022 12:04 pm

Re: Ds18b20 temperature sensor not detected

Post by Diggerg »

It can't even see the probes in script so I'm going to wipe my SD card. Reinstall raspian and start again. Would my existing API still work?
User avatar
Bernhard
Site Admin
Posts: 268
Joined: Sun Jan 23, 2022 3:53 pm
Location: Munich - Germany

Re: Ds18b20 temperature sensor not detected

Post by Bernhard »

API will still work!
Post Reply