This is a repository desgined for the arduino 37 sensors bundle for raspberry pi 4. This package implemented in raspberry pi 4B GPIO with RPi.GPIO.
pip install sensors-control-gpio-xzf8971
For help infromation
python -m AHT20_sensor_control --help
# Open I2C bus1. Save data into example.log. Measure data every 60s.
python -m AHT20_sensor_control -n 1 -o example.log -t 60
# Enable CRC8 check. Only save data when crc check is OK
python -m AHT20_sensor_control -n 1 -o example.log -t 60 -c
Only support backen adafruit now, the error rate of DHT11 is quite high. DHT11 is only recommendded as pedagogical one in 2022
python -m DHT11_sensor_control -p pin -b adafruit
This is a very simple scripts developed for arduino serial monitoring (like serial monitor in Arduino IDE, but this one will save data into file)
# I suppose your serial port want to monitor is ttyACM0
sudo chmod 666 /dev/ttyACM0
# port is /dev/ttyACM0 bautrate is 9600 (this is default for arduino UNO) timeout is 1s
python -m serial_monitor -p /dev/ttyACM0 -b 9600 -t 1