IR break beam with featherwing relay
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- bretthiltz
- Posts: 2
- Joined: Tue Jan 17, 2023 6:00 am
IR break beam with featherwing relay
Does anyone have a simple diagram on how to wire the 3mm IR break beam sensors to drive a featherwing relay?
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: IR break beam with featherwing relay
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.
https://learn.adafruit.com/ir-breakbeam ... cuitpython
https://learn.adafruit.com/ir-breakbeam ... cuitpython
- bretthiltz
- Posts: 2
- Joined: Tue Jan 17, 2023 6:00 am
Re: IR break beam with featherwing relay
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.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
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: IR break beam with featherwing relay
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
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
Please be positive and constructive with your questions and comments.