Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Tilt de Mercurio: Examples, Pinouts, and Specs

Image of Tilt de Mercurio
Cirkit Designer LogoDesign with Tilt de Mercurio in Cirkit Designer

Introduction

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.

Explore Projects Built with Tilt de Mercurio

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino-Controlled DC Motor with Dual IR Sensors and Tilt Detection
Image of נעם שפרונג תרגיל 2 CRIKITDESINER: A project utilizing Tilt de Mercurio in a practical application
This circuit uses an Arduino UNO to control a DC motor via an L298N motor driver based on input from two IR sensors and a tilt sensor. The IR sensors are used to detect objects or movement, and the tilt sensor detects the orientation of the device. The motor is activated only when the tilt sensor is triggered and one of the IR sensors detects an object, indicating a specific condition or orientation is met.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ADXL345-Based Digital Car Indicator System
Image of Digital Car Indicator using Accelerometer: A project utilizing Tilt de Mercurio in a practical application
This circuit uses an Arduino UNO and an ADXL345 accelerometer to control two LED indicators based on the tilt of a car. The accelerometer detects the car's tilt and the Arduino activates the corresponding LED: the left LED for left tilt and the right LED for right tilt.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Based Tilt and Distance Measurement System with ADXL335 and Ultrasonic Sensor
Image of Digital goniometer: A project utilizing Tilt de Mercurio in a practical application
This circuit uses an Arduino UNO to read data from an ADXXL335 accelerometer and an ultrasonic sensor, calculating tilt angles and distances. The results are displayed on a 16x2 LCD, with a trimmer potentiometer used for adjusting the LCD contrast.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Uno R3 Controlled Pan-Tilt Security Camera with Night Vision
Image of MOTION CAMERA: A project utilizing Tilt de Mercurio in a practical application
This circuit features an Arduino Uno R3 microcontroller connected to a Huskylens (an AI camera module), an IR LED Night Vision Ring, and a Tilt Pan module. The Huskylens is interfaced with the Arduino via I2C communication using the SDA and SCL lines, while the Tilt Pan module is controlled by the Arduino through digital pins 10 and 11 for signal and output control. The IR LED ring and Tilt Pan are powered directly from the Arduino's 5V output, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Tilt de Mercurio

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of נעם שפרונג תרגיל 2 CRIKITDESINER: A project utilizing Tilt de Mercurio in a practical application
Arduino-Controlled DC Motor with Dual IR Sensors and Tilt Detection
This circuit uses an Arduino UNO to control a DC motor via an L298N motor driver based on input from two IR sensors and a tilt sensor. The IR sensors are used to detect objects or movement, and the tilt sensor detects the orientation of the device. The motor is activated only when the tilt sensor is triggered and one of the IR sensors detects an object, indicating a specific condition or orientation is met.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Digital Car Indicator using Accelerometer: A project utilizing Tilt de Mercurio in a practical application
Arduino UNO and ADXL345-Based Digital Car Indicator System
This circuit uses an Arduino UNO and an ADXL345 accelerometer to control two LED indicators based on the tilt of a car. The accelerometer detects the car's tilt and the Arduino activates the corresponding LED: the left LED for left tilt and the right LED for right tilt.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Digital goniometer: A project utilizing Tilt de Mercurio in a practical application
Arduino-Based Tilt and Distance Measurement System with ADXL335 and Ultrasonic Sensor
This circuit uses an Arduino UNO to read data from an ADXXL335 accelerometer and an ultrasonic sensor, calculating tilt angles and distances. The results are displayed on a 16x2 LCD, with a trimmer potentiometer used for adjusting the LCD contrast.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MOTION CAMERA: A project utilizing Tilt de Mercurio in a practical application
Arduino Uno R3 Controlled Pan-Tilt Security Camera with Night Vision
This circuit features an Arduino Uno R3 microcontroller connected to a Huskylens (an AI camera module), an IR LED Night Vision Ring, and a Tilt Pan module. The Huskylens is interfaced with the Arduino via I2C communication using the SDA and SCL lines, while the Tilt Pan module is controlled by the Arduino through digital pins 10 and 11 for signal and output control. The IR LED ring and Tilt Pan are powered directly from the Arduino's 5V output, and all components share a common ground.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Level Sensing: Detecting the orientation of a device or container.
  • Safety Switches: Automatically shutting off equipment when tilted beyond a certain angle.
  • Motion Detection: Triggering alarms or actions based on movement.
  • Industrial Automation: Monitoring the position of machinery or components.

Technical Specifications

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

Pin Configuration and Descriptions

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

Usage Instructions

How to Use the Component in a Circuit

  1. Wiring: Connect one pin of the Tilt de Mercurio to the positive terminal of the power source and the other pin to the load (e.g., an LED or microcontroller input pin). Ensure the circuit is completed by connecting the load to the negative terminal of the power source.
  2. Orientation: Mount the switch in the desired orientation. The circuit will close (conduct) when the switch is tilted to allow the mercury to bridge the internal contacts.
  3. Testing: Verify the operation by tilting the switch and observing the behavior of the connected load (e.g., an LED turning on/off).

Important Considerations and Best Practices

  • Avoid Excessive Vibration: Mercury switches are sensitive to movement. Excessive vibration may cause erratic behavior.
  • Environmental Safety: Mercury is toxic. Handle the switch carefully and dispose of it according to local regulations if damaged.
  • Mounting: Secure the switch firmly to prevent unintended tilting or movement.
  • Debouncing: When used with microcontrollers, consider implementing software or hardware debouncing to filter out noise caused by slight movements.

Example: Connecting to an Arduino UNO

The Tilt de Mercurio can be easily interfaced with an Arduino UNO for tilt detection. Below is an example circuit and code:

Circuit Diagram

  • Connect one pin of the Tilt de Mercurio to Arduino digital pin 2.
  • Connect the other pin to the GND pin of the Arduino.
  • Use a pull-up resistor (10kΩ) between digital pin 2 and the 5V pin of the Arduino.

Arduino 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
  }
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Switch Not Responding to Tilt:

    • Ensure the switch is mounted at the correct angle for operation.
    • Check the wiring for loose connections or breaks.
    • Verify the power supply voltage is within the operating range (3V to 12V DC).
  2. Erratic Behavior:

    • Excessive vibration or movement may cause the mercury to oscillate. Secure the switch firmly.
    • Implement software or hardware debouncing to filter out noise.
  3. No Output Signal:

    • Test the switch with a multimeter to confirm continuity when tilted.
    • Ensure the load (e.g., LED or microcontroller) is functioning correctly.

FAQs

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.