Using IR Sensor with Arduino | Tutorial for Beginners!

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

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

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

    Want to learn electronics the fun way?
    Checkout my course: bit.ly/3E4qKt0 👈
    Use discount code - ⭐ET20⭐ and get upto 20% off!👈

  • @IrfanAnjumm
    @IrfanAnjumm 5 лет назад +6

    Using an analog pin to receive data from the IR sensor can be more useful as it would give us a wide range of values to decide on the proximity of an object near the sensor.

    • @goku445
      @goku445 4 года назад +2

      The output pin is digital and not analog. I tried both and analoRead gives only 2 values: one low and one high.

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

    Thank you so much this was so helpful
    Amazing and easy to follow. Its guys like you who inspire others.

  • @vicentejuanito1413
    @vicentejuanito1413 19 дней назад

    Sir it is ok the output of ir sensor will put on digital part of ardueno?

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

    Your IR sensor looks good! What does the jumper on the IR sensor do? Is your IR sensor Open-Source Hardware?

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

      Which jumper r u talking about?

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

      The 0.1 pitch jumper next to the NAND gate.

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

      @@muxallopeniot9194 Good question!

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

      The jumper enables/disables the "EN" (enable) pin, if you won't use it, then keep the jumper on, or else you need to put a signal on EN for the sensor to actually start working.

  • @whatcanitteachus
    @whatcanitteachus Год назад +1

    hello, im just starting with Arduino, i noticed that the other sensor you have has an analog and digital output can the sensor see more than 1 item at the same time?

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

      No, either analog or digital.

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

      @@THEELECTRONICGUY I ment the digital sensor does can it see more than just one

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

    Can I change the output that if an ir sensor gives the output then the motors are turned off. Please reply

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

    Hi , both the red lights in IR proximity sensors Hw 201 are always on , hence the sensor is not working , what could be the reason ? The circuit connection with transistor and resistor is correct .

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

    Can ir sensor be used in garage door openings, identifying my face or car model?

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

    The video is very helpful. I have IR sensor with two potentiometer, and i accidentally changed frequency adjust potentiometer. How can i check at what frequency my IR sensor is sending data?

  • @internship-yv3mk
    @internship-yv3mk 3 года назад

    Sir I want do project on non invasive Glucose meter using IR sensor , and you shows 3 different IR sensor, which is suitable for my project ?

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

    Seensitivity factor affects the working of ir sensor or not

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

    can it give output without aurdino

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

    Hey...Can I use your this task for making an eye blink sensor for drivers ?

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

    ir sensor is in what order of instrument? zero, first or second order?

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

    Hi, what code would you use if you want the led to stay on when you cover then uncover the senor. Then turn off when you cover and uncover again.

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

      You can use a counter variable to update the count and another variable to store the last state of the sensor output.

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

    Can you explain me the 4 pins version with GND VCC D0 A0.I mean i understand GND= - VCC=+ D0 ( digital pin who sends 1 and 0 to arduino) and A0 who sends analog signals like for example 3V to the arduino microcontroller.So GND and VCC are input ports because they receive electricity for the sensor to work and D0 and A0 are Output ports used to send data to arduino and I suppose you can use only 1 of them,not both in the same time?! You choose either to send digital or either to send analog?!

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

      Good question.
      Since the sensor does not have any selector pin of some sort(to select DO or AO). Both pins must output their respective data type. So you can observe both signals from the sensor. However to do so, you will have to use two separate digital I/P pins.

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

    Hi TEG,
    So I have a question
    How do I get the IR receiver to receive signals from my phone without using IR blaster

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

    Which type of sensor You used for d/o, a/o pin

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

    Thank you.it is very useful for me in building the mini project

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

    How can I send the sensor data to a local server

  • @Ray-ln7xw
    @Ray-ln7xw 2 года назад

    Im going to build a mouse trap using this sensor, but I wonder what is the max range of this sensor?

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

    how can i use it for detecting colour like black or white colour

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

      It will give you either 1 or 0 for White color and opposite for Black color

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

      @@THEELECTRONICGUY thanks buddy

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

    excuse me, can you explain how to combine ir sensor with mechanical section?

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

    Hi TEG,
    May I know if this sensor can measure up to 1 meter in length, if not
    May I know where I can get the I meter ranged IR Sensors?
    Thank You for the Informative Video:)

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

      Well the above one cannot do this job for you.
      But there are some IR sensors which can measure upto 10m! You can find some of these on Sparkfun.

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

    how to use the sensor in water vending, say glass put on or off for water

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

    We know that 1 is for current flowing and 0 is for current not flowing ,,so if we have obstacle in front of it sensor it should turn led on and print 1 na??????????

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

    how to adjust the distance between object and sensor

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

    Can i make a robotical snake using this ?

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

    great explanation!

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

    Can you please upload smart home project using atleast 5sensors

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

    great vid, thanks for your help

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

    how about the maximum obstacle's distance can be detected by that IR module ?

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

      You can't calculate distance using this type of IR sensor

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

      @@THEELECTRONICGUY no, i mean, how far this sensor can detect the obstacle?, not to measure it. I'll make it simplier, can this sensor detect the obstacle in 1meter of distance?

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

      @@hothottrolltrapper3029 The specs are 2 to 40cm range.

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

    Suddenly the ir sensor doesn't work next what need to do

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

    Is there anyone out there that can program an Arduino with an IR Sensor and a stepper motor? Im looking for someone who can program the Arduino to make the stepper motor turn a half of a turn when something passes past the IR Sensor and the stop.
    Can anyone help with this?
    I have no experience with this. Please help.

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

      What do you need ? Be more specific : Allmost everything be possible but need more informations

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

    how to combain coding with 2 IR Sensor?

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

      What do you want to achieve by using 2 sensors?

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

      @@THEELECTRONICGUY sensor detect & give signal at LED

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

      Yes it can be done by using two inputs in Conditional statement (if else)..ex: &&

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

    Pls can you do a tutorial of how to interface ir sensor to gsm module using arduino

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

    Circuit?

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

    Can u give a tutorial on Arduino water level indicator with GSM module

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

    Guys I need help here, how can I add a dc motor and what kind of wire connection should I come out with?

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

      @Spam Account do i have to add anything in the code when i add the motor driver.Honestly i am pretty new in this so can i assume the code for lighting the led using ir sensor is the same for running the motor?

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

      @Spam Account ruclips.net/video/JE3TNbKrT24/видео.html
      okay how about this, from the link i just wanna add ir sensor as a switch for an example if there is obstacle the motor will run

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

      im sorry im too stupid for this thing

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

    Real think start now 3:28

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

    How to connect multiple ir sensors to single ardunio

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

      use separate digital/analog pin for each sensor

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

      @@THEELECTRONICGUY ok thx

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

    Can I use this code on any IR sensor?

  • @johndomingor.balingbinglv2834
    @johndomingor.balingbinglv2834 6 лет назад

    How to create a code to for DC motor?

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

    thank you

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

    its work

  • @Anonymous-nm1uo
    @Anonymous-nm1uo 4 года назад

    Can you do a motor

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

    Notice The X Box Logo On Some Sensors?...That Means Microsoft Compatable..

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

    I have error

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

    That amazing man

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

    Plz clearly show the code

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

    If not what will work, please check out the video link I added thanks .
    THE ELECTRONIC GUY

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

    Plz make hand wash

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

      You can find plenty of such videos on youtube😀

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

    huhu

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

    useless tutorial. billions guys said much more about IR with arduino on their channels

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

    harami maggi its arduino not
    aduino

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

    Hello bro may I have your Gmail account