Human-Computer Interface:Function a Gripper(made by Kirigami) by Wrist Movement Using EMG.

by Divyansh5 in Circuits > Arduino

1048 Views, 4 Favorites, 0 Comments

Human-Computer Interface:Function a Gripper(made by Kirigami) by Wrist Movement Using EMG.

Human-Computer Interface
341A922D-6F89-43F7-AACA-4D408F316C35.jpeg

I made a device which recorded hand signals using an EMG sensor and then output it to a robotic gripper, which I made using kirigami. I coded this project in Python and Arduino. On a larger scale, this EMG gripper, normally used in robotic surgery, could be used as a prosthetic arm or on machines to lift heavy objects such as a mechanical gripper to pick up garbage.

Supplies

1.ESP-32

2.Jumper Wire

3.EMG Sensor (including ECG electrodes)

4.Servo Motor (SG-90)

5.DCPU (note-this can also be done without using the DCPU by doing the connections directly to the ESP-32.)

Connecting the EMG Sensor to the DCPU.

06CA0139-3424-46BD-B1FA-7FBD3A36047F.jpeg

Before starting clip to ESP-32 to the DCPU.Now we need to capture the EMG signals. This will be achieved by connecting the EMG sensor to the DCPU.The connections of the jumper wires will be done in the following way(EMG-DCPU).-:

1. GND -GND

2. 3.3V-Vcc

3. Out-35 (or any of your output prefered pins)

*The whole circuit diagram is given below*

Connecting the Servo Motor to the DCPU

7433B71F-1DFC-4960-94CD-6C32EF0F05B4.jpeg

To move the origami gripper we will be using a servo motor. When we move our wrist up, the servo will rotate and when we put our wrist down , it will come to its initial position. The servo will be connected in the following way(Servo-DCPU)-:

1.Gnd-Gnd

2.Vcc-5v

3.Out-32

Making the Origami Gripper

4C316878-BAAC-4BE9-8BA2-D0794032CABB.jpeg

Ive attached a file with the layout of its design. The straight black lines are the ones which need to be cut and the dotted lines are the lines you need to fold.Get the attachment printed on a thick a4 sheet.

Downloads

Making the Gripper Functional

2391DF33-026D-4176-8B79-D5CF391FC312.jpeg
5B54D88B-C6B1-4916-9D9A-042FC27DC7A7.jpeg
C8730822-B309-48EF-8879-907D09D4A3BA.jpeg

To make the gripper functional we’ll have to put in two strings/threads from the top to the bottom as shown in the figure.

After putting in the strings try pulling both of them and the gripper should close and open. If not, try increasing the size of the holes or reinserting your thread.

Attaching the Servo Motor to the Gripper

94925541-0A59-43D8-90B5-1950DDF37237.jpeg
D7229F3C-148D-4DE4-9E9D-1C36C9159FDA.jpeg
1FE7618C-233F-445C-ACE6-A37B3AF7A23C.jpeg

To build a stable stand for your servo motor and gripper you can use a box. I made an origami box that i used to secure the servo motor and the gripper. You can print out the attachment I’ve given to make the box. (Measurements written in the attachments are wrong so just print it on an A4 sheet without worrying about them.)

After putting the servo motor in position in the box , attach both the threads of the gripper to the holes present in the Servo Motor attachments. Keep the strings tight so that as the servo rotates , the gripper can close.

Downloads

The Final Step and Code

5CE68E6C-BCAF-40AD-849D-B47C1481FCDF.jpeg
1603CAB4-E66B-4ECD-BDDF-4C3BAD54D3D6.jpeg

Attach the electrode cables to the EMG and place the red electrode on the top of your wrist,below your knuckles. Now place the yellow and green electrodes on your forearm. Refer to the photo for exact position.

Finally you have to put in the python and arduino codes and upload them. The codes are provided below.

The project is now ready. After uploading the arduino code open python and run the code. You'll see a graph showing some values on the y-axis. Keep your hand straight and note the initial value on the y axis. It will differ from person to person (for me it was 0.1). After noting the value , edit the python code and put in that number in the variable 'threshold'. Run the code again and you’ll now see the whole project in action.

[Note- For the gripper to work properly and the emg to take correct signals , position yourself away from any turned on electrical switch , charger or device that can interfere with the emg signals.]

Codes