Recommended Project Supplies
Get the right supplies — selected and tested to work with this project.
View Kit
Areas of Science Robotics
Space Exploration
Difficulty
Time Required Short (2-5 days)
*Note: For this science project you will need to develop your own experimental procedure. Use the information in the summary tab as a starting place. If you would like to discuss your ideas or need help troubleshooting, use the Ask An Expert forum. Our Experts won't do the work for you, but they will make suggestions and offer guidance if you come to them with specific questions.

If you want a Project Idea with full instructions, please pick one without an asterisk (*) at the end of the title.

Abstract

The Science Buddies Bluebot Kit contains parts to build four different robots:

  • A motion-activated robot that uses a passive infrared (PIR) sensor
  • A light-tracking robot that uses photoresistors
  • A line-following robot that uses infrared emitter-detectors
  • An obstacle-avoiding robot that uses bump sensors

However, in each project, the sensors are hard-wired to control the robot's motors. This allows the robot to steer left and right based on input from two sensors, but it does not allow the robot to perform more complex behaviors. For example, it cannot back up and turn around, drive through a pre-planned path, or use multiple types of sensors at once. That is where a programmable microcontroller like an Arduino comes in. You can use the Arduino to take readings from multiple sensors and program how the robot should respond. Can you add an Arduino to your Bluebot kit and design an autonomous robot that can drive around your home? You will need to do some of your own research, prototyping, and testing to figure out how to do this. The suggestions below and resources in the Bibliography section will help you get started.

  • Power: you will need a 9V battery and snap connector with barrel jack to power your Arduino (not included in the Bluebot kit).
  • Motors: do not attempt to drive the motors directly from the Arduino's pins! The Arduino's pins cannot supply enough current to drive the motors directly. Your Bluebot kit comes with an L293D H-bridge motor driver chip. This chip allows you to control the speed and direction of two motors. It has pins for two power sources: digital logic (5V from the Arduino) and external power for the motors (6V from your 4xAA battery pack). Be careful not to accidentally short-circuit the 5V Arduino power and 6V battery power on your breadboard! The Bibliography section contains a tutorial for using the L293D with an Arduino.
  • Sensors: as mentioned above, you can use multiple sensors simultaneously. The instructions for the four Bluebot projects linked in the Bibliography section contain more information about each of the sensors included in your kit.
    • Photoresistors: also called photocells or light-dependent resistors (LDRs). Their resistance changes in response to light. Can be used to detect and navigate towards (or away from) light sources.
    • Infrared emitter/detectors: these emit infrared (IR) light and detect when IR light is reflected back. Their range is very short—only a few millimeters. They can be used to detect edges, like a dark line on a light surface, or the edge of a table. They can also be pointed forward and used to detect objects that reflect IR light.
    • Bump sensors: these are lever switches that can detect when the robot bumps into an object.
    • PIR sensor: the type of sensor used in home security systems and motion-activated lights. It detects movement by looking for infrared light (i.e. body heat). Can be used to detect when a person or pet walks in front of the robot.
  • Arduino commands: the following Arduino commands will be useful. See the Arduino Language Reference resource in the Bibliography section for more details.
    • pinMode(): sets the Arduino's pins as inputs or outputs.
    • digitalWrite(): sets the status (high or low) of an output pin. Use this to control the direction of the motors with the H-bridge.
    • digitalRead(): reads the status (high or low) of an input pin. Use this to take readings from digital sensors like the PIR sensor.
    • analogWrite(): generates a pulse width modulation (PWM) signal on an output pin, which rapidly turns the pin on and off. Use this to control motor speed along with the H-bridge.
    • analogRead(): reads an analog value on one of the analog input pins. Use to take readings from analog sensors like a potentiometer or photoresistor.
Bluebot robot chassis with a breadboard circuit and Arduino Uno mounted on top.
Figure 1. A Bluebot with an Arduino and multiple sensors.

Bibliography

General electronics tutorials:

Reference for using an Arduino:

Reference for using the L293D motor driver chip:

Bluebot project instructions with more details about each sensor:

Share your story with Science Buddies!

I did this project Yes, I Did This Project! Please log in (or create a free account) to let us know how things went.

Credits

Ben Finio, PhD, Science Buddies

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Finio, Ben. "Build an Arduino Robot." Science Buddies, 11 Sep. 2020, https://www.sciencebuddies.org/science-fair-projects/project-ideas/Robotics_p031/robotics/build-arduino-robot. Accessed 24 Oct. 2020.

APA Style

Finio, B. (2020, September 11). Build an Arduino Robot. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/Robotics_p031/robotics/build-arduino-robot


Last edit date: 2020-09-11

Materials and Equipment Product Kit Available

  • Arduino must be purchased separately

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.
Project Kit: $99.95
View Kit

Experimental Procedure

For this science project you will need to develop your own experimental procedure. Use the information in the summary tab as a starting place. If you would like to discuss your ideas or need help troubleshooting, use the Ask An Expert forum. Our Experts won't do the work for you, but they will make suggestions and offer guidance if you come to them with specific questions.

If you want a Project Idea with full instructions, please pick one without an asterisk (*) at the end of the title.

Share your story with Science Buddies!

I did this project Yes, I Did This Project! Please log in (or create a free account) to let us know how things went.

Ask an Expert

The Ask an Expert Forum is intended to be a place where students can go to find answers to science questions that they have been unable to find using other resources. If you have specific questions about your science fair project or science fair, our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Ask an Expert

Contact Us

If you have purchased a kit for this project from Science Buddies, we are pleased to answer your questions.

In your email, please follow these instructions:
  1. What is your Science Buddies kit order number?
  2. Please describe how you need help as thoroughly as possible:

    Examples

    Good Question I'm trying to do Experimental Procedure step #5, "Scrape the insulation from the wire. . ." How do I know when I've scraped enough?
    Good Question I'm at Experimental Procedure step #7, "Move the magnet back and forth . . ." and the LED is not lighting up.
    Bad Question I don't understand the instructions. Help!
    Good Question I am purchasing my materials. Can I substitute a 1N34 diode for the 1N25 diode called for in the material list?
    Bad Question Can I use a different part?

Contact Us

Related Links

If you like this project, you might enjoy exploring these related careers:

female robotics engineer adjusting robot

Robotics Engineer

Have you watched "The Transformers" cartoon series or seen the "Transformers" movies? Both shows are about how good and evil robots fight each other and the humans who get in the middle. Many TV shows and movies show robots and humans interacting with each other. While this is, at present, fantasy, in real life robots play a helpful role. Robots do jobs that can be dangerous for humans. For example, some robots defuse landmines in war-stricken countries; others work in harsh environments like the bottom of the ocean and on the planet Mars. At the heart of every robot is a robotics engineer who thinks about what a robot needs to do and works with several engineering disciplines to design and put together the perfect piece of equipment. Read more
electrical engineer aligning laser

Electrical & Electronics Engineer

Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more

News Feed on This Topic

 
, ,
Note: A computerized matching algorithm suggests the above articles. It's not as smart as you are, and it may occasionally give humorous, ridiculous, or even annoying results! Learn more about the News Feed

Looking for more science fun?

Try one of our science activities for quick, anytime science explorations. The perfect thing to liven up a rainy day, school vacation, or moment of boredom.

Find an Activity
Free science fair projects.