Mobile Robotic Arm Using PHIRO + Arduino
by RobotixUSA in Circuits > Arduino
2218 Views, 3 Favorites, 0 Comments
Mobile Robotic Arm Using PHIRO + Arduino
![DSC_0228 - Copy - Copy.JPG](/proxy/?url=https://content.instructables.com/FPS/KRAD/IHDUIQP4/FPSKRADIHDUIQP4.jpg&filename=DSC_0228 - Copy - Copy.JPG)
We're back with another tutorial to show you how to turn PHIRO Pro into a cool mobile robotic arm that can pick and place stuff! Similar to our previous PHIRO Arduino Color sensor instructable, we are going to use Pocket Code on an Android phone to simultaenously control PHIRO and Arduino wirelessly via Bluetooth. By the way, if you're lucky, you can still grab PHIRO Pro for an awesome low price on Kickstarter here.
What You Wil Need
- PHIRO Pro - currently available for pre order on Kickstarter (https://www.kickstarter.com/projects/2074714954/phiro-a-smart-robot-for-kids-learn-to-code-in-5-wa)
- Arduino Uno
-
HC-05 Bluetooth Module
http://www.amazon.com/JBtek-Wireless-Bluetooth-Tr... -
Arduino Motor Driver
http://www.ebay.com/itm/For-Arduino-UNO-MEGA2560-... -
9V Battery
Any 9 volt battery wll do. This is to independently power the Arduino board and the components connected to it. http://www.ebay.com/itm/For-Arduino-UNO-MEGA2560-... -
Connecting Wires
Some good jumper wires to ease your connections to the board! http://www.amazon.com/Gikfun-Dupont-Male-Male-Fem... -
Android Smartphone with Pocket Code app
Pocket Code is a great educational app built for Android that can communicate to PHIRO Pro and Arduino simultaneously via Bluetooth.
Uploading Standard Firmata to Arduino
![comport.png](/proxy/?url=https://content.instructables.com/FLV/UOCP/IHDUIQAK/FLVUOCPIHDUIQAK.png&filename=comport.png)
![board.png](/proxy/?url=https://content.instructables.com/FPJ/PH8K/IHDUIQBM/FPJPH8KIHDUIQBM.png&filename=board.png)
![firmata.png](/proxy/?url=https://content.instructables.com/FLI/XSVY/IHDUIQAR/FLIXSVYIHDUIQAR.png&filename=firmata.png)
To connect PHIRO Pro and Arduino with Pocket Code we will need to have the Standard Firmata on the Arduino Board.
In Arduino IDE,
Select the COM Port.
Tools -> Serial Port -> Corresponding COM Port
Next select your Arduino Board.
Tools -> Board -> Your Arduino Board (We have used an Arduino Uno, but you can use ANY Arduino board)
Next we are going to select the Standard Firmata.
Click on Examples -> Firmata -> Standard Firmata
Click on Upload.
Connecting Bluetooth Module and Motor Driver to Arduino
![DSC_0221 - Copy.JPG](/proxy/?url=https://content.instructables.com/F8F/0SIA/IHDUIQCN/F8F0SIAIHDUIQCN.jpg&filename=DSC_0221 - Copy.JPG)
Arduino D3 - Motor driver M1 IN1
Arduino D4 - Motor driver M1 IN2
Connect motor terminal to motor drivers M1 OUT
Arduino D0 - HC05 Tx
Arduino D1 - HC05 Rx
Power your Arduino and Motor driver with a 9V battery.
Mounting LEGO(R) Construction and Electronics Onto PHIRO
![DSC_0224 - Copy.JPG](/proxy/?url=https://content.instructables.com/FZ5/IJXC/IHDUIQE3/FZ5IJXCIHDUIQE3.jpg&filename=DSC_0224 - Copy.JPG)
![DSC_0226 - Copy.JPG](/proxy/?url=https://content.instructables.com/FU1/FEB1/IHDUIQG7/FU1FEB1IHDUIQG7.jpg&filename=DSC_0226 - Copy.JPG)
![DSC_0228 - Copy.JPG](/proxy/?url=https://content.instructables.com/FCE/RW14/IHDUIQH1/FCERW14IHDUIQH1.jpg&filename=DSC_0228 - Copy.JPG)
In addition to LEGO(R) connectivity on it's body, PHIRO also comes with a cool LEGO(R) accessory that can be plugged into PHIRO to fix pieces on top as well. We made a single motor powered Robotic arm using some LEGO(R) pieces.
Notice that we have used a LEGO(R) motor, however any DC motor can be used in it's place
Next we have taped the Arduino setup right on top of the LEGO(R) construction.
Now that we're done with the hardware, let's move onto the software.
Programming PHIRO Pro and Arduino With POCKET CODE
![PHIRO Arduino powered Robotic Arm Pocket Code Program](/proxy/?url=https://content.instructables.com/FIH/5NA8/IHDUMNC8/FIH5NA8IHDUMNC8.jpg&filename=PHIRO Arduino powered Robotic Arm Pocket Code Program)
Make sure both PHIRO Pro and the Arduino setup are turned ON. PHIRO should be in Mode 3 (Bluetooth Mode). Pair both devices to your Android smartphone. In case you haven't, download the Pocket Code app on Google Play for FREE here. Check out the video above showing step by step instructions to program PHIRO and Arduino.
HURRAY! We're Done!
![Phiro Arduino powered robotic arm](/proxy/?url=https://content.instructables.com/FWQ/EZJE/IHDUMNM5/FWQEZJEIHDUMNM5.jpg&filename=Phiro Arduino powered robotic arm)
Here is a video of PHIRO with the Arduino powered Robotic Arm.
Driving is done by tilting the smartphone, and the Arm is programmed to close automatically when PHIRO's bottom sensors detects a black line.
We put a ball near the black line. For the black line, we used a small piece of black insulation tape.
Hope you guys liked out tutorial! Do share your suggestions and comments below.