How to Make Wireless / Gesture Control Robotic Hand

by Webotricks in Circuits > Robots

5 Views, 0 Favorites, 0 Comments

How to Make Wireless / Gesture Control Robotic Hand

image (6).png

In this project; 3D robot hand assembly, servo control, flex sensor control, wireless control with nRF24L01, Arduino receiver and transmitter source code are available. In short, in this project we will learn how to control a robot hand with a wireless glove.

image (6).png

In this project; 3D robot hand assembly, servo control, flex sensor control, wireless control with nRF24L01, Arduino receiver and transmitter source code are available. In short, in this project we will learn how to control a robot hand with a wireless glove.




3D Models of the Hand and Forearm

The hand is part of an open-source project called InMoov. It's a 3D-printable robot, and this is just the hand and forearm assembly. For more information, visit the official InMoov website.

Thanks to InMoov -- http://inmoov.fr/ - http://inmoov.fr/hand-and-forarm/




Assembly of Parts

Assembly of robotic arm parts is very detailed and complex, so you can visit the "Assembly Sketches" and "Assembly Help" pages in the InMoov website for more details on assembly. it is explained very thoroughly on the InMoov website. Or you can watch the video I shared.

  1. http://www.inmoov.fr/assembly-sketchs/
  2. http://inmoov.fr/hand-and-forarm/

When assembling the fingers, make sure the parts are oriented correctly before gluing. Keep all servo motors at 10 or 170 degrees before attaching the servo pulleys to the servo motors. When mounting the servo pulleys, keep fingers in the closed or opened position (according to your servo angles). Then wrap around the servo pulley until the braid wires or strings becomes stretched.




Connections of Hand (Receiver)

At this point, the servos should already be mounted into the forearm. To connect them to the power supply and Arduino, you can use a small breadboard.

  1. Remember to connect the negative on the breadboard to the Arduino's GND. All the GNDs in a circuit need to be connected for it to work.
  2. I recommend using the power adapter for the nRF24L01+ module. Otherwise, communication may be broken due to insufficient current.
  3. If you encounter the these problems: vibration in servo motors, servo motors not working, communication breakdown and in similar situations, supply your Arduino board with external power (like USB).
  4. If you used different pins than pins shown in below, change them in codes.

Connections of the Servo Motors:

  1. Servo-1 connect to the analog 01 (A1) of the Arduino.
  2. Servo-2 connect to the analog 02 (A2) of the Arduino.
  3. Servo-3 connect to the analog 03 (A3) of the Arduino.
  4. Servo-4 connect to the analog 04 (A4) of the Arduino.
  5. Servo-5 connect to the analog 05 (A5) of the Arduino.

Connections of the nRF24L01 Module:

  1. VCC connect to the +5V of the Arduino.
  2. GND connect to the GND of the Arduino.
  3. CE connect to the digital 9 pin of the Arduino.
  4. CSN connect to the digital 10 pin of the Arduino.
  5. SCK connect to the digital 13 pin of the Arduino.
  6. MOSI connect to the digital 11 pin of the Arduino.
  7. MISO connect to the digital 12 pin of the Arduino.




Connections of the Glove (Transmitter)

The flex sensors require a circuit in order for them to be compatible with Arduino. Flex sensors are variable resistors, so I recommend using a voltage divider. I used 10K resistor.

  1. The main GND (ground) wire connected to all individual GND wires from the sensors, gets connected to the GND of the Arduino. The +5 V from the Arduino goes to the main positive voltage wire. The wire from each flex sensor is connected to a separate analog input pin via the voltage divider.
  2. I soldered the circuit onto a small PCB, one that could be easily mounted onto the glove.You can build the circuit on the small breadboard instead of the PCB.
  3. You can use 9V battery for circuit of the glove.
  4. If you used different pins than pins shown in below, change them in codes.

Connections of the flex sensors:

  1. Flex-1 connect to the analog 01 (A1) of the Arduino.
  2. Flex-2 connect to the analog 02 (A2) of the Arduino.
  3. Flex-3 connect to the analog 03 (A3) of the Arduino.
  4. Flex-4 connect to the analog 04 (A4) of the Arduino.
  5. Flex-5 connect to the analog 05 (A5) of the Arduino.




Source Code of the Project

