How To use a linebreaker (code and wiring)

My team has purchased an adafruit line breaker, but we are clueless on how to use it. Unfortunately, I’m on my phone so i can’t provide a link to the product page or picture.

More specifically, do we wire it to the DIO or analog sections, and what wpilib object corresponds to a line breaker? Is there a specific class, or do we just use generic Digital /Analog Input classes?

Do you mean a break beam sensor like this one? Without knowing the specific model number it’s hard to help with detailed wiring, but typically this type of sensor outputs a digital signal so you would hook it up to a DIO and use DigitalInput to read it.

That seems to be what we have. Thanks for the detailed answer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.