Ā
[DIY] Spider Robot(Quad Robot, Quadruped)

The new compiler will cause the floating number calculation problem. I have modified the code already.
Share the MG90 servo versionāāāhttp://www.thingiverse.com/thing:2204279
you can download it and build with MG90 servos.
The all new spiderāāāhttps://youtu.be/bxJC_vvggIc
Correct the Battery model name and dimension.
Open the all of design that including the software, Sketchup, EaglePCB, https://github.com/regishsu/SpiderRobot
Step 2: schematic pdf fileāāāspider_2015ā10ā04-open-v2.pdf
Step 10: picture 1.
Upload the Arduino sketch file which is āspecial danceā included(step13). Someone who are asking about it, they are interested in it.Ā
This is my first project for the 4 legs robot and it took me about 1 year development.
It is a robot that relies on calculations to position servos and pre-programmed sequences of legs.
Iām doing this by handmade way is because of it could be fun and educational for 3D design/printing and robot control.
This is the fourth generation of my design, you can take a look here if you are interested the history.
http://regishsu.blogspot.tw/search/label/0.SpiderR...
Building this project is fun, however, it should take you more time and patient to implement.
Before going to next step, please aware that the soldering tools and 3D printer will be used in this project.
Letās get start and have fun!
Ā
Step 1: Electrics Parts Preparation
9 More Images
Here are the parts:
1x Arduino Pro Mini
1x DC-DC(12ā5v/3A output)
1x HC-06 Bluetooth module(option)
12x SG90 servo(3DOF for 4 legs)
1x 3000mhA Li battery (DC12300, 90x43x17mm)
1x 12V Jack
1x 680 Ohm 1/4 watt 5% Resistor
1x 3mm Blue LED
1x Tactile Switch
1x 5x7cm perfboard
Some male and female pin headers
Small guage wire(Solid or Stranded)
Ā
Ā
Step 2: Make the Main-board
6 More Images
2015ā10ā11
upload the PCB layout image file, you should download the zip file would be better.
Refer to the schematics file, and place all components like the pictures. you can make the board as small as passable.
The main-board that the last one picture is the newest version, just for you reference.
Here are some tips while you are going to building the PCB:
1. Be sure the output voltage of DC-DC module should be 5v before mount to the perfboard.
2. The servos consume a lot of power, almost 3A in full loading condition. Please use more thick wire for āpowerā and groundā traces.
3. Do the āopen/shortā test with the multi-meter for your PCB when you finish the soldering, that is the important process.
4. Using the female pin header instead of solder the modules(Arduino, DC-DC) on the perfboard directly
5. The LED will be on while the āSwitchā turns off. Why I design this way is because I would like to check the power source is ok or not when I plug in the power source like battery or something else, it is a simple way for protection..
6. While you see the LED turns on after connect the 12v battery to the board, congratulation!
Attachments
Ā

![]()
Ā
Step 3: Test the Main-board
Test process:
1. Donāt plug the DC-DC and Arduino Pro Mini into the main-board
2. connect the battery to the 12v-Jack of main-board
3. Check the LED, if LED turns on, that is a good start.
4. Push the POWER-Switch, the LED should be off.
4. Using the multi-meter to check all of +5V and GND pins are correct
5. Push the POWER-Switch back to turn off the power, the LED turns on
6. Plug the DC-DC and Arduino Pro Mini into the main-board
7. Push the POWER-Switch, the LED turns off, but the LED of Arduino Pro Mini turns on
Then power off, and connect a servo to the first row of Leg1 connectors of main-board(pin2 of Arduino)
upload the āservo_testā code to Arduino and you will see the servo sweeps from 0ā180 degree.
If you are here without any problem, that is a great progress!
servo_test source code:
Ā
Ā
Step 4: Building the Mechanical PartsāāāDownload 3D STLĀ Files
This step is going to build the robot mechanical parts, you can print the parts by yourself or ask someone who has 3D printer to help you.
I also open the 3D model design which is design by Sketchup Make version and you can modify it with your great idea.
Download the STL file from http://www.thingiverse.com/thing:1009659
Print parts list:
1x body_d.stl
1x body_u.stl
2x coxa_l.stl
2x coxa_r.stl
2x tibia_l.stl
2x tibia_r.stl
4x femur_1.stl
8x s_hold.stl
Ā
Step 5: 3D ObjectsĀ Printing
And print them out by your 3D printer.
Please check the configuration of 3D printer before start to print because of it will take a long time about 7~8 hours to print them all. Be patient~~~~
There are my print setting:
- The fill densityāāā15%
- Nozzleāāā0.3mm
- Print speedāāā65
you can print these parts separate by color group.
Ā
Step 6: Preparing to Assemable
tear down the parts and check the objects printing quality, and using the sandpaper to polish the surface to make it looks good.
Refer to here to get more information: http://regishsu.blogspot.tw/2015/07/robot-quadruped-robot-re-design-3-round.html
Ā
Step 7: Assemble theĀ Body
Put the battery between the upper body case and lower body case with 4 screws(M3x25mm)
Ā
Step 8: Assemble theĀ Leg
And, install all of servos with legs parts, one leg comes with 3 servos and 4 screws(M1.6x3mm, or glue it anyway)
Notes: 1. Connect to all parts with screws and servos, but do not install the servo rocker arm in this step 2. Be sure the leg direction, refer to the picture 1 Refer to here to get more information:http://regishsu.blogspot.tw/2015/07/robot-quadrupe...
Ā
Step 9: Integrate 4 Legs toĀ Body
connect all of legs to the body, and check all servos and joints are move smoothly.
Ā
Step 10: Connect Servos to the Main-board
Ā
update the picture1 which is wrong pin assignment.
Ā
Place the main-board onto the body-case and use the polymer clay to fix it.
And then, refer to the picture, follow the pin number which mark by pink color to connect all servo wire to the main-board, and green color is present the signal direction of servo wire, yellow connect to āSā, red to ā+ā, brown to ā-ā.
Be sure the servo of legs should match the pin number of main-board and leg direction, otherwise, the legs will get crazyā¦
Ā
Step 11: Locate the Initial Position forĀ Legs
This is an important procedure, the install procedure:
1. upload the ālegs_initā code to Arduino to activate the servos
2. place the legs as the position shows the picture 1, and install the servo rocker arm with screws.
3. tighten all of the screw
legs_init source code:
Attachments
Ā
![]()
Ā
Step 12: Organize theĀ Wires
Then, organize the wires of the servos to make it great looking.
Now, all of hardware installation was finished.








