E18-D80NK IR Obstacle Avoidance Proximity Sensor Switch with Arduino Code (infrared sensor) E3F-R2

Поделиться
HTML-код
  • Опубликовано: 31 янв 2025
  • НаукаНаука

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

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

    Please can this sensor work outdoors? maybe is a small housing? Also, because you take the effort to reply all the comments I am subscribing to your Channel.

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

      Because it works with very short distance, it should work outdoor. if you see issue, just block the sun and it should work.

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

    Hi, Can I ask a question. Can the sensor detect both metal and non metal for example leather and car's door?

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

    11:31 My ears are still buzzing after I finished watching the video 😂

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

      LOL. hahahahha you are so funny

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

    Hello! Loved the video, btw can I ask if that sensor can be bypassed by a clear plastic bottle? If not can u share what sensors can be bypass by a clear plastic bottles? I was planning to create a sensor where it can detect clear plastic bottles. Thank you Sir!

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

      Sorry I have not tested it. But infrared always passes through transparent object like light. So treat it like light.

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

    if using input_pullup is it necessary to add a 10K resistor like in the picture or is it unnecessary? in other words, the black cable output goes directly to the arduino digital pin

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

      Just do as I did in the video . I don’t remember what I did.

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

    So the value of L is either 5 v or 0 ? Thanks for the explanation.

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

      no. it an be 0 or 1. 0 is LOW, 1 is HIGH. Learn more learn.sparkfun.com/tutorials/logic-levels/all

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

    Thank you for this wonderfull video sir, I have an error for your code sir it said" sensor does not declared in this scope"
    I'm Begginers .

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

      The code is not complete or has been modified.

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

    Is the Breadboard required for this ?

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

      I am sure you should see it in the video if needed.

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

      @@robojax I sent you email right now I just have --- e18-d80nk infrared sensor module & ELEGOO UNO R3 & buzzer -- is this sufficient? I want the buzzer to go off when an object is detected by the sensor -- i hooked the buzzer up to the uno and it beeps but I cant seem to get the sensor to power on at all? pls help tx

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

      I am sorry as mention on my website, all emails will be deleted. I have no time to respond. I can only reply to questions directly related to video if not answered in tue video.

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

      Delete your email account then

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

    Hi, can i cover it with arcrylic casing in clear, red or green color, to protect it from water or rain

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

      Hi, of course you can move it to anything.

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

    Using these kind of sensor , u have to do stepper motor start and stop or reverse and forward...

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

      this has only ON and OFF. Unless you count the ON/OFF and turn on, it will not work otherwise.

  • @sarunhussy
    @sarunhussy 6 лет назад +1

    can i use as water tank level indicator??

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

    Can we use this in direct sunlight as well?

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

      touch question. unless I test it, I won't work. This works with infrared and sun has infrared rays.

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

    I have this sensor and am having trouble connecting it to the
    ELEGOO UNO R3 Board to make buzzer go off when object detected, can you help?

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

      You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

  • @angeldomantay
    @angeldomantay 6 лет назад +2

    Hi! May i ask if you also have codes for photoelectric sensors?

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

      Hi just follow the link in the description and you will see link to the code.

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

    Can I add direct dc 12v relay or 24 relay

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

      yes you can. here is introduction to using relay with arduino ruclips.net/video/g6k8sPJyif8/видео.html

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

    Hi, can it be used for transparent or opaque plastic?

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

      this works with infrared and it is light. transparent object should work fine.

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

    Can thus be use for train choch count & 2 meter in rainge

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

      I have tested it and you can see it has very limited distance detection. i don't think it will work for 2m.

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

    What if I want to do this with an Arduino Leonardo? I followed your instructions but it doesn't work. Do I need to change some things in my code? Thanks!

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

      You are welcome.. I have used pin 2 and 9 and you can define your whichever pin you want to use. Cheers, Ahmad

  • @eng.faresmareai50
    @eng.faresmareai50 5 лет назад

    I have st-g18-3a30cn npn sensor and it has 4 wires and I couldn't find the datasheet so how can I use it if you familiar with this type?

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

      I did a google search and did not get any useful result. It would be very hard. Where did you buy it from? send me the link of there is online link.

    • @eng.faresmareai50
      @eng.faresmareai50 5 лет назад

      @@robojax this is the link
      www.google.com/amp/s/m.aliexpress.com/item/466429772.html

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

      Hi Fares, I believe I have a video on that. ruclips.net/video/7RQ8QoJWhpY/видео.html

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

    is proximity sensor e3f-ds30c1 works like this too?

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

      it looks the same. I believe different manufacturers produce the same thing under different model.

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

    Thanks. I used to auto-door in my learning model. I want when object present in front of sensor the out put active for 10s then inactive. if object still present longer 10s the output still inactive. Can you show me how to code. I am a new member for arduino.

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

      it should not do that. This seems to be from code. if connected to Arduino.

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

    Sir I try to make the detect thin thread.. I will be works of possible or not......

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

      You haven't subscribed to my channel. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

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

    hey i want code in order to stop motors when sensors detect opstacle

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

      you made me watch the video. I have clearly shown how to turn ON/OFF a buzzer. Buzzer is your motor or light or anything. Here is how you can control a motor with relay ruclips.net/video/JMBgGO07YLM/видео.html and here is $200 worth of Arduino Step by Step course (over 100 lectures) Starts here robojax.com/L/?id=338

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

    thanks for info sir :)

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

    I'm noob when it's com to electronic or coding. Can I use same setup to control a relay instead of buzzer. ???

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

      What I need to do is controling filling machine with photoelectric sensor by connecting filling machine foot switch to relay

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

      Yes you can. Exact same setup. Just change the HIGH and LOW according to your relay. Most relay modules are LOW trigger so instead of HIGH they turn ON with LOW.

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

      @@robojax thank you will do that

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

    Sir why is it that my dc mini submersible pump goes low voltage (2.5vdc) upon interfacing with arduino uno? The pumps dc input voltage is rated at 3-5vdc. In the other case, I use independent source 5vdc for the pump and used the arduino uno as a controller. However, upon verification, the motor still is on low voltage state. I used tip32c pnp transistor as a switching device for the motor, with base pin set at low, when sensor detects objects and high when the sensor detects nothing . Please do advice sir. Thank you.

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

      Please post the schematic to snipboard.io/ and once you pasted the image there, you will get a URL (or address) ,then share it here under the video . I will look at it. if you reply aback after 1 or 2 days, it will be berried under 100s of other comments, so make sure to write new comment.

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

    hi.. my project is about detecting transparent and translucent object ONLY. and once detected, the servo motor will work to open the door. sooo.... is this sensor suitable for that? Help Meeee. i dont know much about sensor.

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

      I have not tested it. If you have this module, test it and find out. Please share your result by replying to this comment. Thanks

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

    Is it possible to find the distance between te object and the sensor? if so please help me with that i'm stuck in a school project

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

      No. not possible with this module. You need this module ruclips.net/video/GL8dkw1NbMc/видео.html

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

      @@robojax just found that out after an hour of work xD

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

      @@robojax thanks though for your reply

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

      You are welcome.

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

    hello why do you need to put pull up resistor?

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

      Here is the answer ruclips.net/video/TTqoKcpIWkQ/видео.html

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

    excuse me sir want to ask ,, how to use adjustable infrared proximity distance sensor for raspberry pi 4

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

    Hi i have a IR E3F DS200C4 sensor can this set up work for it?

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

      if it has output pin which goes HIGH and LOW with detection, yes you can.

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

    what different with ultrasonik sensor?

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

      ultrasonic works with sound to detect distance and this use Infrared to detect distance or object.

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

      @@robojax i use ultrasonic to detect obstacle, it's too sensitive. i'll try this one to detect obstacle. 👍

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

    sir, please make such advance video on raspberry pi 3

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

      I have on my list. But comparing Arduino vs Raspberry Pi, few people are using Raspberry pi, so it is not interesting to me.

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

    Hello can you use infrared with arduinos Analog Input pins?

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

      Yes you can use infrared but not this as this is not analog. It just has 5V out or 0V which is digital.

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

    Thanks for the explanation Robojax...
    could I use the same code, pinout and sensor with a NANO (V3.0 ATmega 328P) board instead?

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

      You can use it with any arduino.
      You are welcome.

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

    Is this sensor affected by sunlight?

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

      all infrared should be affected by sunlight as sunlight has infrared .But it don't know how much.

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

    Thanks bro

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

    hello. my name is santoso from indonesia, I want to ask, can you help
    how do i access the VLD loop detector with arduino?thank you

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

      Hello, what is VLD loop detector? I have never heard of it.

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

    Please do it for raspberry pi 4 as well

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

      I haven't made any Raspberry pi video yet, if I start, there will over 300 videos. not sure yet.

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

    How can i get this coding

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

      Listen to the first 49 seconds of video

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

    Can i remove the resistor.. It is the sensor function??

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

      which resistor?

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

    Thank you so much for this video sir. How about if we placed this assembled device outdoor where the E18-D80 sensor is expose to the sun's light, will the light triggers the sensor and then turns on the buzzer...just like the other IR proximity sensors? Please enlighten sir, thank you.

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

      I believe it should work as it has sensitive potentiometer. I have not tried it.

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

      @@robojax thank you so much sir for your immediate reply and for sharing your skills and technical expertise.

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

    can this be used for rpm?

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

      I don't think you can use it for counting RPM.

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

      @@robojax Why not ? I was thinking about using just for that. Counting the teeth off a gear and convert the pulses to know its velocity. Great vid btw.

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

    Can i detect white and black whit this sensor?

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

      I am not sure. Haven't tested it. White and black can be detected only from short distances like 5mm .

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

    do you have measure RPM for this sensor ???

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

      I don't think this can do the RPM measurement because the response time is very slow.

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

      100 Hz response frecuenci aprox ? or more .

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

      @@nelsoncastillo4506 100 hz is about 6000 rpm so if that's really the case I would think it's pretty fast.

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

    Hello, Its not working, ITs always showing all clear. Help me out

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

      did you pay attention on how to set sensitivity? watch the video again.

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

      @@robojax Hello, There is something wrong with wiring, The red light doesnt show when we place an obstacle. Can you tell me how to power the sensor

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

      I have explained it at :159 and I just watched it and it can't be explained better than what I've shown. and also on the page where the code is provided, I have shown it again robojax.com/L/?id=255

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

      @@robojax I got it dude, The thing is the wire they gave had soldered tips and connection was not made as I directly connected the jumper wire and soldered tip, Then i twisted the soldered tip to another wire and attached them with a clip. In that way I got connectivity. Connectivity was the problem, I fixed it in the above method.
      Interesting fact: You could use arduino as power supply for 5V if you have to connect E18 -D80k to esp8226 as esp8226 doesnt give 5V supply. Wiring is exactly the same, but you have to give the input to esp8226

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

    nice

  • @СергейСмекалин-у1ы

    super

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

      Большое спасибо.

  • @TrongNguyen-tk7sx
    @TrongNguyen-tk7sx 5 лет назад

    hi guys ,i'm finding tutorial of e3f-r2n1 sensor ,i needs some helps

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

      I believe this item is the e3f-r2n1. They just named it differently.