This repository is a template for mechatronics development using Pi Pico. The repository is pre-configured for VSCode and has a Pi Pico project rep-configured including servo library/examples and libraries for PiicoDev sensors. A folder of MicroPython firmware including brick recovery firmware are provided for easy access. A folder of basic PiicoDev sensor examples are provided with links to more examples.
- Disconnect Pi Pico
- Hold Bootsel button
- Connect Pi Pico to USB
- Side load the correct firmware to the RP1-RP2 drive that appears
- Ctrl + Shift + P or Command + Shift + P
- Select MicroPico: Connect
Note
Bootloaders for all MicroPython compatible controllers source here: https://micropython.org/download/
The Project folder is already configured and setup with the following features:
- All PiicoDev libraries are pre installed
- A custom Servo library is pre installed
- You can add other libraries to the project/lib folder
- You can create Python Scripts in the project/py_script folder and change the import parameter in project/main.py to run your script.
- Blink is loaded by default and several example versions of servo control have been added.
- V02-V05 demonstrates different ways to use the servo library including different approaches to state engines and servo smoothing.
Right click the EXPLORER window and choose upload project to pico or Ctrl + Shift + P or Command + Shift + P and select MicroPico: Upload Project to Pico.
- P1 Precision Temperature Sensor - example code
- P2 Atmospheric Sensor- example code
- P10 Colour sensor
- P13 RGB LED - Example Code
- P14 OLED - Example Code
- P26 3-Axis Accelerometer - example code
- P30 Ultrasonic Ranger - example code
TempeHS Pi Pico Boilerplate by Ben Jones is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International