Robotic Arm Controlled by NES Gamepad

by brunoip in Circuits > Robots

43267 Views, 198 Favorites, 0 Comments

Robotic Arm Controlled by NES Gamepad

SAM_1702.JPG
SAM_1703.JPG
SAM_1708.JPG
SAM_1709.JPG
SAM_1712.JPG
SAM_1715.JPG
SAM_1720.JPG

In this instructable I gonna try to describe how to make a robotic arm with parts from a printer, and control it using a NES gamepad.
It may look like a hard work but I have prepared templates for all the parts and I try to take pictures for all the angles in order to make it simple.
Also it is a really cheap robot, most of the parts come from a dead printer.
I used two PIC16F628A microcontrollers because only one was not enough for all the motors, they are pretty cheap and easy to get instead of a PIC with more pins.

Age group: only me:18+.



Tools and Materials

SAM_1467.JPG
SAM_1544.JPG
SAM_1550.JPG
SAM_1571.JPG
SAM_1574.JPG
SAM_1653.JPG
SAM_1650.JPG
Tools
Not many tools are required, a rotary tool is perfect for cut the metal and the plastic, also if you have a driller it could help with all the holes that you have to do.
For the electronics boards you will need a 30w soldering iron.

Materials
Most of the stuff come fron a dead printer HP660, other models of the printer like the HP670 are almost the same and will be fine. The things you must take from the printer are detailed in the next step.
For controlling the robot I use a regular Nintendo Entertainment System gamepad, it is not an original gamepad, any kind will work, and it is not hacked at all, you won't need to modify it to work with the robot.
From another printer you need the stepper motor that is attached to the belt, because the HP printer use a DC motor for this and they are harder to control.
Three plastic gears are required, two of the same size and one smaller.
The servo in the hand was broken so y took the wires directly from the motor and control it as a regular dc motor.
A block of plumb for using as counterweight, if you cant get one of these you can replace it with any other heavy thing.
Electronic stuff for the boards are detailed in step 11.
Wood: one piece of 54x16 cm, one piece of 11x11 cm and four pieces of  2x3 cm.
Aluminium: one bar of 8 cm and one bar of 20cm

Stuff From the Printer

SAM_1216.JPG
SAM_1499.JPG
SAM_1206.JPG
SAM_1269.JPG
SAM_1265.JPG
SAM_1615.JPG
SAM_1634.JPG
SAM_1659.JPG
DSC01301.JPG
SAM_1637.JPG
SAM_1465.JPG
I used almost everything from the printer.
The plastic and the metal is used to make the plastics/metal parts.
There are 3 motors, 2 steppers and a DC motor, I just used the steppers ones with the gears attached to them.
I also used the cooper rings and the guide of the cartridge.
From the part that moves the paper I cut the first part with the metal gear and the center of the wheels.
Also all the screws can be used in the wood.
Finally take from the printer belt and the small plastic wheel where it rolls.

Small Metal Parts

SAM_1520.JPG
SAM_1523.JPG
DSC01331.JPG
DSC01353.JPG
DSC01362.JPG
DSC01338.JPG
DSC01339.JPG
DSC01344.JPG
DSC01349.JPG
For making this parts I have recycled the metal core of a transformer.
Cut the templates and draw it above the metal. Cut and drill the metal.
Don't forget to paint it for avoiding the corrosion.

Big Metal Parts

SAM_1583.JPG
SAM_1582.JPG
welded.bmp
DSC01424.JPG
DSC01089.JPG
DSC01187.JPG
DSC01225.JPG
DSC01235.JPG
DSC01257.JPG
DSC01306.JPG
DSC01311.JPG
DSC01355.JPG
DSC01372.JPG
DSC01248.JPG
Like the step before I use the templates for cutting the metal but this time the metal have to be stronger. The metal of the chassis of the printer will be great for this.
There is only one piece that is welded. Since I have no soldering tools I send it to a workshop. It is just a small welding so they did it for free.
Remember that you have to paint all this parts too.

Plastic Parts

SAM_1195.JPG
SAM_1197.JPG
SAM_1212.JPG
SAM_1200.JPG
SAM_1604.JPG
SAM_1526.JPG
SAM_1528.JPG
SAM_1530.JPG
SAM_1532.JPG
SAM_1534.JPG
For making the plastics parts you have to find straights parts on the plastic of the printer and cut them from there using the templates.
There is just one part that is critical and have to be done carefully. This is the one where the big stepper motor is attached. You have to cut it without avoid the bearer of the plastic gear.

Making the Wooden Base

