Getting Started¶
This page walks you through everything you need to get raspbot running on your Raspberry Pi.
Hardware requirements¶
- Yahboom Raspbot V2 robot car (fully assembled)
- Raspberry Pi 3B / 4B / 5 (or compatible)
- Raspberry Pi OS (Bullseye or Bookworm, 32-bit or 64-bit)
- USB-C or barrel-jack power supply for the robot chassis
Enable I2C on the Raspberry Pi¶
The library communicates with the robot's microcontroller over I2C bus 1.
Reboot after enabling.
Verify the bus is up and the robot is detected:
You should see address 0x2B in the output (the Raspbot V2 microcontroller).
If you have the OLED display connected you will also see 0x3C.
Add your user to the i2c group¶
To use I2C without sudo:
Install raspbot¶
Install the core library:
Install optional extras as needed:
To build the documentation locally:
Verify the installation¶
Run this short script on the Pi to confirm I2C communication is working:
If you see a distance reading (even 0 cm before enabling the sensor is fine), the library is
working.
I2C wiring reference¶
The Raspbot V2 uses the standard Raspberry Pi I2C header pins. No additional wiring is required -- the microcontroller is on the chassis PCB.
| Signal | Pi GPIO header pin |
|---|---|
| SDA | Pin 3 (GPIO 2) |
| SCL | Pin 5 (GPIO 3) |
| GND | Pin 6 (or any GND) |
| 3.3 V | Pin 1 (or any 3.3 V) |
The robot's PCB connects directly to the 40-pin header; no jumper wires are needed in the standard Yahboom assembly.
First program¶
Save this as hello_robot.py on your Pi and run it with python hello_robot.py:
Next steps¶
- API Reference -- Robot -- the main facade class
- API Reference -- Motors -- motor control
- Cooperative Tasks guide -- non-blocking loops
- Troubleshooting -- common problems