TCRT5000 Infrared Reflective Sensor - How it works and example circuit with code.

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • Here is a brief overview of the TCRT5000 Reflective infrared sensor. I'll cover how it works and show you an example circuit and code for you to use yourself.
    👇 More info below 👇
    ==========================
    List of items used in this project and where to find them:
    ■ TCRT5000 break out board: geni.us/TCRT5000
    ■ Arduino Uno: geni.us/ArduinoUno
    ■ Jumper Wires: geni.us/JumperWires
    ■ Breadboard: geni.us/MiniBreadboard
    (As an Amazon Associate I earn from qualifying purchases. This helps to pay for the next project.)
    ==========
    The code can be downloaded from here: github.com/DIY-Machines/TCRT5000
    ==========
    SAY THANKS:
    Buy me a coffee to say thanks: ko-fi.com/diymachines
    Support us on Patreon: / diymachines
    SUBSCRIBE:
    ■ / @diymachines
    DISCORD server: / discord
    INSTAGRAM: diy_machine...
    FACEBOOK: diymachines/...
    PATREON: / diymachines
    ==========
    List of camera and lighting equipment I use:
    Sony A7 III: geni.us/Sony-Alpha7-III
    Tamron 28-75mm F2.8 RXD A036SF Lens for Sony-FE : geni.us/TamronRXD-28-75mm
    Aputure Amaran HR672C: geni.us/AputureAmaranHR672C
    Aputure MC: geni.us/FAPGL
    RØDE VideoMic Pro+: geni.us/RodeVideoMic-ProPlus
    Blue Snowball iCE: geni.us/BlueSnowball-iCE
    Philips Hue Lightstrip Plus: geni.us/PhilipsHue-LightStrip
    Disclaimer:
    This video is shared for demonstration purposes only.
  • ХоббиХобби

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

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

    Very well explained.

  • @Chirrup...
    @Chirrup... 4 года назад +1

    This is such interesting info

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

    Thank you so much for the very detailed video!! :) I find it quite counter-intuitive that the digital pin is set to high when less infrared light is observed, would you happen to know why it is designed this way?

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

    Great work sir, but it was malfunctioning under sunlight, please help with comprehensive details on how to overcome this challenge thank

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

    Can the digital output of that little board be connected to an interrupt pin of Arduino Mega, so the arduino reacts instantly to the presence/absence of the reflective object?

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

    Isn't the code displayed missing a couple of calls to analogRead(pinIRa) and digitalRead(pinIRd)? The serial output shows results that imply the calls are there.

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

    Hi Sir..All you guidance is awesome.... you are really great ...lots of wishes..Sir i would like you to teach us for "Coin Separator" DIY if possible..

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

    can i use this for a sensor to create a volume control/expression pedal?

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

    Can we use this sensor to measure the glucose level in a solution?

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

    Great vid. I'm trying to develop a product with this technology. Who would I talk to for consulting on building it? Thanks!

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

    do you know of any sensor with similar characteristics but much smaller in size? thank you

  • @ckat609
    @ckat609 10 месяцев назад

    I made a simple circuit with a regular white led and a photoresistor. It sucks at picking up changes in the daylight. Is this any better? If so, why? Is it a wavelength thing?

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

    Is it okay to the TRCT 5000 IR SENSOR Module to ESP 32?

  • @yankovalsky7696
    @yankovalsky7696 7 месяцев назад +1

    Hi. Many thanks for the good presentation.

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

    is the analog output is distance in mm form ?

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

    Great video, thanks. I have the TCRT5000 without the breakout board. Should I be including a resistor in my circuit?

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

      Yes google the datasheet and check the max amp then use a resistor to bring current down if you have higher current

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

    what does pinLED do?

  • @8ugi41
    @8ugi41 Месяц назад

    Could I use tcrt5000 as analog input like potantiometer?

  • @mdabdurrahmanfahim-143
    @mdabdurrahmanfahim-143 2 года назад

    Can i connect ir sensor to arduino nano via wireless?

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

    "Noise cancellation scripts", can you provide a debounce code for the TCRT5000, I recently made a modificated version of your coin sorting machine, but anytime a coin pass through the sensor, it starts to give me some extra noise data, and yes i have checked the potentiometer behind to adjust as low as I could.

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

      @glyn hodges actually a last button state is a lot better than delay, so when it triggers once it stop counting infinite but only once! 😉

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

    How can I use this to trigger a 555 timer ?

  • @franciscorodrigues-yz4ew
    @franciscorodrigues-yz4ew 4 года назад

    hey I did everything the upload went well the sensor is working but when I go to the monitor in series, only appear "???????" what should I do?

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

      if ????? appears, then you need to change the Serial monitor rate. Open the Serial monitor and look at the bottom. Change your Serial monitor rate to 9600 then try again.

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

    Can such a device, if pointed toward the ground, measure the reflectiveness of infrared light of objects inside the earth? If so, can you please tell me how to get my hands on a device with such capability?

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

      so you want to detect IR (heat) from objects hidden in the ground?

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

      @@bjornwegener3233 Yes, how can that be accomplished, any idea?

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

    Hello, what about analog output? How does the signal is made? Is It a voltage +5 dropping down to 0 when an object Is near? Thank you 😊

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

      The analog output will report back the intensity of the light measured at the sensor. The value will be between +5 and 0 (rarely at the extreme ends of the scale) As opposed to the digital output which would indicate a 1 or 0 depending on the reaching threshold set on the potentiometer.

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

      @@DIYMachines that's perfect! I need to use it as a potentiometer and connect to a guitar pedal as a spare in a circuit which espects input value from +5 to 0V! Thank you :)

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

    what is the measurement in? mm??

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

    HELP HELP HELP
    What am I doing wrong? Copied the code and get values from the serial monitor. However, when I slide a coin past it, it dosent sense it. I literally have to put my hand in front of it. I have tried with 3 different sensors and get the same result. Any help would be much appreciated. Im such a noob.

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

      Keep calm! Try using a small screwdriver to adjust the potentiometer. This will adjust its sensitivity on the digital pin. Let me know how that goes.

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

      @@DIYMachines Thank you so much for the reply, i have tried that but no luck? i am quite sure i must be doing something wrong, i have mocked up the £2 coin section in card and it is just not seeing the coin drop i have to drop the coin so slowly for any digital reading! any help or advice? very grateful

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

      @@simonsmith7504 This is bizarre. Try reducing the size of the delays in the example code. Does this have any effect?

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

    It can work in sunlight

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

    Pls make a vedio on iron man helmet

  • @rodrigo-tj1gf
    @rodrigo-tj1gf 3 года назад

    Why does it needs to be conected to a analog input ?

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

      it does not, the output of the sensor is analog, if you like use it, or if the digital suits your circuit better, use it, its nice they output both for different circuits.

  • @Music-ox2jg
    @Music-ox2jg 3 года назад

    Cant i use without arduino?

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

      Yes you can. Use the LM393 and potentiometer on the sensor to set a trigger threshold.

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

    Can it be used with a Raspberry pi?

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

    Try using this on a black non reflective object. It will not register.

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

      Yes you're correct. If the object is not very reflective then a sensor that employs a different method of detection would be more suitable.

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

    Hi.....

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

    Can this detect human beings presence. Guess not.

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

    false experience

  • @Chirrup...
    @Chirrup... 4 года назад

    so boring

  • @deepakkoirala2296
    @deepakkoirala2296 5 месяцев назад

    What the total current consumption by this sensor?