Make: Projects

The Stalker ‘Bot

Using ultrasonic sensors and an Arduino microcontroller, learn to build a robot that can follow a moving object..or even a person!

The Stalker ‘Bot

Gather the parts and follow the basic instructions and you can have a robot capable of following moving objects! With basic coding experience, you can also change the distance at which the robot senses moving objects or the speed the robot moves.

In order to do this project, a basic robot must be built that runs off of two 3-wire VEX servos. A good robot to build is the VEX Squarebot. Instructions for building this can be downloaded from PDF here or with any VEX robotics kit.

Related

Steps

Step #1: Attaching the Ultrasonic Sensors

PrevNext
The Stalker ‘BotThe Stalker ‘BotThe Stalker ‘BotThe Stalker ‘Bot
  • Attach the ultrasonic sensors to the front of the robot side by side
  • Use two screws per ultrasonic sensor, putting nuts on the back to hold the sensor onto the robot
  • Use an allen wrench to spin the screws in
  • Make sure the ultrasonic sensors are facing up with the VEX lettering on the bottom
  • By adjusting the distance between the sensors, you can adjust how big of an object the robot will follow (a larger distance follows a larger object)

Step #2: Attaching Electrical Components

PrevNext
The Stalker ‘BotThe Stalker ‘BotThe Stalker ‘Bot
  • Attach the following components to the robot, holding them down securely:
  • breadboard, Arduino, 6 AA Battery Holder, 1 9 Volt Battery
  • Tape can be used to hold these components to the robot
  • Place the Arduino and Breadboard next to each other to allow for wiring between them
  • For further guidance, see the StalkerBot_Diagram.pdf file in the Files section

Step #3: Wiring

PrevNext
The Stalker ‘BotThe Stalker ‘BotThe Stalker ‘Bot
  • The next step is wiring! Follow the wiring instructions exactly to get a functional robot.
  • Using the StalkerBot_Circuit.pdf file as a reference (available in the Files section), wire each component to the Arduino through the breadboard.
  • Push the tinned ends of the wires (known as jumper wires) into the specified pinhole

Step #4: Programming

PrevNext
The Stalker ‘BotThe Stalker ‘BotThe Stalker ‘Bot
  • Program the finished robot using the code provided in the Downloads section called "StalkerBot_Code.pdf"
  • Create a new Arduino program by going to "File" "New" in the Arduino application
  • Copy the StalkerBot_Code into the new Arduino program
  • Once the code has been moved to Arduino, connect a USB cable from the computer to the Arduino.
  • Click the upload button in the Arduino window to upload the code to the robot
  • be careful: the robot will start running the code as soon as it is uploaded

Step #5: The StalkerBot!

PrevNext
The Stalker ‘Bot
  • The robot is now ready to use!
  • To operate the robot without having a USB connection with the computer, connect the 9 Volt battery to the Arduino power input

Conclusion

After completing this project, you will now have a functioning stalker 'bot! To adjust the distance that it senses objects from, edit the inch values in the Robot Control if loops in the program.


blog comments powered by Disqus

Related Supplies at Maker Shed

Follow

Get every new post delivered to your Inbox.

Join 28,407 other followers