Date post: | 03-Apr-2018 |
Category: |
Documents |
Upload: | yo-gain-draw |
View: | 230 times |
Download: | 0 times |
of 12
7/29/2019 Arduino With Robots
1/12
ROBOTS- Shields
- Motions- Motors
-- Drivers--H Bridge
7/29/2019 Arduino With Robots
2/12
Control of motor
The rotation of shaft (clockwise or anticlockwise)
7/29/2019 Arduino With Robots
3/12
H-Bridge
7/29/2019 Arduino With Robots
4/12
H-Bridge
7/29/2019 Arduino With Robots
5/12
H-Bridge
7/29/2019 Arduino With Robots
6/12
Driver
7/29/2019 Arduino With Robots
7/12
Motion table
Motor A(left) Motor B(right) Motion
Clockwise Clockwise Forward
Clockwise Anticlockwise sharp right turn
Anticlockwise Clockwise sharp left turn
Clockwise stop right turn
Stop Anticlockwise left turn
anticlockwise Anticlockwise reverse
stop stop stop
7/29/2019 Arduino With Robots
8/12
L293D motor Driver
7/29/2019 Arduino With Robots
9/12
Robot Shield
7/29/2019 Arduino With Robots
10/12
void front(int del){digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, HIGH);digitalWrite(motor2Pin1, LOW);digitalWrite(motor2Pin2, HIGH);
}void left(int del){
digitalWrite(motor1Pin1, LOW);
digitalWrite(motor1Pin2, HIGH);digitalWrite(motor2Pin1, HIGH);digitalWrite(motor2Pin2, LOW);
}
void right(int del){digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);digitalWrite(motor2Pin1, LOW);digitalWrite(motor2Pin2, HIGH);
}void back(int del){
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);digitalWrite(motor2Pin1, HIGH);digitalWrite(motor2Pin2, LOW);
}void stopRobot(int del){
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, HIGH);digitalWrite(motor2Pin1, HIGH);digitalWrite(motor2Pin2, HIGH);
}
7/29/2019 Arduino With Robots
11/12
ROBOT - forward
- backward- left turn
- right turn
Move it
7/29/2019 Arduino With Robots
12/12
Serial Communication
with RobotsRemote control robots!!!!!wireless and wired control lets control by keyboard
code for the control of robot:o w => forwardo a => left turno s => stopo d => right turno any other key => stop