IR break beam with featherwing relay

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bretthiltz
 
Posts: 2
Joined: Tue Jan 17, 2023 6:00 am

IR break beam with featherwing relay

Post by bretthiltz »

Does anyone have a simple diagram on how to wire the 3mm IR break beam sensors to drive a featherwing relay?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: IR break beam with featherwing relay

Post by mikeysklar »

This Fritizing diagram show show to wire them to a Feather M0. The Wiring would be the same with the relay, but you would have to add two lines of GPIO logic to trigger the relay when the break is detected.
proximity_m0_break_beam_bb.png
proximity_m0_break_beam_bb.png (150.02 KiB) Viewed 139 times
https://learn.adafruit.com/ir-breakbeam ... cuitpython

User avatar
bretthiltz
 
Posts: 2
Joined: Tue Jan 17, 2023 6:00 am

Re: IR break beam with featherwing relay

Post by bretthiltz »

mikeysklar wrote: Wed Jan 18, 2023 6:09 pm This Fritizing diagram show show to wire them to a Feather M0. The Wiring would be the same with the relay, but you would have to add two lines of GPIO logic to trigger the relay when the break is detected.

proximity_m0_break_beam_bb.png

https://learn.adafruit.com/ir-breakbeam ... cuitpython
I'm not using the feather m0 though, only the relay board. I'm not sure how I would add logic to the relay board.

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

Re: IR break beam with featherwing relay

Post by adafruit_support_bill »

For direct connection to the relay wing with no processor attached, you would wire power and ground the same way.

The yellow signal wire would connect to the "signal" pin on the relay wing. And you would need a pullup resistor (10K Ohms is a good value to use) between the signal pin and 3.3v.

Note that the output of the break-beam sensor is normally HIGH. So the relay will be energized until the beam is broken.

https://learn.adafruit.com/mini-relay-f ... ol-2151804
Image

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

Return to “General Project help”