![Srinivas Reddy](/img/default-banner.jpg)
- Видео 2
- Просмотров 5 582
Srinivas Reddy
Добавлен 27 июн 2016
Obstacle avoiding robot using IR proximity sensor
SKETCH OF THIS PROJECT
int motor1a=6;
int motor1b=9;
int motor2a=10;
int motor2b=11;
int sensorr=2;
int sensorl=4;
int sensorrstate =0;
int sensorlstate=0;
void setup()
{
pinMode(motor1a,OUTPUT);
pinMode(motor1b,OUTPUT);
pinMode(motor2a,OUTPUT);
pinMode(motor2b,OUTPUT);
pinMode(sensorr,INPUT);
pinMode(sensorl,INPUT);
}
void loop() {
sensorrstate=digitalRead(sensorr);
sensorlstate=digitalRead(sensorl);
if(sensorrstate==LOW){
digitalWrite (motor1a,LOW);
digitalWrite (motor1b,HIGH);
digitalWrite (motor2a,HIGH);
digitalWrite (motor2b,LOW);
delay(500);
}
if(sensorlstate==LOW){
digitalWrite (motor1a,HIGH);
digitalWrite (motor1b,LOW);
digitalWrite (motor2a,LOW);
digitalWrite (motor2b,HIGH);
delay(500);
}
if((sensorlstate==LOW)&&...
int motor1a=6;
int motor1b=9;
int motor2a=10;
int motor2b=11;
int sensorr=2;
int sensorl=4;
int sensorrstate =0;
int sensorlstate=0;
void setup()
{
pinMode(motor1a,OUTPUT);
pinMode(motor1b,OUTPUT);
pinMode(motor2a,OUTPUT);
pinMode(motor2b,OUTPUT);
pinMode(sensorr,INPUT);
pinMode(sensorl,INPUT);
}
void loop() {
sensorrstate=digitalRead(sensorr);
sensorlstate=digitalRead(sensorl);
if(sensorrstate==LOW){
digitalWrite (motor1a,LOW);
digitalWrite (motor1b,HIGH);
digitalWrite (motor2a,HIGH);
digitalWrite (motor2b,LOW);
delay(500);
}
if(sensorlstate==LOW){
digitalWrite (motor1a,HIGH);
digitalWrite (motor1b,LOW);
digitalWrite (motor2a,LOW);
digitalWrite (motor2b,HIGH);
delay(500);
}
if((sensorlstate==LOW)&&...
Просмотров: 5 065
Видео
srinivas reddy Live Stream
7 лет назад
How to make a photo Phobic Robot without aurdino|| LDR sensor
Просмотров 5177 лет назад
This is a simple way to make a Photophobic Robot without aurdino with simplest and cheapest circuit
hello bro thodi help chahiye, mai bhai civil services ke liye prepare kr rha hu aur muje ye wala project mila hai ab mere pass jyada time nhi hai to kya plz muje iski theory ye kaise work krti hai ye sb plz bta skty ho. reply kro bro to mai apna contact number dunga , ek engineering ho bhai mera feeling shmj skty ho
Can u give me schematic diagram?
Thank you so much
Thanks for making this video;) really helpful.
there are two spelling mistakes in the code :digutal and dealy
Pls provide me the diagram
nice!
Hi, Let me clarify the specific name of your sensor? Is it IR Proximity Sensor?
I would like to ask if what is the green one? is that a motor shield or a L298N H-bridge motor driver? thanks
Andrea Louis Basbas yeah it's not a L298N but it's a L293D motor driver but ppl call it motor shield too ... U r welcome ☺️
Bro this is photophilic bot not photophobic bot.
NIKHIL NIKKI yup ur ryt the position of sensors r reversed
Nice😁
nice one
sanjay sanju thanks macha
Awesome yr really...gud job keep it up
Zakir Hussain thank u bro
congrats srinu
Sandeep B thanks
Well done Mr.Srinu good keep it up ...my frnd
Satish manni thanks