Page 1 of 1

[NUC240] Read Sensor DHT11 Humidity and Temperature Data

Posted: 20 May 2020, 14:55
by chhsieh3
  • Application: This code uses NUC240 GPIO (PA.0) and TIMER0 to read DHT11 humidity and temperature data.
  • BSP Version: NUC230/240 Series BSP CMSIS V3.01.001
  • Hardware: NuTiny-SDK-NUC240V V1.2
This example code uses GPIO (PA.0) and TIMER0 to read DHT11 humidity and temperature data. DHT11 is a common digital humidity and temperature sensor. DHT11 uses a simplified single-bus communication to exchange data.

By using GPIO and TIMER0, user can generate the waveform to communicate with DHT11.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1102111121