Welcome to the Pololu 3pi+ Robot Library repository! This repository contains everything you need to get started with programming and using the Pololu 3pi+ robot with Arduino IDE. The Pololu 3pi+ is a versatile programmable robot designed for educational and hobbyist purposes, featuring various sensors, motors, and a programmable microcontroller.
To get started with using the Pololu 3pi+ Robot Library, follow these steps:
- Driver Setup:
- Download the A-Star Windows Drivers [https://www.pololu.com/file/0J1240/a-star�windows-1.3.0.0.zip] (7k zip) and extract the ZIP file to a temporary folder on your computer
- Arduino IDE Setup:
- In the Preferences dialog, find the “Additional Boards Manager URLs” text box (highlighted in the picture below). Copy and paste the following URL into this box:
- https://files.pololu.com/arduino/package_pololu_index.json
- In the Tools > Board menu, select “Boards Manager…” (at the top of the menu).
- In the Boards Manager dialog, search for “Pololu A-Star Boards”.
- Select the “Pololu A-Star Boards” entry in the list, and click the “Install” button
- Use blink.ino to check if setup is done correctly
- In the Arduino IDE, open the "Tools" menu and select "Manage Libraries...".
- Search for "3pi+".
- Click the Pololu3piPlus32U4 entry in the list.
- Click "Install".
- If you see a prompt asking to install missing dependencies, click "Install all".
include <Pololu3piPlus32U4.h>
using namespace Pololu3piPlus32U4;
OLED display;
Buzzer buzzer;
ButtonA buttonA;
ButtonB buttonB;
ButtonC buttonC;
LineSensors lineSensors;
BumpSensors bumpSensors;
Motors motors;
Encoders encoders;
Menu
.ino- Basic functions (Forward, Backward, Spin-Clockwise, Spin Anti-Clockwise)
- Set speed motors (0-400)
Menu2
.ino- Program routines (0 - 10 instructions, 1 struction is moving forward and rotating)
- Use of proportional control (KRotation, KDistance constants)
LineFollower
.ino- Follow a race track (White line or Black line)
- Use of proportional derivative control (PD Control)
Maze
.ino- Solve a maze with right hand or left hand algorithm
- Data processing for route optimization after first solve
encoders
.ino- Basic encoder usage
- Encoder pulses -> Motor revolutions -> Wheel revolutions -> cm
- Calculation of velocity of motors
OLEDMotors
.ino- Basic usage of motors and OLED display