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.4 Import library file

2.4 Importing library files

In order to facilitate calling various hardware on the control board, we encapsulate various functions into library files. When using, you only need to call the corresponding functions to quickly realize the corresponding functions. Here we introduce how to Import the library files into Pico 2/Pico.

  1. The import of library files is similar to the establishment of self-starting files in the previous section. First, open the small garage file Pico Robot supporting materials -> Appendix -> Library -> pico_car.py.

image-20220209101644373

  1. Select File - Save As.

image-20220208153107080

  1. Select Raspberry Pi Pico.

image-20220208153117019

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

image-20220209101738745

  1. At this point, the pico_car.py file becomes [pico_car.py]. Here, [ ] means that the file exists inside Pico 2/Pico, and the library file is imported successfully.

image-20220209101817627

Download code Startup automatically
Control LED light

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/中文