IR Sensor and LED with arduino (with code explained) | All digital sensors | Arduino tutorial 4

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 47

  • @BromideBride
    @BromideBride 3 місяці тому +2

    This series [and I'm only four videos in] explains with more clarity than several books and online tutorials I've tried to follow.
    Thank you so much.

    • @techathome
      @techathome  3 місяці тому

      Thank you for your feedback ❤️.
      It motivates us to make more...

    • @______6796
      @______6796 2 місяці тому

      ok

  • @etikalarani7231
    @etikalarani7231 4 місяці тому +1

    You are explaning very good
    like our sir👌👍👍🏻

  • @romelinedelacruz172
    @romelinedelacruz172 Рік тому +3

    Why can't the IR sensor detect my hand even when I put it in front of it as an object? If I adjust it, the IR sensor will detect, but it never turns off when I remove my hand. And if I adjust the IR sensor again in the opposite direction, it doesn't detect anymore. What should I do?

    • @RamaLaxmiLAKKADUSU
      @RamaLaxmiLAKKADUSU 2 місяці тому +1

      IR sensor was damage the IR sensor was detect 10cm range😊

  • @Pokemon45340
    @Pokemon45340 Рік тому +2

    Hi im Trying To Make A Vending machine using arduino but i have problem with the code, i want to make it when the ir sensor detects it 2 times the light will turn on but it wont work the light keep blingking Could u Help?

    • @techathome
      @techathome  Рік тому

      Can u share the code u have used over the mail

  • @nelomedia805
    @nelomedia805 Рік тому +1

    Hello! I presently have a working temperature sensor and would like to activate addressable LEDs at different temperature thresholds, example; blue 0-80F, green 81-120F, yellow 121-200F, orange 201-250F, and red 251F and above. Would it be possible to articulate how to do this in the code so i can add it to my existing sketch? Thank you so much

    • @techathome
      @techathome  Рік тому

      Yes, that can be done using if-else statements.
      You can send your existing code on our mail: deepakhd20@gmail.com

  • @anothernpc8246
    @anothernpc8246 26 днів тому

    tysm this is very comprehensive

  • @venkateshnaik4064
    @venkateshnaik4064 Рік тому +1

    hi sir, iam getting out put as 0 and LED is contineously glowing even if i vary my hand infront of sensor. Please help me in this regard

    • @techathome
      @techathome  Рік тому

      In the sensor there is a small potentiometer, try to rotate it on both sides and change its sensitivity

  • @tharuneee3rdyear847
    @tharuneee3rdyear847 Рік тому +1

    In tinkercad, after simulation how do I active the IR sensor

  • @kemaketseforkssebitiela3089
    @kemaketseforkssebitiela3089 11 місяців тому

    When to use analog read or write?

    • @techathome
      @techathome  11 місяців тому

      AnalogRead - To read voltage drops from analog sensors(Potentiometer, Temperature sensor etc): ua-cam.com/video/lg-QUBLm9eU/v-deo.html
      AnalogWrite - To generate PWM signal of required duty cycle: ua-cam.com/video/WvFmYy75Ju0/v-deo.html

  • @rodelalfonsobautista3729
    @rodelalfonsobautista3729 9 місяців тому

    can I use multiple led lights?

  • @richardlange9094
    @richardlange9094 Рік тому

    I have tried to duplicate this , but my sensor never goes off. I have checked the wiring and it is same as yours. I am using an Arduino Leonardo board. Any recommendation on what I am not doing correctly?

    • @techathome
      @techathome  Рік тому

      On the sensor module, there is one blue colour potentiometer screw to increase or decrease the sensitivity.
      Rotate that and reduce sensitivity.

    • @richardlange9094
      @richardlange9094 Рік тому

      @@techathome Thanks for the input. That solved the problem. But the sensor range is too short. So I am going to try a 2 piece sensor (sender - receiver). Once again thank you very much for the help.

    • @techathome
      @techathome  Рік тому

      Welcome

  • @johnsangeetha9203
    @johnsangeetha9203 2 місяці тому

    The program is not been uploaded and many error are coming but the program is correct

    • @techathome
      @techathome  2 місяці тому

      What is the error message?
      Can you also send screenshot on mail: deepakhd20@gmail.com

  • @thameemulazarudeen9692
    @thameemulazarudeen9692 Рік тому

    What are all the conponents used can you give me the name of the components used

  • @chris-ut4hs
    @chris-ut4hs Рік тому

    Hi, where you got that buzzer from?

    • @techathome
      @techathome  Рік тому

      You can get in electronic shops
      Also in Amazon

  • @tahaibrahim9564
    @tahaibrahim9564 Рік тому

    Is it the same with PIR sensor?....I tried with that but didnt work.

    • @techathome
      @techathome  Рік тому

      Yes same , PIR sensor is also digital,
      digitalRead should work

  • @thejask4749
    @thejask4749 Рік тому +1

    IR doesnt get the power and even the reading is zero throughout

    • @techathome
      @techathome  Рік тому

      Have you connected VCC and gnd correctly?

  • @vaishnavivanga4048
    @vaishnavivanga4048 Рік тому +1

    Hi Sir
    I Can't Open the link given for code and circuit...

    • @techathome
      @techathome  Рік тому

      It is compressed file, you have to extract it using winRaR or any zip extractor.
      If not, send request on our mail, will share again.

  • @anjulovesdoracakes22
    @anjulovesdoracakes22 7 місяців тому

    can you give more detailed code?

    • @techathome
      @techathome  7 місяців тому

      Code link is provided in description

  • @keshavkeshari6892
    @keshavkeshari6892 Рік тому

    In online simulator , I can not find ir sensor . If you know where i can access ir sensor ,comment here please.

    • @yaduvanshiji9
      @yaduvanshiji9 Рік тому

      Tinkercad it's free and has all components

  • @rohanshiragaonkar917
    @rohanshiragaonkar917 4 місяці тому

    Thank u sir

  • @sahilirane1303
    @sahilirane1303 Рік тому

    pls explain breadboard connections better

    • @techathome
      @techathome  Рік тому

      This will help: drive.google.com/file/d/1EhloERWVGWewR_mO_GfMq2yAeKGlsLj0/view?usp=sharing

  • @minskie
    @minskie 2 роки тому

    Can you tell me how power on a dc motor the same way with an IR sensor?

    • @techathome
      @techathome  Рік тому

      You need to add few lines to run DC motor instead of LED.
      Refer : ua-cam.com/video/Y8HmbR1c7ag/v-deo.html