Jump to content

DS18B20 (1-Wire) Support, why is it so problematic?


Recommended Posts

I’m trying to help people use my Pi Hat with RPi clones and everything works, except for the DS18B20 temperature sensors. Using current versions of Armbian on both a Banana Pi M2 Zero, a Banana Pi M4 Berry, and an Orange Pi 3B, but no devices show up in /sys/bus/w1/devices.

 

/etc/modules contains:

 

w1-gpio
w1-therm

 

/boot/armbianEnv.txt contains:

 

overlays=w1-gpio
param_w1_pin=PA6
param_w1_pin_int_pullup=1

 

NOTE: PA6 is used so that it matches up with the default 1-Wire pin used on an RPi. These hats are already built, I can’t change this to a different pin.

Edited by Panhandle_Ponics
Link to comment
Share on other sites

Look for successful or failure experiences in SBCs with the same ARM chip.

For example, the banana pi zero m2 zero shares the same chip as the orange pi zero.

 

Execute dmesg|grep w1 to see if the kernel module is loaded

Look in the uboot messages, to see if there's an error applying the DTBO

Use gpioinfo to see if PA6 is not already claimed by the kernel for something else 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines