Tuesday, June 07, 2016

Connecting a Tilt Switch to Teensy


 
Tilt switches are straightforward to connect to Teensy. One leg goes to a digital pin, and the other leg goes to ground. The internal pull resistor should be used with the digital pin. When the tilt switch is switched on, the digital pin will read LOW. When the tilt switch is switched off, the digital pin will read HIGH.





0 comments: