yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Pico Robot Car📖
0.Introduction
  • 0.1 Description of Pico Robot
  • 0.2 Interface Description
1.Assembly steps
  • Assembly video
2.Development environment construction
  • 2.1 Update firmware
  • 2.2 Build environment
  • 2.3 Download code Startup automatically
  • 2.4 Import library file
3.Basic course
  • 3.1 Control LED light
  • 3.2 Onboard temperature sensor
  • 3.3 Passive buzzer
  • 3.4 Breathing light
  • 3.5 Marquee light
  • 3.6 OLED display
  • 3.7 Battery power display
  • 3.8 Servo control
4.Advanced course
  • 4.1 Light sensor
  • 4.2 Sound sensor
  • 4.3 Tracking sensor
  • 4.4 Ultrasonic sensor
  • 4.5 IR control display
5.Robot course
  • 5.1 Car forward
  • 5.2 Car movement
  • 5.3 Singing dancing
  • 5.4 Car tracking
  • 5.5 Edge detection
  • 5.6 Ultrasonic avoiding
  • 5.7 Ultrasounic following
  • 5.8 Light follow
  • 5.9 Voice control car
  • 5.10 Infrared control
  • 5.11 Bluetooth control
6.Battery and charge
  • Battery and charge
Download
  • APP(iOS/Android)
  • Code
  • Instructions Manual
  • Appendix
Download ZIP

Welcome to Pico Robot Car repository

2.3 Download code Startup automatically

2.3 Download code Startup automatically

1. Download the example code

Check the pin diagram of Pico 2/Pico and we know that the control pin of the onboard LED is GPIO25. Here we try to control the onboard LED.

Pico 2:

image-20240909201134029

Pico:

image-20220208111551963

After we successfully connected to Pico 2/Pico in the previous section, select Open -- This computer.

image-20220208111949246

Open the Pico Robot supporting materials -> Appendix -> Course code -> 1. basic course -> 1.On board LED lamp.py.

Click the green Run button, the program starts running, and the Shell window will display %Run -c $EDITOR_CONTENT

image-20220208112320615

At this time, the LED on the PICO board will continuously cycle on and off for one second. If you click the Stop button on the menu or unplug the data cable connected to the computer, the LED will stop flashing.

image-20220208112924154

2. Startup

The above program must be connected to the computer to run. If you want to unplug the data cable to run, you must write the program file to PICO.

The provided routines can be set to start up by the following method.

  1. Continue to the previous step, in the opened 1.On board LED lamp.py file, select File - Save As.

image-20220208115215990

  1. Select Raspberry Pi Pico.

image-20220208115237710

  1. Enter main.py in File name. Note that it must be the file name of main.py to start, and then click Confirm.

image-20220208115332859

  1. At this time, 1.On board LED lamp.py file becomes [main.py], where [ ] means that the file exists inside PICO.

image-20220208115357107

  1. At this time, press the reset button, or restart the Pico 2/Pico development board, and the LED on the board will flash automatically, without the need to run the program through a computer.

     

  • Note that if Pico 2/Pico executes the startup program, the computer will prompt that the development version is running when the program is connected. The following steps need to be performed:
  1. After connecting the data cable, select Raspberry Pi Pico

image-20220208115650901

  1. At this time, the development version is busy. According to the prompt, press Ctrl+C

image-20220208115713126

  1. At this time, the main.py file is no longer executed, and the program can be run through thonny

image-20220208115741302

  • If you want to remove the startup program, after pressing Ctrl+C, click Open--Raspberry Pi Pico--right-click on the main.py file--Delete.

image-20220208145552975

image-20220208145622074

Note, if you cannot set it, please try a few more times, or re-flash the library file according to Section 2.1 to solve it.

Build environment
Import library file

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文