Infrared Obstacle Avoidance module for Arduino with code

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ค. 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

  • @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

  • @hemasreejonnalagadda
    @hemasreejonnalagadda 2 ปีที่แล้ว +1

    Sir can we use it for spectacles?

  • @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).

  • @abusamad6295
    @abusamad6295 5 ปีที่แล้ว +1

    thank you so much. this vid really help me

    • @robojax
      @robojax  5 ปีที่แล้ว

      you are welcome.

  • @AnoopKumar-lx8zj
    @AnoopKumar-lx8zj 6 ปีที่แล้ว +1

    Very nice explanation. Very helpful to understand.

    • @robojax
      @robojax  6 ปีที่แล้ว

      Thank you.

  • @isazshaikh7039
    @isazshaikh7039 5 ปีที่แล้ว

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

  • @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!

    • @robojax
      @robojax  4 ปีที่แล้ว

      Thank you.

  • @yohannesandegergsh8620
    @yohannesandegergsh8620 6 ปีที่แล้ว

    Very helpful explanation

    • @robojax
      @robojax  6 ปีที่แล้ว

      you are welcome.

  • @iampudge6208
    @iampudge6208 2 ปีที่แล้ว

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

    • @robojax
      @robojax  2 ปีที่แล้ว

      Hello, yes you can

  • @luyandochikandula2485
    @luyandochikandula2485 4 ปีที่แล้ว

    cool stuff, thanks

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are welcome.

  • @jovenmanuel7162
    @jovenmanuel7162 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      Hello, yes it is possible. Just search for "millis" on my channel. Here is how to Find Specific TH-cam Video in a channel bit.ly/findTH-camVideo 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 2 ปีที่แล้ว

      @@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"?

  • @aswathaktar19
    @aswathaktar19 หลายเดือนก่อน

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

    • @robojax
      @robojax  หลายเดือนก่อน

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

  • @anelakandic5584
    @anelakandic5584 4 ปีที่แล้ว

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

    • @robojax
      @robojax  4 ปีที่แล้ว

      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.

  • @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

  • @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 th-cam.com/video/qhThpxiXubI/w-d-xo.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 th-cam.com/video/0GxFoq_zPt4/w-d-xo.html

  • @ZasaSaza34
    @ZasaSaza34 5 ปีที่แล้ว

    Good review , thx

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @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 th-cam.com/video/g6k8sPJyif8/w-d-xo.html

  • @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

  • @Arunkumar-nt7ov
    @Arunkumar-nt7ov 6 ปีที่แล้ว

    Nice man

    • @robojax
      @robojax  6 ปีที่แล้ว

      You too. Thanks.

  • @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.😊

  • @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.

  • @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.

  • @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.

  • @wikihub4545
    @wikihub4545 3 ปีที่แล้ว

    good content

    • @robojax
      @robojax  3 ปีที่แล้ว

      I am glad you like it.

  • @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.

  • @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 ปีที่แล้ว

    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.

  • @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 TH-cam Video in a channel bit.ly/findTH-camVideo

  • @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 .

  • @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 ?

  • @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

  • @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 th-cam.com/video/pLvqh57T3s4/w-d-xo.html or use ESP32 which has WiFi and Bluetooth th-cam.com/video/--Fj8QDlGuQ/w-d-xo.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.

  • @serafinabundo3284
    @serafinabundo3284 3 ปีที่แล้ว

    maximum range for detection is 10cm ?

    • @robojax
      @robojax  3 ปีที่แล้ว

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

  • @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.

  • @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

  • @leinhnam2641
    @leinhnam2641 2 ปีที่แล้ว

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

    • @robojax
      @robojax  2 ปีที่แล้ว

      use VL53L0X th-cam.com/video/S2jaAQEv3Yo/w-d-xo.html or th-cam.com/video/QI9541YQq7M/w-d-xo.html as this module is not for measuring distance.

  • @amartechs9267
    @amartechs9267 3 ปีที่แล้ว

    Actually my IR sensor cannot detect beyond 5 cm

  • @Josh.Universe
    @Josh.Universe 5 ปีที่แล้ว

    Ohhh Super goof thisf

    • @robojax
      @robojax  5 ปีที่แล้ว

      ?

    • @Josh.Universe
      @Josh.Universe 5 ปีที่แล้ว

      @@robojaxI mean your work is good👍

    • @robojax
      @robojax  5 ปีที่แล้ว

      Okay. thanks.

    • @Josh.Universe
      @Josh.Universe 5 ปีที่แล้ว

      @@robojax Hai

    • @Josh.Universe
      @Josh.Universe 5 ปีที่แล้ว

      What's your name

  • @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.

  • @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.

  • @oussak3595
    @oussak3595 4 ปีที่แล้ว

    In ISIS proteus this module is inversed ?

    • @robojax
      @robojax  4 ปีที่แล้ว

      I have not use Proteus. It is very expensive.

  • @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.

  • @minskie
    @minskie ปีที่แล้ว

    How do I increase distance???!

    • @robojax
      @robojax  ปีที่แล้ว

      use VL53L0X th-cam.com/video/0GxFoq_zPt4/w-d-xo.html

  • @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.

  • @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.

  • @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.

  • @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.

  • @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 2 ปีที่แล้ว

    voice kinda hard to unrstand

    • @robojax
      @robojax  2 ปีที่แล้ว

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