DSC01470.JPG
DSC01070.JPG
DSC01078.JPG
DSC01102.JPG
DSC01104.JPG
DSC01106.JPG
DSC01113.JPG
DSC01114.JPG
DSC01088.JPG
DSC01116.JPG
DSC01095.JPG
DSC01090.JPG
DSC01093.JPG
DSC01125.JPG
DSC01129.JPG
DSC01134.JPG
DSC01315.JPG
DSC01140.JPG
DSC01098.JPG
Nail two of the small wood on one side of the base.
Then measure the length of the guide and nail the other two.
Polishing the ends of the guides and screw them in the small wood. You can use the screws of the printer.
Ensure that the distance between the guides is slightly larger than the size of the base of the robot.

Assembling the Hand

SAM_1475.JPG
SAM_1477.JPG
SAM_1512.JPG
SAM_1513.JPG
SAM_1514.JPG
SAM_1508.JPG
SAM_1506.JPG
SAM_1505.JPG
SAM_1504.JPG
SAM_1489.JPG
SAM_1487.JPG
SAM_1486.JPG
SAM_1488.JPG
SAM_1485.JPG
Take two of the plastic parts labeled P1 and glue one in the bottom and one in the top of one of the big plastic gears. Be sure that you are gluing in the center of the gear.
Repeat it with the other gear. The small one is glued in the servo.
Then take other two P1 and screw them to this.
Put this parts together and measure the distance between the center of the gears. Now you know where you have to drill in the P4 and P5 parts and join them using a small plastic spacer.
Now drill the holes for your servo and finish the assembly of your gripper.

Assembling the Elbow

SAM_1439.JPG
SAM_1447.JPG
SAM_1497.JPG
SAM_1498.JPG
SAM_1494.JPG
SAM_1495.JPG
SAM_1496.JPG
SAM_1492.JPG
SAM_1493.JPG
Start screwing together the M1 and M5 metal parts and then the small stepper motor from the printer.
Use the two M3 parts to attach the black plastic gear that come with the stepper motor with the M2 part.
Pass a shaft through the black gear and the holes of the M1 and screw it to the aluminum in order to finish this section.

Assembling the Shoulder

SAM_1594.JPG
SAM_1602.JPG
SAM_1601.JPG
SAM_1617.JPG
SAM_1621.JPG
SAM_1622.JPG
SAM_1623.JPG
SAM_1624.JPG
SAM_1625.JPG
SAM_1607.JPG
SAM_1611.JPG
SAM_1656.JPG
SAM_1667.JPG
SAM_1699.JPG
SAM_1671.JPG
SAM_1673.JPG
Start putting together the plastic tubes with the welded part and srew it in one side of the wood. Then insert the metal gear inside of the plastic tubes and fix it with a screw in the end.
Now you have to measure how tall is it and make two custom metal parts in order to attach the big stepper motor to the metal gear.
Put the P3 parts in the back of the wood.
Attach your counterweight to the end of your aluminium and screw it to the shaft of the metal gear using the P2 parts from the top and a metal rod from the bottom.

Final Assembly

SAM_1585.JPG
SAM_1586.JPG
SAM_1587.JPG
SAM_1630.JPG
SAM_1589.JPG
SAM_1588.JPG
SAM_1627.JPG
SAM_1676.JPG
SAM_1683.JPG
SAM_1687.JPG
Install the motor and the wheel of the belt. The motor should be at the beginning of the horizontal guides and the wheel should keep the belt straight.
Put the back of the arm in the guide of the back and secure the front to the cooper tubes using two plastics zips.
Using a small piece of metal attach the belt to the arm.

Electronic Boards

SAM_1647.JPG
SAM_1646.JPG
SAM_1460.JPG
SAM_1640.JPG
SAM_1562.JPG
SAM_1561.JPG
SAM_1643.JPG
SAM_1644.JPG
SAM_1645.JPG
PLAQUETA NES.bmp
Main board nes.PNG
Aux board nes.PNG
puente H.bmp
Materials
2 pic16f628a
3 uln2003
1 7805
1 bridghe rectifier
3 10k resistors
2 4k7 resistors
2 1k resistors
1 led
1 nes gamepad connector
2 100nf capacitor
1 100uf capacitor
1 12 volt 2 ampere power suply

I made the boards using the ironing method, the small one could be done from a regular bread board. The small board works as a stepper motor driver and is connected to the main board.

Programming

picnes.bmp
For programing the PICs I used a JDM programmer and the WinPic 800 software. The hex file called Main is for the pic in the main board and the one called Aux is for the small board.

Running

SAM_1717.JPG
SAM_1712.JPG
This robot is really easy for control, and probably is not the first time you use a NES gamepad.
We use A and B buttons for opening and closing the hand. Left and Right button for horizontal movement.
For the vertical movement we have two motors but one up button and one down button, so I decided to use the select button to switch between them.
Take a look at the videos if you have any doubt.