Welcome to Tilt switch repository


Tilt switch

image.png 

working principle:

 It control the turning on or off of the circuit by the rolling contact pin of the beads in the switch.

Method of connection: (The definition of the pin can be changed in the program by yourself)

One end is connected to the GND of circuit , and another end is connected to the standard IO port of the MCU. The tilt condition can be known by judging the IO port level signal. The simple connection method is to connect directly by the DuPont line, and it can do experiments such as burglar alarm.

image.png 

Loading...