This GY-291 module is a small tilt sensor. It uses the ADXL345 digital accelerometer chip. It measures how much something accelerates, moves, and the force of gravity on three axes. The board has both I2C and SPI connections. This makes it easy to hook up to microcontrollers like an Arduino for your projects.
Features and Benefits
- ADXL345 digital chip - This chip offers better measurement detail and uses less power than older analog sensors like the ADXL335.
- Three-axis measurement - It senses steady tilt from gravity and also sudden acceleration from movement or taps.
- Dual I2C and SPI connections - You get flexible ways to connect it to different microcontrollers, including Arduino and Raspberry Pi.
- Onboard voltage regulator - It works with both 3.3V and 5V systems. You don't need extra parts to change voltage levels.
Applications
- Sensing device orientation or tilt in handheld electronics and robots.
- Adding movement-activated controls to electronic projects.
- Checking for vibration or shock to see if an object has been moved or dropped.
Mechanical Ball / Rolling-Element Switches (Simple On/Off)
These are straightforward tilt switches, often called gravity sensors or sensitive switches. Inside, a conductive ball rolls to make or break an electrical connection as the device tilts. They offer a simple on/off signal, indicating if a certain tilt angle has been exceeded. They do not provide precise angle measurements, but rather a binary state. These are commonly used where a basic tilt detection is sufficient, such as in safety cut-offs or simple alarm systems. They are robust but lack the detailed data provided by more advanced sensors.
MEMS Accelerometers (Precise Angle Measurement)
The ADXL345 3-Axis Digital accelerometer is a type of MEMS (Micro-Electro-Mechanical System) sensor. It works by detecting acceleration along three axes, which can then be used to calculate tilt and inclination. This product specifically offers a 3-axis measurement. It provides digital output, which makes it suitable for integration with microcontrollers like Arduino. The interface options are I2C and SPI, offering flexibility for data communication. This type of sensor allows for precise angle measurement, unlike basic tilt switches, and can detect how much something is tilted.
Optical Tilt Sensors
Optical tilt sensors operate by using light to detect changes in orientation. They typically involve a light source and a light detector, with a moving element or a reflective surface that changes the path of the light as the sensor tilts. This change in light intensity or position is then converted into an electrical signal. While not this specific product, optical tilt sensors can offer high accuracy and are often used in environments where magnetic interference is an issue. They provide a non-contact method of detecting tilt.
Quick Comparison
- Mechanical Ball / Rolling-Element Switches: Simple on/off, low cost, robust, no precise angle data.
- MEMS Accelerometers (like the ADXL345): Digital output, 3-axis measurement, precise angle data, I2C/SPI interface, compatible with Arduino. Measurement ranges are ±2g, ±4g, ±8g, ±16g.
- Optical Tilt Sensors: High accuracy, non-contact, unaffected by magnetic fields, but generally more complex.
This product, the ADXL345, is a MEMS accelerometer, offering digital precision for tilt and shake detection.
The Gravity Sensor
The term "gravity sensor" in the context of tilt and shake often refers to an accelerometer, such as the ADXL345. It measures acceleration due to gravity (1g) along its axes. When the sensor is stationary, the accelerometer output reflects the component of gravity acting on each axis. By analysing these values, the tilt or inclination of the sensor can be calculated. This product, being a 3-Axis Accelerometer, works as a gravity sensor to determine how much something is tilted and can also detect sudden movements or "shake" by measuring changes in acceleration.
Compatibility: Arduino. Interface: I2C, SPI. Measurement Range: ±2g, ±4g, ±8g, ±16g. Sensor Type: 3-Axis Accelerom (Tilt Sensor). Board Dimensions: Approx. 21mm x 16mm. Operating Voltage: 3.3V - 5V DC. Measurement Range: ±2g, ±4g, ±8g, ±16g (selectable). Features: Tap/Double Tap Detection, Free-fall Detection, Activity/Inactivity Monitoring. Interface: IIC (I2C) and SPI. Compatibility: Arduino, Raspberry Pi, Microcontrollers. Axes: 3 (X, Y, Z). Condition: New. Current Consumption: Typ. 140 µA (measurement mode). Product Type: Digital Three Axis Accelerometer Module. Resolution: 10-bit to 13-bit. Sensor Model: ADXL345. Type: Module. Q: What are the selectable measurement ranges for this accelerometer? A: You can set the full-scale measurement range to ±2g, ±4g, ±8g, or ±16g, depending on the forces you need to measure. The module provides up to 13-bit resolution for detailed readings.. Q: How much power does this module draw? Is it good for battery-powered devices? A: It's very energy efficient, using as little as 23 microamps during measurement and just 0.1 microamps in standby mode. This low power consumption makes it a great choice for projects that need to run on batteries for a long time.. Q: What kind of microcontrollers can I connect this tilt sensor to? A: The board supports both I2C and SPI communication, so it's very flexible. It has an onboard voltage regulator, allowing it to work correctly with both 5V systems like an Arduino Uno and 3.3V systems like an ESP32 or Raspberry Pi.. Q: What's the warranty policy if the board doesn't work when I get it? A: We provide a 90-day warranty that covers any manufacturing defects. If the module is non-functional upon arrival, just get in touch with us and we'll arrange for a free replacement or a refund.. Q: Besides measuring acceleration, what other features does the ADXL345 chip have? A: This chip has several useful built-in functions, including single-tap, double-tap, activity, inactivity, and free-fall detection. These features can simplify your programming and offload processing from your main controller..