Infrared Obstacle Avoidance module for Arduino with code

Поделиться
HTML-код
  • Опубликовано: 13 июл 2024
  • This video shows you how to use Infrared Obstacle Avoidance module for Arduino with code.
    This video is part of Arduino Step by Step course that starts here • Lesson 00 What is Ardu...
    The best thank you for me is to not skip ads and Subscribe 🔔 to my channel, like 👍 the video and do not skip the ads.. It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
    *** Free Course ***
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    For wiring:
    Connect VCC of the module to 5V of Arduino
    Connect GNG of the module to GND of Arduino
    download the code for this project: bit.ly/ir-oa
    Purchase This module from Affiliated stores:
    Amazon Canada: amzn.to/3pBq1IS
    Amazon USA: amzn.to/32Hsg4w
    eBay: ebay.us/imJZPJ
    AliExpress s.click.aliexpress.com/e/_9I5UH6
    ** Purchase Arduino Start Kit **
    Amazon USA: amzn.to/3z88F9G or just UNO board amzn.to/3aY7KOL
    Amazon Canada: amzn.to/31an88J or just UNO board amzn.to/3pYxSNN
    Amazon Europe (all Europe): or Just uno board amzn.to/2PgGItD
    AliExpress: s.click.aliexpress.com/e/_9uc7Xe
    Banggood: www.banggood.com/custlink/3GD... or UNO board www.banggood.com/custlink/vKm...
    eBay: ebay.us/B1JWLi
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    All Europe Amazon: amzn.to/36YDSzn
    Download Arduino code for this video:
    robojax.com/course1/?vid=lecture
    Chapters
    00:00 Start
    06:01 Code Explained
    07:01 Demonstration
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 150 lectures) Starts here • Lesson 00 What is Ardu...
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Rotojbax on Ticktok: / robojaxtv
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    *** AFFILIATE PROGRAM ***
    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    #robojax #robojaxObstacleAvoidance #robojaxInfrared
  • НаукаНаука

