The Industrial Grade Artificial Intelligence Robot!
Here you will learn how to build a very sturdy robot to take video of your house when you are not home. I built this robot to show people how to build cool robots without spending too much money. Most of the materials in this robot is recyclable and easy to build.
The robot we will be building will be able to avoid objects, take video and move in random patterns. This way of moving can make the robot enter hallways and doorways without being too predictable like most robots. Another cool feature about this AI robot is its body is made out of metal so it is very sturdy and strong.
Now let's begin to build the house-hold robot that will change the way of home security!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Parts List!
For building this robot you will need many parts so that is why I have added a list of parts you will need to build the robot. Please note that there may be more parts involved but I have only added the bare-minimum things you will need to assemble the metal robot.
1. Arduino (I used an arduino uno)
2. L298N H-Bridge
3. Camera (mine is from the syma X5C drone) - BUY IT HERE!
4. Ultrasonic Sensor (HC-SR04)
5. One Dual USB Output Powerbank or two single output power banks
6. Aluminum soda cans
7. Two sturdy metal cylinders
8. Several jumper wires
9. Two dc motors
10. Two large wheels and two small wheels
11. Two usb cables (one should be cut leaving + and - terminals exposed)
These are the required materials but you may need some extra parts such as more plastic or more metal.
Step 2: Building the Robot
First, you will need to glue/weld your two metal cans together to create a sturdy body for the robot. Then, glue your two motors on to the edge of your robot body. Make sure the motors are geared so they have enough torque to move on the ground.
After your motors are attached, add two front wheels and add wheels to your motor so it looks like the picture above. Flip the robot over then drill two holes for the H-Bridge. Screw in the H-Bridge circuit board and arduino to the metal cans. The two circuit boards should not be loose.
Lastly, it's time to install the sensor. Glue the ultrasonic sensor to the front wheels. Make sure the sensor is facing forward and nothing is obstructing its view. Now connect female to male jumper wires to the sensor. These wires should be glued down to the metal so they don't get tangled in the other components.
Glue a button anywhere on the robot, solder two wires to the pins and make it easily accessible. Glue your camera on top of the robot and it should be slightly angled upwards.
Step 3: Wiring
Now things will get messy with all the wires so try to zip tie wires beforehand. I forgot to zip tie the wires so that is why my robot cable management looks a little sloppy.
Wiring diagram is pictured above but if it is hard to understand I have it typed below! ↓
| in1=pin 8 on arduino | UltraSonic Trig Pin = Pin 13 on Arduino
| in2=pin 9 on arduino | UltraSonic Echo Pin = Pin 12 on Arduino
| in3=pin 10 on arduino | Camera yellow/orange wire = Pin 4 on Arduino
| in4=pin 11 on arduino | All Ground connects to arduino ground pin (GND)
| Enable 1=pin 3 on arduino | +12V on H-Bridge connects to 5V on powerbank
| Enable 2=pin 4 on arduino | Reset Button connects to" GND" pin and "RES" pin on Arduino
Step 4: Programming
Let's begin to program the robot. Before we do that, we need to cut a USB cable so only the red and black wires remain. The red cable should be stripped and connected to 12V terminal of H-Bridge and the black wire should be stripped and connected to GND of the H-Bridge.
Plug a USB cable into your arduino and upload the arduino code provided below. This code is made by me and feel free to suggest me any improvements I can do in the code as this robot is still only a prototype.
The robot is now finished and all you have to do is plug the Arduino USB cable and H-Bridge USB cable into a portable power bank and watch your robot speed away.
Step 5: Final Adjustments
I cut a piece of aluminum from a soda can and I glued it over the robot to protect the power bank and H-bridge from damage such as objects thrown on it or if the robot tips over.
Also, to turn on the camera press the reset switch a couple times until the camera LED starts blinking red. This means the camera is recording and is ready to move.
The robot is now finished and you now have your very own robot which has its own artificial intelligence.
Step 6: What I Would Do Differently Next Time / Improvements
One thing to note is that I was originally planning on building a robot to clean my house but that did not work properly so I had to change my idea. As you can see above it has a sponge to clean and remove dust from the floor. It didn't work out because when the robot was moving it would drag the sponge against the floor and the attachment to the servo would always fall off. That is why I had to remove that part.
This robot sometimes has trouble avoiding walls because the sensor only looks forward. This can be fixed by adding a servo to move the sensor left and right every couple of seconds. If you plan on doing this make sure you change the code because I did not include the code for that.
Next time if I get time to fix the robot I would fix the camera because after a couple times I started up the robot, the camera wouldn't even start recording. I still don't know why It did this but I found a way to manually start the camera. You can do this by pressing the reset switch rapidly until the camera LED starts blinking.
After reading all the negative remarks about this robot, you may be wondering why I built this robot if it is not perfect but I wanted to share my experience of the basics of robot building.
This is a prototype and is meant to show people that if you have your mind set on building one thing it probably won't be the exact thing you are thinking of, such as my first idea was a cleaning robot the end result was a security robot. I hope you enjoyed reading this page as much as I enjoyed building the robot and I hope you will also get a chance to build a robot like the one I showed in this article.
Also, feel free to leave me any suggestions or improvements about my robot or anything else in the comments section.