SZYTF GY-25A

Contents

GY-25A High-precision Dual-axis Tilt Analog Serial Port Tilt Detection Sensor Module User Manual

Model: GY-25A | Brand: SZYTF

Introduction

This manual provides detailed instructions for the SZYTF GY-25A High-precision Dual-axis Tilt Analog Serial Port Tilt Detection Sensor Module. The GY-25A is engineered for dynamic measurement of inclination and is designed to serve as a functional replacement for the SCA60C module. It offers versatile data output options, including both analog voltage signals and serial communication for digital data reading, making it suitable for a wide range of applications requiring precise tilt detection.

Specifications

FeatureDescription
Model NumberGY-25A
Brand NameSZYTF
TheoryInductance Sensor
TypeVibration Sensor
OutputAnalog Sensor
UsePosition Sensor
Power Supply Voltage3.3V - 5V
X-axis Voltage Output0-3.3V (corresponds to ±180 degrees, 0V when horizontal, chip up)
Y-axis Voltage Output0-3.3V (corresponds to ±90 degrees, 0V when horizontal, chip up)
Module Size15 mm * 13.3 mm
CustomizationYes
OriginMainland China

Setup Instructions

The GY-25A module is designed for straightforward integration into electronic projects. Follow these steps for initial setup:

  1. Power Connection: Connect the module to a stable power supply within the 3.3V to 5V range. Ensure correct polarity for VCC (positive supply) and GND (ground) pins. Incorrect voltage or polarity can damage the module.
    Bottom view of GY-25A module showing VCC and GND pins

    Figure 1: Bottom view of the GY-25A module with pin labels (VCC, RX, TX, GND, X, Y, GND).

  2. Analog Output Connection: For analog inclination readings, connect the X and Y output pins to the analog input pins of your microcontroller or data acquisition system.
    • X-axis: Provides 0-3.3V output corresponding to ±180 degrees of tilt. When the module is placed horizontally with the chip facing up, the X-axis output is 0V.
    • Y-axis: Provides 0-3.3V output corresponding to ±90 degrees of tilt. When the module is placed horizontally with the chip facing up, the Y-axis output is 0V.
  3. Serial Communication Connection (Optional): If using serial communication to read data, connect the RX (Receive) and TX (Transmit) pins of the module to the corresponding TX and RX pins of your microcontroller or serial interface.
    • Ensure the baud rate and other serial communication parameters (e.g., data bits, parity, stop bits) are correctly configured in your software to match the module's specifications.
  4. Mounting: Securely mount the module in your application. The orientation of the module is critical as it defines the reference for the X and Y tilt axes. Ensure it is mounted firmly to prevent unintended movement.
    Top view of GY-25A module with pins

    Figure 2: Top view of the GY-25A module, showing the main chip and pin headers.

Operating Instructions

The GY-25A module supports dynamic inclination measurement and offers two primary methods for data acquisition:

1. Analog Output Mode

In analog output mode, the module provides continuous voltage signals on its X and Y pins, directly representing the tilt angles. These voltages can be read by an Analog-to-Digital Converter (ADC) on a microcontroller.

  • X-axis Reading: The voltage on the X-axis pin will vary from 0V to 3.3V, corresponding to a tilt range of ±180 degrees. A 0V reading indicates a horizontal position with the chip facing up.
  • Y-axis Reading: The voltage on the Y-axis pin will vary from 0V to 3.3V, corresponding to a tilt range of ±90 degrees. A 0V reading indicates a horizontal position with the chip facing up.
  • Data Conversion: Your microcontroller's ADC will convert these voltage values into digital numbers. You will need to implement a conversion algorithm in your software to translate these digital readings back into angular degrees based on the specified voltage ranges and corresponding angles.

2. Serial Communication Mode

For digital data acquisition, the module supports serial communication via its RX and TX pins. This method typically allows for more precise and potentially calibrated readings, often with less noise than analog signals.

  • Initiate Communication: After connecting the RX/TX pins, initialize your microcontroller's serial port with the correct baud rate and communication protocol (e.g., 9600 baud, 8N1). Refer to the module's specific documentation (network disk data) for exact protocol details.
  • Read Data: Send appropriate commands (if required by the module's protocol) to request tilt data. The module will respond with digital values representing the X and Y axis inclinations.
  • Parsing Data: Parse the received serial data to extract the tilt angles. This typically involves reading byte streams and converting them into meaningful numerical values according to the module's data format.

The GY-25A module is capable of dynamic measurement, meaning it can accurately detect changes in inclination even when the device is in motion, making it suitable for applications requiring real-time angle tracking.

Maintenance

The GY-25A module is a robust electronic component designed for long-term operation with minimal maintenance. Adhere to the following guidelines to ensure optimal performance and longevity:

  • Keep Clean: Ensure the module's surface and pins are free from dust, dirt, and moisture. Use a soft, dry brush or compressed air for cleaning. Avoid using liquid cleaners directly on the module.
  • Environmental Conditions: Operate and store the module within its specified temperature and humidity ranges. Avoid extreme temperatures, direct sunlight, and corrosive environments, which can degrade performance or damage components.
  • Physical Protection: Protect the module from physical shock, excessive vibration beyond its operational limits, and undue mechanical stress. Consider enclosing it in a protective casing if used in harsh environments.
  • Power Supply Stability: Always use a stable and regulated power supply within the recommended voltage range (3.3V-5V) to prevent damage from voltage spikes or fluctuations.
  • Connection Integrity: Periodically check all electrical connections (power, analog outputs, serial communication) to ensure they are secure, free from corrosion, and properly insulated.

Troubleshooting

If you encounter issues with your GY-25A module, consider the following troubleshooting steps:

  • No Output or Incorrect Readings:
    • Verify the power supply voltage is within 3.3V-5V and correctly connected (VCC, GND).
    • Check all wiring connections for continuity, correct pin assignments (X, Y, RX, TX, GND, VCC), and ensure no short circuits.
    • Ensure the module is securely mounted and not experiencing unintended movement or vibration that could interfere with readings.
    • If using analog output, confirm your microcontroller's ADC is configured correctly and reading the appropriate pins.
    • If using serial communication, double-check the baud rate, data format, and ensure RX/TX lines are not swapped.
  • Inconsistent or Noisy Readings:
    • Check for electromagnetic interference (EMI) from nearby components, motors, or power lines. Try shielding the module or moving it away from noise sources.
    • Ensure the module is stable and not subject to unintended movements or vibrations.
    • Recalibrate your software's conversion algorithm for analog readings if environmental factors have changed significantly.
  • Module Not Responding (Serial Communication):
    • Confirm the serial port on your host device (e.g., PC, microcontroller) is correctly initialized and open.
    • Check if the module requires a specific command or initialization sequence to begin transmitting data.
    • Ensure the power supply is stable and sufficient, as low power can cause erratic behavior.

If problems persist after following these steps, consult the product's technical documentation or contact customer support for further assistance.

User Tips

  • For precise angle measurements, especially when relying on analog output, consider implementing a moving average filter or Kalman filter in your software to smooth out minor fluctuations and improve data stability.
  • When integrating with microcontrollers, always double-check the pinout diagram on the module's bottom side against your wiring to avoid incorrect connections, which can lead to malfunction or damage.
  • If you need to access the
Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.