Skip to content

Hand

Implement controller control and random control of the hand.

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

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

This page explains the Hand feature.

Specifically, you will implement:

  • Manual controller control of the hand

  • Random motion control of the hand

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

Part Example (Japanese shop) Notes
SG90 × 2 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/hand/sg90/sg90_plate_1.stl × 2


    Print 2 (same part used on left and right)


    sg90_plate_1


  • smabo-hardware/stl/hand/sg90/sg90_plate_2.stl × 2


    Print 2 (same part used on left and right)


    sg90_plate_2


  • smabo-hardware/stl/hand/sg90/sg90_base.stl × 2


    Print 2 (same part used on left and right)


    sg90_base


  • smabo-hardware/stl/hand/sg90/arm_hand.stl × 2


    Print 2 (same part used on left and right)


    arm_hand

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 (left hand) connector PCA9685 channel 0 Insert so the brown wire (GND) is on the PCA9685's GND side
SG90 (right hand) connector PCA9685 channel 1 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 left arm servo to channel=0, and the right arm servo to channel=1.

Hand wiring diagram

The completed robot looks like this.

smabo with hands

Follow the startup procedure here.

Then open the 'Config' tab in smabo-web.

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

First, since the left and right hand servos are mounted in opposite directions, enable:

  • 'inverse' for 'right_hand' only

Enable inverse for right_hand


Next, enable:

  • 'left_hand' and 'right_hand'

Enable left_hand and right_hand

Steps for manual controller control.

In the 'Config' tab → 'Modes/servos', for left_hand and right_hand, set:

  • 'mode' to 'manual'

Mode set to manual


Adjust servo angles in the 'Servo' tab to move both arms.

Steps for random motion control.

In the 'Config' tab → 'Modes/servos', for left_hand and right_hand, set:

  • 'mode' to 'random'
  • 'group' to 'hands'

Mode set to random


After a moment, both hands will move at random intervals.

This is a terminal node on the roadmap.


smabo has many other features to explore.

If you want to explore other features, pick another page from the roadmap.