Srinivas Reddy
Srinivas Reddy
  • Видео 2
  • Просмотров 5 582
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)&&...
Просмотров: 5 065

Видео

srinivas reddy Live Streamsrinivas reddy Live Stream
srinivas reddy Live Stream
7 лет назад
How to make a photo Phobic Robot without aurdino|| LDR sensorHow to make a photo Phobic Robot without aurdino|| LDR sensor
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

Комментарии

  • @kumar_raj4901
    @kumar_raj4901 4 года назад

    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

  • @rajaiejulaihi4249
    @rajaiejulaihi4249 4 года назад

    Can u give me schematic diagram?

  • @lucnguyentan5822
    @lucnguyentan5822 4 года назад

    Thank you so much

  • @CAPSTV
    @CAPSTV 4 года назад

    Thanks for making this video;) really helpful.

  • @brosiman
    @brosiman 4 года назад

    there are two spelling mistakes in the code :digutal and dealy

  • @engexperts8687
    @engexperts8687 5 лет назад

    Pls provide me the diagram

  • @sahilthapa2291
    @sahilthapa2291 5 лет назад

    nice!

  • @charlemagnealexander
    @charlemagnealexander 6 лет назад

    Hi, Let me clarify the specific name of your sensor? Is it IR Proximity Sensor?

  • @andrealouisbasbas6325
    @andrealouisbasbas6325 6 лет назад

    I would like to ask if what is the green one? is that a motor shield or a L298N H-bridge motor driver? thanks

    • @srinivasreddy6594
      @srinivasreddy6594 6 лет назад

      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 ☺️

  • @nikhilnikki8197
    @nikhilnikki8197 6 лет назад

    Bro this is photophilic bot not photophobic bot.

    • @srinivasreddy6594
      @srinivasreddy6594 6 лет назад

      NIKHIL NIKKI yup ur ryt the position of sensors r reversed

  • @fakiyashaikh113
    @fakiyashaikh113 6 лет назад

    Nice😁

  • @sanjaynataraj6730
    @sanjaynataraj6730 6 лет назад

    nice one

  • @fakiyashaikh113
    @fakiyashaikh113 7 лет назад

    Awesome yr really...gud job keep it up

  • @sandeepb5203
    @sandeepb5203 7 лет назад

    congrats srinu

  • @satishmanni4219
    @satishmanni4219 7 лет назад

    Well done Mr.Srinu good keep it up ...my frnd