Pick and Place App Control Robot
by Sukanta bera in Circuits > Arduino
2537 Views, 13 Favorites, 0 Comments
Pick and Place App Control Robot
hello guys...
welcome to our channel s_r tronics
our new project pic and place robot based on arduino controlled by a android phone app...
Bluetooth Controlled Pick and Place Robot consists of a two wheeled robot fitted with a gripper arm. This robot can pick things using gripper from one place, perform all sorts of robotic movements and place the commodities picked to another place. The robot is interfaced with a bluetooth module hc-05 so that the input commands provided by the user can be obtained at the robotic side and corresponding robotic action can be performed.
Components
1:-arduino uno(DIY Retails Arduino UNO R3 Development Board)
2:-bluetooth hc-05(Bluetooth Transceiver Module with TTL Outputs-HC05)
3:-l293d ic two piece(Embeddinator's L293D Motor Driving Module)
4:-four piece dc motor(REES52 BOSET BO Motor 100 RPM 2 Pieces + BO Wheel 2 Pieces + BO Motor Clamp with Screws 2 Pieces)
5:-jumper wires(REES52 Jumper Wire - 10 Male to Male + 10 Female to Female + 10 Male to Female)
6:-breadboard(KTC CONS Labs Nickel Plated 840 Points Bread Board or Solderless Piecesb Circuit Test Board, White)
7:-one chasis(Generic AX195 Advance Metal Chassis)
8:-two wheels with caster wheel(Robokart White small tyre for Robowar(pack of 4))
9:-power bank or 9v battery(Intex IT-PBB 2000 MAH Power Bank (Black))
*********if you want to buy this components from amazon with cheap low price,then click on this components..
Circuit Diagram
arduino and bluetooth connection:-
vcc of bluetoooth is connect to +5v
gnd is connect to gnd
tx of bluetooth is connect to rx of arduino
rx of bluetooth is connect to tx of arduino
arduino and l293d ic connection:-
here..two l293d ic
1st l293d connection:-
pin 2 of L293D IC is connect to 8pin of arduino
pin 7 of L293D IC is connect to 7pin of arduino
enable pin 1 of L293D IC is connect to 9pin of arduino
pin 10 of L293D IC is connect to 5pin of arduino
pin 15 of L293D IC is connect to pin 4 of arduino
enable pin 9 of L293D IC is connect to 6pin of arduino
2nd l293d connection:-
pin 2 of l293d ic is connect to 14pin of arduino(A1 analog pin)
pin 7of l293d ic is connect to 13 pin of arduino
enable pin 1of l293d ic is connect to 15pin of arduino(A0 analog pin)
10 pin of l293d ic is connect to 11pin of arduino
15pin of l293d ic is connect to 10 pin of arduino
9pin of l293d ic is connect to 12 pin of arduino
Uploading Code
here is the code..
plz copy the code or download below...paste into arduinoo then upload..
just remember that..while uploading code..plz remove tx and rx wire from bluetooth and arduino connection.
int motor1Pin1 = 8; // pin 2 on L293D IC
int motor1Pin2 = 7; // pin 7 on L293D IC int enable1Pin = 9; // pin 1 on L293D IC int motor2Pin1 = 5; // pin 10 on L293D IC int motor2Pin2 = 4; // pin 15 on L293D IC int enable2Pin = 6; // pin 9 on L293D IC int motor3Pin1 = 14; // pin 2 on L293D IC int motor3Pin2 = 13; // pin 7 on L293D IC int enable3Pin = 15; // pin 1 on L293D IC int motor4Pin1 = 11; // pin 10 on L293D IC int motor4Pin2 = 10; // pin 15 on L293D IC int enable4Pin = 12; // pin 9 on L293D IC int state; int flag=0; //makes sure that the serial only prints once the state
void setup() { pinMode(motor1Pin1, OUTPUT),pinMode(motor1Pin2, OUTPUT),pinMode(enable1Pin, OUTPUT); pinMode(motor2Pin1, OUTPUT),pinMode(motor2Pin2, OUTPUT),pinMode(enable2Pin, OUTPUT); pinMode(motor3Pin1, OUTPUT),pinMode(motor3Pin2, OUTPUT),pinMode(enable3Pin, OUTPUT); pinMode(motor4Pin1, OUTPUT),pinMode(motor4Pin2, OUTPUT),pinMode(enable4Pin, OUTPUT); Stop(); Serial.begin(9600); }
void loop() { if(Serial.available() > 0){ state = Serial.read(); flag=0; } if (state == 'F'){ Forward(); if(flag == 0)Serial.println("Go Forward"),flag=1; } else if (state == 'B'){ Reverse(); if(flag == 0)Serial.println("Go Reverse"),flag=1; } else if (state == 'L'){ Left(); if(flag == 0)Serial.println("Go Left"),flag=1; } else if (state == 'R'){ Right(); if(flag == 0)Serial.println("Go Right"),flag=1; } else if (state == 'S'){ Stop(); if(flag == 0)Serial.println("STOP!"),flag=1; } else if (state == 'P'){ Pick(); if(flag == 0)Serial.println("Pick"),flag=1; } else if (state == 'Q'){ Place(); if(flag == 0)Serial.println("Place"),flag=1; } else if (state == 'H'){ Hold(); if(flag == 0)Serial.println("Hold"),flag=1; } else if (state == 'I'){ Free(); if(flag == 0)Serial.println("Unhold"),flag=1; } }
void Forward(){ digitalWrite(motor1Pin1, LOW); digitalWrite(motor1Pin2, HIGH); digitalWrite(motor2Pin1, HIGH); digitalWrite(motor2Pin2, LOW); digitalWrite(enable1Pin, HIGH); digitalWrite(enable2Pin, HIGH); }
void Reverse(){ digitalWrite(motor1Pin1, HIGH); digitalWrite(motor1Pin2, LOW); digitalWrite(motor2Pin1, LOW); digitalWrite(motor2Pin2, HIGH); digitalWrite(enable1Pin, HIGH); digitalWrite(enable2Pin, HIGH); }
void Left(){ digitalWrite(motor1Pin1, HIGH); digitalWrite(motor1Pin2, LOW); digitalWrite(motor2Pin1, HIGH); digitalWrite(motor2Pin2, LOW); digitalWrite(enable1Pin, HIGH); digitalWrite(enable2Pin, HIGH); }
void Right(){ digitalWrite(motor1Pin1, LOW); digitalWrite(motor1Pin2, HIGH); digitalWrite(motor2Pin1, LOW); digitalWrite(motor2Pin2, HIGH); digitalWrite(enable1Pin, HIGH); digitalWrite(enable2Pin, HIGH); }
void Pick(){ digitalWrite(motor3Pin1, LOW); digitalWrite(motor3Pin2, HIGH); digitalWrite(enable3Pin, HIGH); }
void Place(){ digitalWrite(motor3Pin1, HIGH); digitalWrite(motor3Pin2, LOW); digitalWrite(enable3Pin, HIGH); }
void Hold(){ digitalWrite(motor4Pin1, LOW); digitalWrite(motor4Pin2, HIGH); digitalWrite(enable4Pin, HIGH); }
void Free(){ digitalWrite(motor4Pin1, HIGH); digitalWrite(motor4Pin2, LOW); digitalWrite(enable4Pin, HIGH); }
void Stop(){ // Stop the motors digitalWrite(enable1Pin, LOW); digitalWrite(enable2Pin, LOW); digitalWrite(enable3Pin, LOW); digitalWrite(enable4Pin, LOW); digitalWrite(motor1Pin1, LOW); digitalWrite(motor1Pin2, LOW); digitalWrite(motor2Pin1, LOW); digitalWrite(motor2Pin2, LOW); digitalWrite(motor3Pin1, LOW); digitalWrite(motor3Pin2, LOW); digitalWrite(motor4Pin1, LOW); digitalWrite(motor4Pin2, LOW); }
Downloads
Installing App
here is some screenshot of pic..
plz download the apk file of android app..
the install...connect to bluetooth module hc -05..
hurrayy!!!!!!..you got it
Downloads
Result
heloo guys support us and followour channel s_r tronics on you tube
..keep watching our project video..
so guys watch the video for full description how to make this project
so..subscribe our channel..do comment and likes..
.thankx..