Build a Go Away Robot – Easy Arduino Starter Kit for Kids
Components and supplies
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
About this project
We wired up the board using the following sketch:

We used a Styrofoam wig head, hollowed out the back and poked some holes through it for various connections:
This video shows how we put it all together:
Update: Someone in the comments asked about how to make the body of the robot so I made this video to show how you can make one yourself!
Code
- Buzzer and LED Activated by Distance Sensor
Buzzer and LED Activated by Distance SensorArduino
Distance is in centimeters.#define trigPin 13
#define echoPin 12
#define buzzer 9 //buzzer to arduino pin 9
#define led 11
void setup()
{ Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer, OUTPUT); // Set buzzer - pin 9 as an output
pinMode(led, OUTPUT);
}
void loop()
{ long duration, distance;
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance < 100)
{ tone(buzzer, 98); // Send 1KHz sound signal...
digitalWrite(led,HIGH);
}
else {
noTone(buzzer);
digitalWrite(led,LOW);
}
Serial.print(distance);
Serial.println(" cm");
delay(500);
}
Schematics
A sketch, breadboard view of our set up for the Arduino and components.
Manufacturing process
- Smart Pen: Real‑Time Handwriting & Movement Tracking with Raspberry Pi and IMU
- Build Sauron: The Semi‑Humanoid Robot – A Complete Arduino Mega 2560 Guide
- Build a Simple Voice Recognition System with C# and Arduino UNO
- Create a Custom Android App to Control Arduino with MIT App Inventor
- RTC Module Essentials: Your Complete Guide to Accurate Timekeeping
- Build a Clap-Activated Switch – A Simple DIY Project for Beginners
- Unlock Powerful Embedded Robotics with RoboDK – Simple Programming for Modern Systems
- Effortless Robot Calibration for Peak Performance
- Master Robot Programming: Step‑by‑Step Guide for Your Next Project
- PACKEX Toronto: Embrace Seamless Automation Today



