I'm a fan of these little boards, and I'm working through old forum posts and coming up with scripts to get this working. Right now this post is a placeholder for me to collect notes, because they're 404ing pretty quickly anymore.
Default W1 pin on Nano PI NEO
I enabled modules, and connected DS18B20 but still haven't 28-XXX... folder in /sys/bus/w1/devices. In README.sun8i-h3-overlays written that default port is PD14 but i can't find it on my board pinout.
forum.armbian.com
[SOLVED] Unable to read from DS18B20 sensor
Hi all! First time poster, i apologize in advance for any etiquette violations... I have an OrangePi Zero H2+ board and the DS18B20 sensor (waterproof version). I have soldered the pullup resistor between power and data cables. I have Armbian Stretch 5.83 with 4.19.38-sunxi kernel. I have enabled...
forum.armbian.com
Code:
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install python-pip python3-pip python3-numpy python3-matplotlib libatlas-base-dev -y
pip3 install w1thermsensor numpy
sudo sed -i 's/usbhost2/usbhost2 w1-gpio/' /boot/armbianEnv.txt
echo 'param_w1_pin=PG11' | sudo tee -a /boot/armbianEnv.txt
echo 'param_w1_pin_int_pullup 1' | sudo tee -a /boot/armbianEnv.txt
sudo dtc -I dtb -O dts -f /boot/dtb/overlay/sun8i-h3-w1-gpio.dtbo -o /boot/dtb/overlay/sun8i-h3-w1-gpio.dts # convert dtbo to dts so you can nano/edit it
sudo sed -i 's/PD14/PG11/g' /boot/dtb/overlay/sun8i-h3-w1-gpio.dts
sudo dtc -I dts -O dtb -f /boot/dtb/overlay/sun8i-h3-w1-gpio.dts -o /boot/dtb/overlay/sun8i-h3-w1-gpio.dtbo
git clone https://github.com/th33xitus/kiauh.git
sudo reboot
Last edited: