Template: TVOC Sensor Pico Use

From Waveshare Wiki
Jump to: navigation, search

Working with Raspberry Pi Pico

  • After setting up the environment, you can connect the sensor and download the Demo

Hardware Connection

  • Refer to the following diagram for connection:

TVOC Sensor 15.png

C Demo

  • Go to TVOC_Sensor_Demo\Raspberrypi pico\C and open the project via VS Code
  • Wait for automatic import and load of the compilation tool, and then compile and upload
  • After the upload is completed, open the serial port monitor, and the relevant information will be output

Micropython Demos

  • First flash MicroPython firmware to Raspberry Pi Pico
  • Go to TVOC_Sensor_Demo\Raspberrypi pico\Micropython and double-click on the TVOC_UART_Demo.py file
  • Select development board:

TVOC Sensor 16.png

  • Select the port of Raspberry Pi Pico, and then run the demo
  • The shell will output the relevant information