The Tilt de Mercurio (Mercury Tilt Switch), manufactured by Keys (Part ID: Mercury Switch), is a compact and reliable device that uses the movement of mercury to open or close an electrical circuit. This switch operates by tilting, causing the liquid mercury inside to either complete or break the circuit. Its simplicity and durability make it a popular choice for applications requiring level sensing, tilt detection, or safety interlocks.
The following table outlines the key technical details of the Tilt de Mercurio:
Parameter | Value |
---|---|
Manufacturer | Keys |
Part ID | Mercury Switch |
Operating Voltage | 3V to 12V DC |
Maximum Current Rating | 500 mA |
Contact Resistance | < 100 mΩ |
Operating Temperature | -40°C to +85°C |
Housing Material | Glass or metal casing |
Orientation Sensitivity | Typically 10° to 15° tilt angle |
The Tilt de Mercurio typically has two pins for electrical connection. The table below describes the pin configuration:
Pin | Description |
---|---|
Pin 1 | Input/Output terminal for one side of the circuit |
Pin 2 | Input/Output terminal for the other side of the circuit |
The Tilt de Mercurio can be easily interfaced with an Arduino UNO for tilt detection. Below is an example circuit and code:
// Tilt de Mercurio Example Code
// This code reads the state of the mercury tilt switch and turns on an LED
// when the switch is tilted.
const int tiltSwitchPin = 2; // Pin connected to the Tilt de Mercurio
const int ledPin = 13; // Built-in LED pin on Arduino
void setup() {
pinMode(tiltSwitchPin, INPUT_PULLUP); // Set tilt switch pin as input with pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
int tiltState = digitalRead(tiltSwitchPin); // Read the state of the tilt switch
if (tiltState == LOW) { // LOW means the switch is tilted (circuit closed)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Switch Not Responding to Tilt:
Erratic Behavior:
No Output Signal:
Q: Can the Tilt de Mercurio be used in high-vibration environments?
A: While it can tolerate some vibration, excessive or continuous vibration may cause erratic behavior. Consider alternative tilt sensors for such environments.
Q: Is the mercury inside the switch hazardous?
A: Yes, mercury is toxic. Handle the switch carefully and avoid breaking it. Dispose of damaged switches according to local hazardous waste regulations.
Q: Can I use the Tilt de Mercurio with a 3.3V microcontroller?
A: Yes, the switch operates within a voltage range of 3V to 12V, making it compatible with 3.3V systems.
Q: How do I debounce the switch signal?
A: You can use a capacitor in parallel with the switch or implement a software debounce routine in your microcontroller code.
This concludes the documentation for the Tilt de Mercurio. For further assistance, refer to the manufacturer's datasheet or contact Keys support.