Skip to content

Robot Arm

Required setup: smabo-app + smabo-esp32

This page is the guide for the 'Robot Arm' node on the roadmap below.

This guide assumes you have completed the smabo-esp32 setup.

This page explains the Robot Arm feature.

Specifically, you will implement:

  • Manual controller control of the robot arm

In addition to the parts from smabo-esp32, you need the following.

Part Example (Japanese shop) Notes
SG90 × 4 link Compatible alternatives OK, but if the horn size differs from the genuine part, the printed parts will not fit well.
In that case, you may need to trim the horn or modify the 3D model.

Print the newly added parts on your 3D printer.

Because slicer software varies by printer model, only key points are noted here rather than step-by-step slicer instructions.


Print the following parts oriented as shown in the images.

  • smabo-hardware/stl/arm/sg90/sg90_1_L.stl sg90_1_L

  • smabo-hardware/stl/arm/sg90/sg90_1_R.stl sg90_1_R

  • smabo-hardware/stl/arm/sg90/sg90_2.stl sg90_2

  • smabo-hardware/stl/arm/sg90/sg90_3_concave.stl sg90_3_concave

  • smabo-hardware/stl/arm/sg90/sg90_3_convex.stl sg90_3_convex

  • smabo-hardware/stl/arm/sg90/sg90_4_concave.stl sg90_4_concave

  • smabo-hardware/stl/arm/sg90/sg90_4_convex.stl sg90_4_convex

  • smabo-hardware/stl/arm/sg90/sg90_5_concave.stl sg90_5_concave

  • smabo-hardware/stl/arm/sg90/sg90_5_convex.stl sg90_5_convex

  • smabo-hardware/stl/arm/sg90/sg90_5_hand.stl sg90_5_hand

  • smabo-hardware/stl/base/pca9685_stopper_l.stl

    • The same part that held the PCA9685 on the back.

    pca9685_stopper_l


  • smabo-hardware/stl/base/pca9685_stopper_r_top.stl × 2

    • The same part that held the PCA9685 on the back.
    • The same part is used on the left and right, so print 2.

    pca9685_stopper_r_top

Assemble the required parts as shown in the video below.

Note: the video also includes parts printed in previous steps.

Wire according to the tables below.

In the tables below, "Point A" and "Point B" are directly connected in the circuit.

Point A Point B Notes
Battery box (+) Breadboard + rail (right side) From here on, the right side is the 6 V rail
Battery box (-) Breadboard - rail -
Point A Point B Notes
ESP32 3.3V Breadboard + rail (left side) From here on, the left side is the 3.3 V rail
ESP32 GND Breadboard - rail -
Point A Point B Notes
PCA9685 V+ Breadboard + rail (right side) Servo power (6 V)
PCA9685 VCC Breadboard + rail (left side) Logic power (3.3 V); SDA and SCL also use this voltage
PCA9685 SDA ESP32 pin set in config.json i2c/sda Default pins:
- config.esp32-classic.json: GPIO 18
- config.esp32s3-devkitc1.json: GPIO 11
PCA9685 SCL ESP32 pin set in config.json i2c/scl Default pins:
- config.esp32-classic.json: GPIO 5
- config.esp32s3-devkitc1.json: GPIO 10
PCA9685 GND Breadboard - rail -
Point A Point B Notes
SG90 (arm joint 1) connector PCA9685 channel 3 Insert so the brown wire (GND) is on the PCA9685's GND side
SG90 (arm joint 2) connector PCA9685 channel 4 Insert so the brown wire (GND) is on the PCA9685's GND side
SG90 (arm joint 3) connector PCA9685 channel 5 Insert so the brown wire (GND) is on the PCA9685's GND side
SG90 (arm joint 4) connector PCA9685 channel 6 Insert so the brown wire (GND) is on the PCA9685's GND side

The wiring diagram for the ESP32-DevKitC (with the defaults in config.esp32-classic.json) is shown below.

Note: with the default settings, connect the arm servos to channel=3, channel=4, channel=5 and channel=6, starting from the joint at the base of the arm.

Robot arm wiring diagram

The completed robot looks like this.

smabo with the robot arm

Follow the startup procedure here.

Servo settings can be changed in the 'Modes/servos' section of the 'Config' tab in smabo-web.

Enable:

  • 'arm_joint_1', 'arm_joint_2', 'arm_joint_3' and 'arm_joint_4'

Enable arm_joint_1 to 4

Steps for manual controller control.

In the 'Config' tab → 'Modes/servos', for arm_joint_1 to 4, set:

  • 'mode' to 'manual'

Mode set to manual


Adjust servo angles in the 'Servo' tab to move the arm.

Next, the following node on the roadmap is explained: