Arduino Computer Vision Robot Arm

by pachytrance in Circuits > Arduino

16463 Views, 72 Favorites, 0 Comments

Arduino Computer Vision Robot Arm

IMG_0004.JPG
IMG_0047.JPG
Computer Vision Robot Arm

The main idea with this instructable was just make a simple 3DOF robot arm that collect objects and place them in the right place.

Materials:

4 servo SG90

MDF 4mm

Arduino Nano

Jumpers

Laptop

Glue

Nylon

Sketch

IMG_0008.JPG
IMG_0007.JPG

First of all I just made a few drawings looking for the size of the links and the effector.

a1 = 10cm

a2 = 8.5cm

a3 = 10cm

But it's easy for you because I used Rhino to model the final structure, and then I did a laser cut.

****Attached vector files if you want to use them***

Solve the Puzzle

IMG_0029.JPG
IMG_0030.JPG
IMG_0027.JPG
IMG_0028.JPG
IMG_0035.JPG
IMG_0039.JPG
IMG_0041.JPG
IMG_0031.JPG
IMG_0032.JPG
IMG_0036.JPG
IMG_0037.JPG
IMG_0033.JPG
IMG_0034.JPG
IMG_0043.JPG
IMG_0042.JPG

It is completely easy to assemble the cutted parts, just follow the pictures, they show where to place the servos.

Finishing the Robot

IMG_0002.JPG
IMG_0046.JPG
IMG_0044.JPG
IMG_0045.JPG
IMG_0001.JPG

I just used a little bit of nylon for the effector, as you can see in the pictures.

Computer Vision

IMG_0003.JPG
Computer Vision Robot Arm

In the cad files I attached early, you can see the structure for the webcam. The cam is connected to matlab and this is the process:

1. You've got to install the driver in matlab

2. Then install the arduino package for matlab that let you program the arduino.

3. Once you have installed the webcam driver and the arduino the code works capturing a snapshot and then analyze it.

4. The software divide the image in 3 layers R, G and B.

5. Using inverse cinematic the webcam gives to arduino the coordinates

where the color is and then the robot goes to that place and take the object.

6. Finally i decided where the robot leaves the object.

I attached the code explained. Sorry, only spanish.

that's all. sorry for my english.

Downloads