1.Basic Movement

In this lesson we'll explore the fundamental movements of your Bocobot Car. By the end of this guide, you'll have your car move forward, reversing backward, and turns to the left and right.

 

 

The connection diagram below shows the minimum connection requirement for this lesson.

 

 

Setting Up the Software

If you are totally new to Raspberry Pi Pico / Pico W and CircuitPython. You can follow this video to walk-through on how to program it.

 

 

Once you have got your car assembled, it's time to program it with a little bit of code. We will need to get a few files from our Github repository onto your Raspberry Pi Pico W.

 

We will need to copy the ‘lib’ file inside the Github repository you have downloaded to the Raspberry Pi Pico W.

 

Next, we will need to copy the content of the '01_Basic_Movement.py' file into a file called 'code.py' on your Raspberry Pi Pico W. This script includes the code that tells your Robo Pico Car how to move.

 

 


This '01_Basic_Movement.py' script will allow your Robo Pico Car to move forward, reverse backward, and make sharp turns to both the left and right. 
 

อุปกรณ์ฮาร์ดแวร์