A metal ball that closes contacts when tilted.
Also called: tilt switch, KY020.
Found in kits: 37 sensors, 45 sensors.
Voltage: 3.3V to 5.0V
Size: 20mm X 60mm
There are a number of different sources for these modules. Not every module that looks similar to the ones here behaves exactly the same. Check the specific module that you have for differences in function, voltage levels, pinout, and inactive/active states. Some modules have been found to have incorrectly labeled pins and even poorly soldered components.
An on-board 10kohm resistor connects to one lead of the tilt switch. The switch is normally open.
Typical/common pinout. Always check the pinout for the module that you have.
Test setup with CGMICROKIT1
To demonstrate how this works, a test setup that uses the CircuitGizmos CGMICROKIT1 (credit to Robert Severson) will be used. The CGMICROKIT1 has a microcontroller that connects to a PC via a USB/serial interface and runs an easy-to-understand yet powerful interpreted BASIC language (credit to Geoff Graham).
But this isn’t your 1980’s BASIC. This is a fantastic implementation of BASIC. No line numbers, made for easy understanding, and advanced microcontroller features.
This setup combines a CGMICROKIT1 with a single solderless breadboard, a USB/serial interface to the PC, and a suitable power supply for a convenient test bed for proving out small circuitry and experimenting with these 37+ sensors.
On the PC a program called MMEDIT (credit to Jim Hiley) helps to make development easier by providing a platform for editing and downloading the code used for these examples. This development environment is simple, powerful, and flexible. Alternate interfaces on the PC are any serial terminal application, including GFXterm. GFXterm (credit to Robert Rozee)
For more information about this test setup please see the information about the setup here: http://circuitgizmos.com/documentation/hardware-datasheets/cgmicrokit1-technical-information/cgmicrokit1-test-setup/
The hardware for the test setup is mounted on a small wooden base. The tested devices are added to this test setup with jumper wires.
If you have any additional information on this sensor/device or have comments, please leave a reply below.
Image already added