Skip to content

ProgrammerJoe93/rpi_pico_test_input

Repository files navigation

RPi Pico Test Input

This is a repo for testing different inputs on the Raspberry Pi Pico. Each input is polled every second.

It's intended as only a personal project, but feel free to use it (See LICENSE for details).

Flashing

  1. Download the latest release
  2. Hold the bootsel button while plugging in the RPi pico
  3. Copy the UF2 file to it

View the serial output

  1. Connect the RPi pico to your PC
  2. Open a serial terminal app on the serial port that it is connected to at a baud rate of 115200
    1. For linux users, one option is to install minicom and run minicom -b 115200 -o -D /dev/ttyACM0
  3. A new log should be printed to your terminal every second

Modifying/Compiling

To play with the code, you will need to clone pico SDK and set the environment variable PICO_SDK_PATH as the path to where you cloned it.

pico_sdk_import.cmake is copied from the SDK mentioned above, so you should check the license terms in the pico-sdk repository before using it.

Compilation

mkdir -p build
rm -rf build/*
cd build
cmake ../
make -j20

Inputs

Currently there are only 2 inputs:

Type Name Connection Description
Digital Switch Pin 20 (GP15), any ground pin Any external switch connected across the pins listed. States open and closed.
ADC Temp ADC4 (internal) The temperature sensor built into the RP2040. Read as potential in mV, output in degrees Celsius.

Output

This application is not intended for testing output, but logs are sent to the USB serial debugger for feedback.

About

A small project for testing inputs on the RPi Pico

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published