Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Temperature sensor DS18b20 (dallas 1-wire) easy configuration

Featured Replies

Hi All,

Just wanted to share a good story using armbian. I have used in the past 1-wire probes for temperature, and the process included decompiling, editing and recompiling dtb for my Banana Pi M1, which was not easy at all. Every firmware update deleted by changes and had to redo de recompilation.

 

With latest kernels and armbian version, the process is now extremely easy, just edit:

/boot/armbianEnv.txt

 

Adding this lines:

overlays=w1-gpio

param_w1_pin=PI3             # desired pin(7th pin (GCLK) or number 4 on first column where number 1 is +3V)

param_w1_pin_int_pullup=1     # internal pullup-resistor: 1=on, 0=off

 

I just struggled a little bit to find the GPIO code (decompiled dtb and checked possible candidates).

 

Information about temperature is here:

cat /sys/bus/w1/devices/XX-YYYYYYY[this is your probe serial, if you have more they will be in /sys/bus/w1/devices/] /w1_slave

 

You have plenty of information here, but don't need to do all they explain, just my edition has been enough:

http://linux-sunxi.org/1-Wire

 

 

 

Solved by martinayotte

  • Solution
5 hours ago, sooperior said:

just struggled a little bit to find the GPIO code (decompiled dtb and checked possible candidates).

 

5 hours ago, sooperior said:

# desired pin(7th pin (GCLK) or number 4 on first column where number 1 is +3V)

Effectively, you seems confused about GPIO pin name.

It should be simple as "param_w1_pin=PD14" for example.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.