Template: TVOC Sensor Arduino Use

From Waveshare Wiki
Jump to: navigation, search

Working with Arduino

  • The IO level of the Arduino development board must be 3.3V. If a 5V IO level is used, level conversion is required, otherwise the sensor will be damaged
  • To use waveshare R3/R4, you need to set the following jumper cap to 3.3V before you can use it
  • For Arduino environment setup and basic usage, please refer to this R4 link, R3 is installed by default.
  • After setting up the environment, you can connect the sensor and download the Demo

Arduino Demos

Hardware Connection

  • Refer to the following diagram for connection:

Run Demo

  • Go to TVOC_Sensor_Demo\Arduino\TVOC_UART_Demo and double-click on the TVOC_UART_Demo.ino file
  • Select development board:
  • Select the port of the development board, and then compile and upload it
  • After the upload is completed, open the serial port monitor, and the relevant information will be output