Last active
February 23, 2020 19:32
-
-
Save beeyev/806858283c0d6e8f7da52f6743ec5144 to your computer and use it in GitHub Desktop.
Orange Pi Zero DS18B20 and I2C bme280
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://blog.ja-ke.tech/2019/01/21/DS18B20-armbian.html !! | |
# http://blog.regimov.net/orange-pi-lite2-1-wire/ | |
# http://oleg.milantiev.com/2019/01/27/orangepi-bmp280-weather-sensor/ | |
apt-get install mc htop nano curl wget git python3-pip i2c-tools python3-setuptools | |
dpkg-reconfigure tzdata | |
git clone https://github.com/xpertsavenue/WiringOP-Zero.git | |
cd WiringOP-Zero | |
chmod +x ./build | |
sudo ./build | |
gpio readall | |
i2cdetect -y 0 | |
nano /boot/armbianEnv.txt | |
overlays=w1-gpio | |
# PWM1/PA06 pin on Orange Pi Zero (0 this is A port, 6 this is 06 pin. for PD14 use <&pio 3 14 0>) | |
param_w1_pin=PA06 | |
# param_w1_pin_int_pullup=1 | |
nano /etc/modules-load.d/modules.conf | |
w1-gpio | |
w1-therm | |
+---------------------+-----------------------+ | |
| 3.3v 1 2 | DS18B20 3.3v -> PIN17 | | |
| SDA/SDI 3 4 | GND -> PIN6 | | |
| SCL/SCK 5 6 GND | DATA -> PIN7 | | |
| PA06/PWM1 7 8 | | | |
| GND 9 10 | BMP280 3.3v -> PIN1 | | |
| 11 12 | GND -> PIN9 | | |
| 13 14 | SDA -> PIN3 | | |
| 15 16 | SCL -> PIN7 | | |
| 3.3v 17 18 +-----------------------+ | |
| 19 20 | | |
| 21 22 | | |
| 23 24 | | |
| 25 26 | | |
+---------------------+ | |
pip3 install --upgrade setuptools wheel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment