microcontroller + pir

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
MoSchew
 
Posts: 3
Joined: Mon Mar 13, 2023 12:04 pm

microcontroller + pir

Post by MoSchew »

Hi! I want wo connect a IR distance sensor, which should trigger an LED, to the 5V metro mini. how should I wire those components?

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: microcontroller + pir

Post by adafruit_support_bill »

Your topic title says 'PIR' but your question is about an IR distance sensor. They are not the same thing.

What is it you want to detect?

User avatar
MoSchew
 
Posts: 3
Joined: Mon Mar 13, 2023 12:04 pm

Re: microcontroller + pir

Post by MoSchew »

Sorry the title was wrong, it is a IR distance sensor..

User avatar
adafruit_support_bill
 
Posts: 88091
Joined: Sat Feb 07, 2009 10:11 am

Re: microcontroller + pir

Post by adafruit_support_bill »

There are quite a few options for IR distance sensing. The simplest IR distance sensors are these:
https://www.adafruit.com/product/1927
https://www.adafruit.com/product/3025
They give you a simple HIGH/LOW signal depending on whether an object is detected within their range. You can connect these to any digital GPIO pin.

Next simplest would be the IR Rangefinders:
https://www.adafruit.com/product/164
https://www.adafruit.com/product/1568
https://www.adafruit.com/product/1031
These give you an analog signal which varies depending on the distance of the object detected. These are also available with different active ranges. You would connect these to an analog pin.

And then there are the more sophisticated LiDar and TimeOfFlight sensors. These return a digital signal indicating the distance to the detected object. Most of these need to connect to the i2c bus on your processor.
https://www.adafruit.com/?q=lidar&sort=BestMatch
https://www.adafruit.com/?q=time+of+fli ... =BestMatch

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”