microcontroller + pir
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- MoSchew
- Posts: 3
- Joined: Mon Mar 13, 2023 12:04 pm
microcontroller + pir
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?
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: microcontroller + pir
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?
What is it you want to detect?
- MoSchew
- Posts: 3
- Joined: Mon Mar 13, 2023 12:04 pm
Re: microcontroller + pir
Sorry the title was wrong, it is a IR distance sensor..
- adafruit_support_bill
- Posts: 88091
- Joined: Sat Feb 07, 2009 10:11 am
Re: microcontroller + pir
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
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
Please be positive and constructive with your questions and comments.