A tutorial showing how to connect an Arduino with a motor wirelessly to PHIRO robot using Pocket Code smartphone app.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
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.
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.
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. Here is a photo showing the PHIRO LEGO(R) adapter with the construction we made.
Notice that we have used a LEGO(R) motor, however any DC motor can be used in it's place.
All we have to do is attach this on top of PHIRO as shown below.
Now we move onto mounting the Electronics (Arduino, Bluetooth and Motor Driver setup) on top.
All we did was tape them down onto the LEGO(R) construction made previously. Our result looked something like this.
Now let's see how to program using Pocket Code.
Create an account to leave a comment. Already have an account? Log In.
Become a member to follow this project and never miss any updates