Authorized Online Retailers:

Buy from USA Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES ここでご購入を!

Raspberry Pi Pico is a tiny, fast, and versatile board built using RP2040, a brand new microcontroller chip designed by Raspberry Pi in the UK.
Don’t be confused by the name Raspberry Pi Pico. It is quite different from other Raspberry Pi products such as Raspberry Pi 2, 3 and 4 pocket computers which have Linux OS.
Pico does not have any OS, it is actually a low-cost, high-performance micro-controller board with flexible digital interfaces.   In fact, Pico’s functions are more like its competitor Arduino MCU boards.

You can program Pico with C++ and MicroPython. In this tutorial, we focus on MicroPython which is more friendly to beginners.
Step 1  Download and install MicroPython firmware to Pico board:

  1. Download the MicroPython UF2 file from following link:
  2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your Raspberry Pi or other computer. Release the BOOTSEL button after your Pico is connected.
  3. It will mount as a Mass Storage Device called RPI-RP2.
  4. Drag and drop the MicroPython UF2 file onto the RPI-RP2 volume. Your Pico will reboot. You are now running MicroPython.

Step2 Download and Install Thonny Python IDE

  1. Download Thonny Python IDE for your PC from following link(make sure you select correct OS version for your PC):
  2. Run the installation software from the download file.
  3. Now open the Thonny Python IDE, click Run to select MicroPython for Rapsberry Pi Pico as Interpreter :

    Also please select the COM port which your Pico board is connected as photo.After that, click OK to save the setting.
  4.  copy following code and paste them to the coding window:
    from machine import Pin 
    from time import sleep
    led = Pin(25,Pin.OUT)
    while True:
        print("counter is {}".format(n))

    You will see the code in IDE as following

  5. Click the little ► button to run the Python code
  6. Click File ->Save As
    Then select Raspberry Pi Pico as destination
  7. Name the file as, then click OK

Now  the code will automatically run when Pico board is connected to USB power.
Remember, only can be automatically executed. If your python code is saved to other name, it can not be executed automatically.

You will see the LED in Pico board will flash constantly.Congratulations! You have made your first Python program running in Pico!

(see the # comments in each line):

from machine import Pin #import machine library to control GPIO pins
from time import sleep #import time library to use sleep function
led = Pin(25,Pin.OUT) #Set Pin 25 in OUTPUT mode, Pin 25 is connected an internal LED integrated in the board
while True:
    led.toggle() #make pin 25 led flash once 
    print("counter is {}".format(n)) # display flash counter in the terminal
    sleep(1) #delay one second and do next flash

Learn More about parts SKU:2021005900

No. Picture Product Name Link
1 Raspberry Pi Pico Board
2 Servo motor
3 Infrared Sensor Module
4 RFID Module and card
5 Push Buttons and Hats
6 LED(6 x White, 6 x Red, 6 x Yellow, 6x Green)
7 Servo motor
8 Piezo Buzzer Module
9 I2C LCD Display(16×2)
10 Philips Screwdriver
11 Solderless Prototype Breadboard
12 Potentionmeter (10K adjustable resistor)
13 40Pin M to M Jumper Wires
14 20Pin M to F Jumper wires 15cm