Skip to content

Exploring <Pololu3piPlus32U4.h> library with Pololu 3pi+ robot

Notifications You must be signed in to change notification settings

Ric4rd1/Pololu-3Pi-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pololu 3pi+ Robot Library 🤖

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.

image

Getting Started ⚡

To get started with using the Pololu 3pi+ Robot Library, follow these steps:

  1. Driver Setup:
  1. 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

Pololu3piPlus32U4 library 📚

Installation

  1. In the Arduino IDE, open the "Tools" menu and select "Manage Libraries...".
  2. Search for "3pi+".
  3. Click the Pololu3piPlus32U4 entry in the list.
  4. Click "Install".
  5. If you see a prompt asking to install missing dependencies, click "Install all".

Usage

include <Pololu3piPlus32U4.h>
using namespace Pololu3piPlus32U4;
 
OLED display;
Buzzer buzzer;
ButtonA buttonA;
ButtonB buttonB;
ButtonC buttonC;
LineSensors lineSensors;
BumpSensors bumpSensors;
Motors motors;
Encoders encoders;

Contents 🎮

  • 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

About

Exploring <Pololu3piPlus32U4.h> library with Pololu 3pi+ robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages