Skip to main content

Working with Raspberry Pi Pico

This chapter contains the following sections. Please read as needed:

Setting Up Development Environment

1. Installation and Configuration

  • For setting up the Raspberry Pi Pico environment and basic usage, please refer to the following links:
  • After setting up the environment, connect the sensor and download the example package.

Example

Hardware Connection

Refer to the following diagrams for connection

Pico 2

Run Arduino Pico Demo

  • Navigate to Environment-X6-Sensor\examples\pico\arduino\environment_x6_sensor_test and double-click environment_x6_sensor_test.ino to open the project.

  • Select the chip model and port.

    Arduino Pico 2

  • After uploading, open the serial port monitor, and the relevant information will be output.

Run MicroPython Demo

  • First flash the Raspberry Pi Pico with MicroPython firmware.

  • Navigate to Environment-X6-Sensor\examples\pico\micropython and double-click the environment_x6_sensor_test.py file.

  • Select the development board.

    Mpy Pico 2

  • Select the port for the Raspberry Pi Pico, then run the program.

  • The relevant information will be output in the Shell.