mirror of
https://codeberg.org/andyscott/UART-Weather-Log.git
synced 2025-04-27 09:47:54 -04:00
STM32 with DHT22 sensor
Core | ||
Drivers | ||
Images | ||
.gitignore | ||
.mxproject | ||
.project | ||
LICENSE | ||
README.md | ||
stm32f4-dht22-uart.ioc | ||
STM32F446RETX_FLASH.ld | ||
STM32F446RETX_RAM.ld |
STM32-DHT22-UART
This project demonstrates how to use a STM32 microcontroller with a DHT22 temperature and relative humidity sensor. Data from the sensor is transmitted asynchronously via UART and can be viewed on a serial console or in a terminal emulator.
Using Terminal Emulators
- Determine which
tty
device represents your STM32, on this system it'sttyACM0
for example - Set the baud rate:
stty -F /dev/ttyACM0 115200
- View the output:
cat /dev/ttyACM0