Комментарии • 130

  • @pryansh_
    @pryansh_ 2 года назад +2

    it was so helpful sir thanks for passing on this information

  • @ezangrobotsvideos9286
    @ezangrobotsvideos9286 3 года назад +1

    thanks for your lessons

  • @abusamad6295
    @abusamad6295 5 лет назад +1

    thank you so much. this vid really help me

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

      you are welcome.

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

    thank you so much my friend, im from Argentina but my grandfather was Russian... i don´t know if you are from there, but for your accent i think so.

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

      You are welcome. I am glad you liked it. I am Canadian. and I am Afghanistani Persian. , Thanks. Ahmad

  • @jonathanlawler5894
    @jonathanlawler5894 6 лет назад +4

    This is actually really helpful in helping me with a project, thanks so much!

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

      You are welcome.

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

      Robojax I have one question, why is there no output? Doesn't the sensor have to send out and then have that bounce back? (I'm using a slightly different sensor but basically same idea as what you are doing).

  • @AnoopKumar-lx8zj
    @AnoopKumar-lx8zj 6 лет назад +1

    Very nice explanation. Very helpful to understand.

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

    great explanation! very, very helpful

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

      you are welcome

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

    thank you so much my friend..im from indonesia...

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

      You are welcome. Ahmad from Canada.

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

    Well done!

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

    sir i m waiting for 2nd part of this video putting condition in if statement.....

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

    Very helpful explanation

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

      you are welcome.

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

    cool stuff, thanks

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

      You are welcome.

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

    thanx, friend!

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

      You are welcome.

  • @mominkhadri8062
    @mominkhadri8062 3 года назад +1

    very helpful sir

    • @robojax
      @robojax  3 года назад +1

      Glad to hear that

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

    Good review , thx

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

      You are welcome.

  • @Arunkumar-nt7ov
    @Arunkumar-nt7ov 6 лет назад

    Nice man

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

      You too. Thanks.

  • @hemasreejonnalagadda
    @hemasreejonnalagadda 2 года назад +1

    Sir can we use it for spectacles?

  • @wikihub4545
    @wikihub4545 3 года назад

    good content

    • @robojax
      @robojax  3 года назад

      I am glad you like it.

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

    Sir,nice project. Did you find circuit diagram for this sensor module ? I was looking on internet, but it wasn't successful :(

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

      The same sensor is used in over 20 different sensor. All with OPAmP. I don't have it. but it is very easy to draw it. You should be able to do it in 15 minutes. Just get a magnifying glass and read the value and draw it. the only value you won't be able read it is the capacitors.

  • @Josh.Universe
    @Josh.Universe 5 лет назад

    Ohhh Super goof thisf

  • @user-dz2zn9fy3b
    @user-dz2zn9fy3b 6 лет назад

    Sir do you have IR sensor Switch with Arduino? when i send something in front of IR sensor it switch on the relay and again i send something in front of IR sensor it switch off Relay.

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

      This is exact video you are looking for ruclips.net/video/qhThpxiXubI/видео.html
      just use your module.

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

    Hi
    Can you help me please?
    I want some distance sensor for (20cm) with adjustment option if there is, and with dry contact open/close.
    so, when it detects Obstacle it will open the dry contact and automatically close it when it will stop detect the Obstacle
    can you help me to find the item that I need on AliExpress?
    Thanks
    Yossi

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

      Hi, with this you can't do it precisely. Please use laser distance sensor VL53L0X ruclips.net/video/0GxFoq_zPt4/видео.html

  • @aswathaktar19
    @aswathaktar19 2 месяца назад

    May I please know what is the distance in millimeters between each and every hole for the PCB design.

    • @robojax
      @robojax  2 месяца назад

      Do a Bing/Google image search for this module, I am sure you will find tones of images with the all specs

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

    ya but sir where to put the ir sensor wires in the arduino?

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

      OUT pint is connected to pin 8 of arduino.

  • @kenstovall5091
    @kenstovall5091 5 лет назад +2

    Is there a script that I can use with a Raspberry Pi ? Thanks !!

    • @davidhernandeze
      @davidhernandeze 3 года назад

      seems like basic pin read, try using a python lib to read pins

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

    Which module I need to buy automatic spray using ir sensor

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

      this sensor can send signal. Now you need to control a relay and the relay can turn ON and OFF your spray machine. Here is my video on Relay ruclips.net/video/g6k8sPJyif8/видео.html

  • @Ramon-ei5bc
    @Ramon-ei5bc 3 года назад

    does anyone have the data sheet for the sensor? I couldn't find it in the amazon page

    • @robojax
      @robojax  3 года назад +1

      is has infrared transmitter (emitter) and receiver. and you won't find datasheet. the IC has datasheet and that is it.

  • @iampudge6208
    @iampudge6208 2 года назад

    Hello, can it be used as a counter of objects passing through?

    • @robojax
      @robojax  2 года назад

      Hello, yes you can

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

    its nice work ......sorry can u help me a lot ..............pls suggest me how i get a source code

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

      Code is shown snag.gy/t94goi.jpg

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

    wheres the video of the continuation of this code? You said you will continue adding some code that turns certain angle if obstacle is detected.

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

      please type the time like 02:32 so I can check it.

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

    my output on the serial monitor is indicating obstacle on the way with and without an obstacle, what might be the problem?

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

      You have to adjust the potentiometer. Perhaps you skipped the video. Watch it again.

  • @Mira-wy3zl
    @Mira-wy3zl 5 лет назад +1

    what if i'm using AtmelStudio for programming?

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

      then you would have to write your code acceptable for that IDE

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

    What is the maximum range of IR module u used.?

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

      I have mentioned in the video. Please watch the video fully. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

  • @jovenmanuel7162
    @jovenmanuel7162 3 года назад

    Hi. Is it possible to determine the length of time that there is an obstacle in front of the IR module? Thank you.

    • @robojax
      @robojax  3 года назад

      Hello, yes it is possible. Just search for "millis" on my channel. Here is how to Find Specific RUclips Video in a channel bit.ly/findRUclipsVideo if you want to learn Arduino ***** Free Arduino Course worth $200****
      Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

    • @jovenmanuel7162
      @jovenmanuel7162 3 года назад

      @@robojax Thank you for the reply. I have watched the "millis" video and on the examples 2 and 3, you have used pushbutton. My project involves IR sensors instead of push button, what would be the IR equivalence of "buttonPushed"?

  • @Daniel-ns5vb
    @Daniel-ns5vb 4 года назад

    Hi, i followed your code but thing is when i put my hand near the sensor the second light wont show means it is not detecting

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

      Hi, Yes it is not detected. You have to adjust the potentiometer until you see it is sensing.

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

    Hello
    build bms battery manegemnt angine

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

      Hello, Thank you for your suggestions. I will look into it. Very important topic.

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

    How far is the sensor reading range?

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

      I believe I have mentioned it in the video. Watch it again without skipping .

  • @charon6194
    @charon6194 2 года назад

    Sir how do I increase the range to, say, 1 metre or so?

    • @robojax
      @robojax  2 года назад

      get laser sensor such as VL53L0X and I have tones of videos. Here is how to find Specific RUclips Video in a channel bit.ly/findRUclipsVideo

  • @leinhnam2641
    @leinhnam2641 2 года назад

    HOW CAN I MEASURE THE DISTANCE WITH THIS TYPE OF VARIABLES . PLEASE

    • @robojax
      @robojax  2 года назад

      use VL53L0X ruclips.net/video/S2jaAQEv3Yo/видео.html or ruclips.net/video/QI9541YQq7M/видео.html as this module is not for measuring distance.

  • @hemasreejonnalagadda
    @hemasreejonnalagadda 2 года назад

    May I know what are the components used

    • @robojax
      @robojax  2 года назад

      I have added link under video in description to purchase this module.

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

    Sir by this Tx pin of my arduino is passing current and because of this my arduino is not accepting any other code plz tell me how to fix this problem

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

      sorry did not understand what you meant. the pins of this module don't need much current (like nothing) except the VCC or 5V pin.

  • @serafinabundo3284
    @serafinabundo3284 3 года назад

    maximum range for detection is 10cm ?

    • @robojax
      @robojax  3 года назад

      I believe I demonstrated it. I don’t remember.

  • @UFCONTENT
    @UFCONTENT 2 года назад

    how it comes that the output of the comparator is High when an object is detected but the output of the IR sensor is Low in the same case ?

    • @robojax
      @robojax  2 года назад

      it is how the circuit is designed. and arduino is here to help and use the output of this when it is LOW or HIGH

    • @UFCONTENT
      @UFCONTENT 2 года назад

      Robojax can i get a link for the good circuit please ? I still don’t undertand how the circuit is in the last step, where the output is not the same as the comparator output.

    • @UFCONTENT
      @UFCONTENT 2 года назад

      Robojax and please why the led is turning on when the output is 0V ( low because object is detected ) ? And when it’s high ( 5V no object ) the led is off ?

  • @amartechs9267
    @amartechs9267 3 года назад

    Actually my IR sensor cannot detect beyond 5 cm

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

    how to send "Obstacle on the way" message to another arduino device through bluetooth?

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

      that is interesting, you can use Bluetooth board. that in interesting project.

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

    Hey man i am working with Arduino project can you help me with coding?

    • @robojax
      @robojax  5 лет назад +1

      Hey, I am sorry I have got full time job and family responsibilities and got no time off help. If you wan to learn Arduino step by step in a course, I have just launched my course on Udemy and I am sure you can learn from ground up here bit.ly/rj-udemy

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

      @@robojax Ok, i will go though this couse

  • @sandalithathsara1256
    @sandalithathsara1256 3 года назад

    can I know how to get this output on the cloud and to the MySQL database

    • @robojax
      @robojax  3 года назад

      you will need Either or Wifi module. or use another board ESP8266 which has Wifi ruclips.net/video/pLvqh57T3s4/видео.html or use ESP32 which has WiFi and Bluetooth ruclips.net/video/--Fj8QDlGuQ/видео.html and I have tones of videos for both programmed with Arduino IDE. They are much better than Arduino UNO

    • @sandalithathsara1256
      @sandalithathsara1256 3 года назад

      @@robojax thank you very much

    • @robojax
      @robojax  3 года назад

      you are welcome.

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

    Which one is POSITIVE(+) and which one is NEGATIVE(--)

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

      Wow! I just watched the video and yes I have forgotten to mention that. Pin VVC is Positive and GNG is NEGATIVE. Thank you for asking.

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

    Is this FC51 infrared obstacle avoidance module?

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

      what model of infrared obstacle avoidance module you used?

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

      There is no model. It is sold under the name "Infrared Obstacle avoidance" on eBay and AliExpress.

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

      Thank you very much :)

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

      You are welcome.

  • @minskie
    @minskie Год назад

    How do I increase distance???!

    • @robojax
      @robojax  Год назад

      use VL53L0X ruclips.net/video/0GxFoq_zPt4/видео.html

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

    So interesting can you help with the correct diagram for the circuit?

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

      I have not see the diagram but you could do a google search.

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

    In ISIS proteus this module is inversed ?

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

      I have not use Proteus. It is very expensive.

  • @brandonfreese3005
    @brandonfreese3005 3 года назад

    Hi Sir. Please tell me how you made sure no interference from the surroundings leaked into the sensor module?

    • @robojax
      @robojax  3 года назад +2

      make a paper barrel like pen and insert the receiver (the black) so it receives only from the front.

  • @emmanuelmuganza3426
    @emmanuelmuganza3426 3 года назад

    I tried to use this sensor, it looks like it's very inefficient ...

    • @robojax
      @robojax  3 года назад

      this is the cheapest way for obstacle avoidance. yes it has cons but it is the best and most used in robotics projects.

  • @bastamanibrahim5478
    @bastamanibrahim5478 3 года назад

    How can we operate it without Arduino ?

    • @robojax
      @robojax  3 года назад

      power it up with 5V and use the output for whatever purpose you need. I have explained what output does in the code section.

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

    Having sun light problems...non stop running at sun light

    • @robojax
      @robojax  4 года назад +1

      Interesting issue. never thought of that. Change the sensitivity and see if you can fix it. Or cover the side where sunlight is coming.

  • @andrewcabile3015
    @andrewcabile3015 3 года назад

    voice kinda hard to unrstand

    • @robojax
      @robojax  3 года назад

      I have provided subtitle in about 40 languages. so turn on the subtitle in your language

  • @minskie
    @minskie Год назад

    Do I always need an Arduino board to program an obstacle sensor?

    • @robojax
      @robojax  Год назад

      Yes arduino constantly read the infrared result that is coming out of the sensor and taking action. you can take action like turning ON or OFF something like motor or light or anything else.