Robotic Spider: Complete Guide

Introduction

An archive with code and STL models for the robot is available at spider.zip and stl.zip archive. Code was tested with Arduino IDE v.2. Parts are provided with support for printer, so do not turn support on and remove the support after printing. Support is always a vertical 0.1mm "wall".

The archive should be unpacked where you believe it should be, however, here is my directory structure. Note that archive.zip that you can download in ROS2 sections creates some other forleds belonging to the same tree (but you do not need this folders for a Spider project):

            SnowCron
                my_robots
                     my_robots
                          arduino
                stl
                      spider
        

There are two reasons for this tutorial.

First, 99.99% of online guides take a different approach. Put these parts together, download this (and the link would probably be broken) software, install it, if you can... I want a guide, not a quest.

Second, if you search for robotic spiders videos, most of them are jerky. The reason is simple: they use servo motors, and if you do use servos' built-in commands, they are just "rotate to this position as fast as you can". And as the result, you get your Star Wars inspired robot that move its legs at a fraction of a second, destroying the sense of power and hiding motion algorithm design flaws, too.

So, let's do it right.

A word of apology. No, wait! An unexpected extra bonus!
Originally, this spider was supposed to carry four additional devices (if we talk abour Star Wars, let's call it turbo lasers), and some day I will add them... but right now it is just a spider. So I have electronics, capable of handling four solenoids (like ones used in electro magnetic locks), but those are not connected to anything - yet. Not a problem, you can just not add them: I am talking about transistors, resistors and diodes. Do not solder them in, and the rest of spider will still work fine. But as a bonus, I will include a chapter about building and programming those solenoids...

(C) snowcron.com, all rights reserved

Please read the disclaimer