Overview
Piper Make is a super easy and fun way to make projects with a Raspberry Pi Pico. It uses blocks just like Scratch so you don't need any programming experience to use it. This guide will take you through the steps of setting up your Raspberry Pi Pico for use with Piper Make and show you how to make a macro pad.
Piper Make uses CircuitPython with a helper library. If you want to see how to use the Pi Pico with CircuitPython without Piper, click below:
Please note that at this time, only the Raspberry Pi Pico is supported by Piper Make. At the time of writing, other RP2040 boards like the Feather RP2040 aren't directly supported.
Page last edited March 08, 2024
Text editor powered by tinymce.
Setting Up Your Raspberry Pi Pico on Piper Make
First, you're going to want to go to Piper Make's website:
You should be greeted by this screen. Unless you want to subscribe to get access to more tutorials, you can just click 'Let's Go!' or the 'x' button on the pop-up.
If you see a different pop-up that says the version of your browser is not supported, update it and try again.
Now, you should click on the box under the 'Tools' section labeled 'Setup my Pico' and they will guide you through the setup. You only need to do this the first time you use Piper Make, but you should probably still do it every so often to keep the firmware up to date.
For this part, you'll need to plug your Pi Pico into your computer with a micro-USB cable. Make sure that your cable can handle power and data since many micro-USB cables are power only.
It should show you this screen first. Click next to start setting up your Pico. These are also the same steps you would use to update the firmware on your Pico even if you've set it up previously.
Now, plug in your Pico, making sure to hold the white BOOTSEL button as you do so. After you've plugged it in, you can release the button.
Now, navigate to this directory and open it. I pressed 'open' in the upper right-hand corner, but different operating systems might have a slightly different button (pretty sure it's in the bottom right-hand corner in Windows).
Now that you've set your Pico up, it's time to learn how to program it. I'd start off with the 'Getting Started' project since it's pretty easy and shows you around Piper Make and your Raspberry Pi.
Now you should be ready to make your own programs on Piper Make. A good one to start off with is the Blink program if you've got an LED and a resistor on hand.
You can also click on the next section and go through an example I've come up with to use your Pi Pico to send keyboard inputs like a macro pad.
Page last edited March 08, 2024
Text editor powered by tinymce.
Two Keyboard Macro Pad
With this project, you will be able to make your Raspberry Pi Pico function as a macro pad and send keystrokes to your computer. In this example, I'll use CTRL+C and CTRL+V, but you can program it to send whatever you want. I'll also only use two buttons, but you should be able to use more if you have them.
First, click on 'New Project'. It should then appear to the right of the button you just clicked. Click on it and it should open a blank programming window.
Start by grabbing the start block from the 'Chip' section and placing it in the workspace. Then, grab the repeat forever loop from the 'Loops' section and connect it to the start block.
Then, grab two if statements from the 'Logic' section and put them in the loop.
After that, you're going to want to put an is pin 0 LOW when pulled UP in the hexagons in each of the if statements. Set the first one to pin 7 and the second one to pin 8. This means that whatever is inside the corresponding if block will run if the button connected to the specified pin is pushed.
Now, go to the 'Actions' tab and take two keyboard press blocks and one keyboard release keys block. Put them all in the first if.
After that, you should set the keys that the two keyboard press blocks activate.
- Set the first block to Control (Left)
- Set the second block to c C
Do the last two steps for the second if block except instead of c C use v V.
Go to the 'Chip' section and take two wait 1 seconds blocks and put them under each keyboard release keys block. Set each of them to 0.5 seconds instead of 1 second. This prevents the key from accidentally being pressed twice.
Now, change the "wait 0.5 seconds" at the bottom of the repeat forever loop to 0. This will make the loop run much faster.
It's time to wire everything up.
- Orange wire - Connect GP7 (10th pin) to the left pin on the first button
- Blue wire - Connect GP8 (11th pin) to the left pin on the second button
- Black wire - Connect GND (8th pin) to the right pin on the second button
- Black wire - Connect the right pin on the first button to the right pin on the second button.
Here's what mine looked like after I hooked everything up.
Now, press the 'Start' button in the upper left-hand corner of the screen. It should put the code on your Pico and run it. If the 'Start' button isn't green, you may have to press the 'Connect' button again to reconnect your Pico.
Now that the code is running, you can highlight some text and press the left button on the breadboard to copy it. To paste it, just press the right button.
Page last edited March 08, 2024
Text editor powered by tinymce.