Spider Robot using Arduino
Introduction
Here is a new tutorial to guide you step by step while making this kind of super amazing robotics projects, which is the "spider robot" or a "quadruped robot."
This project is so handy to make specially after getting the customized PCB that we’ve ordered from JLCPCB to improve the appearance of our robot and also there is enough documents and codes in this guide to allow you create your spider robot easily.
What Is a "Spider Robot?"
Quadruped robot since it has four legs and make its movements using these legs, the movement of each leg is related to the other legs in order to identify the robot body position and also to control the robot body balance.
Servo Motors
A servomotor as defined in Wikipedia, is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration.[1]It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors.
Components
-
- Download gerber file here
-
- The PCB that we've order it from JLCPCB
-
- 12 Servo motors as you remember 3 servos for each leg : https://amzn.to/2B25XbG
-
- One Arduino Nano : https://amzn.to/2MmZsVg
-
- HC-06 Bluetooth module : https://amzn.to/2B1Z3CY
-
- One OLED Display screen : https://amzn.to/2OySnyn
-
- 5mm RGB LEDs : https://amzn.to/2B56hq3
-
- Some header connetcors : https://amzn.to/2nyZg7i
-
- And the robot body peaces that you need to print them using a 3D printer
The Android App
Talking about the android up it allows you to connect to your robot through Bluetooth and make forward and backward movements and left right turnings, it allows you also to control the robot light color in real time by picking the desired color from this color wheel.
You can download the android app for free from this link over :here
The Arduino Code and Test Validation
Now we have the robot almost ready to run but we need to set up the joints angles first, so upload the setup code which allows you to put each servo in the right position by attaching the servos in 90 degrees do not forget to connect the 7V DC battery in order to run the robot.
Code
Next we need to upload the main program to control the robot using the android app. Download the .ino file here.