Mercury switch module KY-017

SKU: FA3030 Tag:
Dimensions 1.9 × 1.5 × 1 cm
Operating Voltage

3.3V ~ 5.5V

The Mercury switch module KY-017 is a switch that responds to movement. It uses a small mercury ball that completes the circuit when the module is tilted.

This module consists of a mercury switch, a 680Ω resistor and a LED that will light up when tilt is detected. The mercury ball will open/close the circuit when the module is rotated.

Compatible with many electronics platforms like Arduino Raspberry Pi, ESP32 and others. For less sensitive tilt detection use the KY-020 tilt switch.


Connect the module power line (middle) and ground (-) to +5 and GND on the Arduino respectively. Connect signal (S) to pin 3.

ky-017 Arduino
S Pin 3
middle +5V