How to Install Libraries

Little Robot programs use three Barigadam libraries. Install them in Arduino IDE to run the course programs and exercises.

Video guide

What you need

  • Arduino IDE already installed
  • Three library files from this course:
Library Download Version Date added Purpose
Barigadam_MotionSensor Barigadam_MotionSensor.zip Not specified in ZIP 2026-09-24 Reading and configuring the motion sensor
Barigadam_ColorSensor Barigadam_ColorSensor.zip Not specified in ZIP 2026-09-24 Reading and configuring color sensors
LittleRobot LittleRobot.zip 1.0.3 2026-09-23 Motors, encoders, line following, and heading-control movement

Downloading LittleRobot requires the access password. The other libraries can be downloaded without a password.

Step 1 — Download the libraries

  1. Download all three .zip files from the table above.
  2. Save them to a folder you can find later (for example Downloads).
  3. Do not unzip the files — Arduino IDE installs libraries directly from .zip.

Step 2 — Install the libraries

  1. Open Arduino IDE.

  2. Go to Sketch → Include Library → Add .ZIP Library…

    Add .ZIP Library menu in Arduino IDE Add .ZIP Library menu in Arduino IDE
  3. Install each library in this order. For every file, open Add .ZIP Library… again and select the next .zip:

    1. Barigadam_MotionSensor.zip
    2. LittleRobot.zip
    3. Barigadam_ColorSensor.zip
  4. Wait until the status bar confirms each library before moving to the next file.

LittleRobot depends only on Barigadam_MotionSensor — install that one first. Barigadam_ColorSensor is a separate library for color-sensor lessons and is not required for LittleRobot to compile.

Additional library for lesson 9 — Servo

The gripper and elevator require Servo by Arduino. It is separate from the three ZIPs above and is not installed with LittleRobot. Open Tools → Manage Libraries…, search for Servo, select the library by Arduino, and click Install.

Lesson 9 uses #include <Servo.h> and separate Servo objects for the two mechanisms.

Step 3 — Check that everything works

  1. Open File → Examples.
  2. Find Barigadam_MotionSensor, LittleRobot, and Barigadam_ColorSensor.
  3. Open Barigadam_MotionSensor → YawPitchRoll. Its first lines should contain BarigadamMotionSensor sensor(0x60);.
  4. Open LittleRobot → LightCalibration.
  5. Select Arduino Mega or Mega 2560 and click Verify for both examples. Both must compile without errors.

If examples appear and the code compiles, the libraries are installed correctly.

Common problems

Problem What to try
LittleRobot fails to compile Install libraries in the correct order, starting with Barigadam_MotionSensor
Library not in Examples Restart Arduino IDE and check Sketch → Include Library — all three libraries should be listed
Add .ZIP Library does nothing Select the .zip file itself, not a folder extracted from it
Wrong board selected Set Tools → Board to Arduino Mega or Mega 2560 (see Arduino IDE setup)

More help: Troubleshooting