Template: TVOC Sensor Pico Use
From Waveshare Wiki
Working with Raspberry Pi Pico
- For the environment setup and basic usage of Raspberry Pi Pico, please refer to Pico development environment setup.
- After setting up the environment, you can connect the sensor and download the Demo
Hardware Connection
- Refer to the following diagram for connection:
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:
- Select the port of Raspberry Pi Pico, and then run the demo
- The shell will output the relevant information