For the source code to work correctly, follow the recommendations:

  1. Download the RF24.h library and move it to the Arduino libraries folder. https://github.com/maniacbug/RF24
  2. After the flex sensors are connected o the glove, read and note the minimum and maximum values that each flex sensor has detected.
  3. Then enter these values into the transmitter (glove) code.
  4. Keep all servo motors at 10 or 170 degrees before attaching the servo pulleys to the servo motors.
  5. When mounting the servo pulleys, keep fingers in the closed or opened position (according to your servo positions).
  6. Then wrap around the servo pulley until the braid wires becomes stretched.
  7. Move all the fingers to the closed and opened position by checking the servo motors one by one.
  8. Then get the best angles for servo motors (servo angles while fingers closed and opened).
  9. Enter the servo motors angles and flex sensor values to the transmitter code as follows.

flex sensor min. value, flex sensor max. value, servo min. angle, servo max. angle

Things Used in the Project

Things used in this project

Hardware component

Arduino Nano×    2   

Product Link:https://www.webotricks.com/product/arduino-nano-board-soldered-aQt1nX

nRF24L01+ Transceiver Module×    2   

Product Link:

nRF24L01+ Adapter×    2   

Product Link:https://www.webotricks.com/product/12v-1-amps-to-5amps-power-adapter-or-power-supply-QFypkS

MG996R Servo Motor×    5   

Product Link:https://www.webotricks.com/product/mg996-plastic-gear-servo-motor-360-rotation-VJt9dj

4.5 Inch Flex Sensor×    5 

Product Link:  

Resistor 10k ohm   

Product Link:

Resistor 10k ohm×    5   

Product Link:

18650 3.7V Battery×    2   

Product Link:https://www.webotricks.com/product/18650-37v-2000-lithium-ion-rechargeable-cell-rmD7Td

18650 Battery Holder×    1   

Product Link:https://www.webotricks.com/product/18650-2-cell-black-plastic-storage-box-cell-holder-BBRKc2

9V battery (generic)  

Product Link:  https://www.webotricks.com/product/9v-hw-high-quality-battery-IDCzhe

9V Battery Clip   

Product Link:https://www.webotricks.com/product/9v-hw-battery-or-battery-with-dc-pin-ntWCTD

 Jumper Wires×    1  

Product Link:  https://www.webotricks.com/product/jumper-wires-20cm-40-pieces-pack-xsuQmQ

Mini Breadboard×    3   

Product Link:https://www.webotricks.com/product/840-points-solderless-breadboard-test-LaekUN

Hand tools and fabrication machines

Product Link:https://www.webotricks.com

Gloves

Product Link:https://www.webotricks.com

String / Braid Line

Product Link:https://www.webotricks.com

Electronic Drill + Dremel Tool

Product Link:https://www.webotricks.com

Hot glue gun (generic)   

Product Link:https://www.webotricks.com

Cable Ties

Product Link:https://www.webotricks.com

Super Fast Adhesive

Product Link:https://www.webotricks.com

Rubber / Tire or Spring

Product Link:https://www.webotricks.com

Steel Wire or Filament

Product Link:https://www.webotricks.com

Ender 3 Pro 3D Printer

Product Link:

Screws Nuts Assortment Kit

Product Link:

Code

//Receiver Code (Hand) - Mert Arduino and Tech

#include <Servo.h> //the library which helps us to control the servo motor
#include <SPI.h> //the communication interface with the modem
#include "RF24.h" //the library which helps us to control the radio modem

//define the servo name
Servo myServo1;
Servo myServo3;
Servo myServo4;
Servo myServo2;
Servo myServo5;

RF24 radio(9,10); /*This object represents a modem connected to the Arduino.
Arguments 9 and 10 are a digital pin numbers to which signals
CE and CSN are connected.*/

const uint64_t pipe = 0xE8E8F0F0E1LL; //the address of the modem,that will receive data from the Arduino.

int msg[5];

void setup(){

//define the servo input pins
myServo1.attach(15); //A1
myServo2.attach(16); //A2
myServo3.attach(17); //A3
myServo4.attach(18); //A4
myServo5.attach(19); //A5
radio.begin(); //it activates the modem.
radio.openReadingPipe(1, pipe); //determines the address of our modem which receive data.
radio.startListening(); //enable receiving data via modem
}


void loop(){
if(radio.available()){
bool done = false;
while (!done){
done = radio.read(msg, sizeof(msg));

myServo1.write(msg[2]); //A1
myServo2.write(msg[4]); //A2
myServo3.write(msg[3]); //A3
myServo4.write(msg[1]); //A4
myServo5.write(msg[0]); //A5
}
}
}


Schematic

transmitter-circuit_60LW5OV7kl (1).jpg
receiver-circuit_Jl8Q5QmI8s (1).jpg