How to make Smart Phone Controlled Bot using Robotrix Senior Kit?
OBJECTIVE:
Smart Phone Controlled Bot using Robotrix Senior KitCOMPONENTS REQUIRED:
1x Robotic Chassis
1x Caster Wheel
2x BO Wheels
2x BO Motors with Clamp (Straight or L Shape)
1Packet Nuts & Bolts
1x Arduino Uno with Cable
1x Bluetooth HC-05
1x L293D Motor Driver
Jumper Wires as per requirements
1x Android Bluetooth App
THEORY:
Many of our school students start learning about robotics with Robotrix senior kit . At 1 stage they start to learn how to make smart phone controlled bot?This Bot can be controlled by Bluetooth of the android mobile using an App. Not only this but you can move forward,backward,left and right with the help of mobile.
Yes, it's not magic but true. For that first you have to collect all the components mentioned above with the given quantity. Once you gather all the robotic components now it's time to make assembly of the robot with the help of robot chassis.
We first take single plastic chassis & mount BO clamp both side of the plastic chassis with the help of the screws & nuts. Once done go for second step of mounting motors on both the clamps.You bot basic structure is ready only you need to mounting wheels to the motors & caster wheels.
Once you complete these above steps image will be shown like below:Once you complete assembling of the components it's time to make coding for it.
void setup()
{
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
Serial.begin(9600);
}
void loop()
{
if(Serial.available()>0)
{
int a=Serial.read();
Serial.println(a);
if(a=='1')
{
digitalWrite(2,1);
digitalWrite(3,0);
digitalWrite(4,1);
digitalWrite(5,0);
}
else if(a=='2')
{
digitalWrite(2,0);
digitalWrite(3,1);
digitalWrite(4,0);
digitalWrite(5,1);
}
else if(a=='3')
{
digitalWrite(2,0);
digitalWrite(3,1);
digitalWrite(4,1);
digitalWrite(5,0);
}
else if(a=='4')
{
digitalWrite(2,1);
digitalWrite(3,0);
digitalWrite(4,0);
digitalWrite(5,1);
}
else
{
digitalWrite(2,0);
digitalWrite(3,0);
digitalWrite(4,0);
digitalWrite(5,0);
}
}
}
For more clearance about Coding you can call us at +91-8510044813 or can buy this smartphone controlled bot online at http://www.roboshop.in/handmade-projects-w-tutorials/bluetooth-controlled-bot
You can also buy complete Robotrix senior kit by which you can make many more other projects at http://www.roboshop.in/robotrix/robotriX-senior
No comments:
Post a Comment