# Accelerometer

{% hint style="warning" %}
The Accelerometer is no longer sold on the VEX storefront. Check out the [V5 Inertial Sensor (IMU)](/vex-electronics/vex-sensors/smart-port-sensors/imu.md) for the most up to date sensor carried by VEX.
{% endhint %}

{% hint style="danger" %}
This sensor is not compatible with the [VEX V5 Brain](/vex-electronics/vex-electronics/vex-v5-brain.md).
{% endhint %}

![](https://phabricator.purduesigbots.com/file/data/tolj2gugcwwaa3alvel5/PHID-FILE-v6yde3okscjogvdjcsbi/vex_accelerometer.jpg)

While it may seem that acceleration can be used to infer force, this is only valid on movable objects with constant mass and produces a net force estimate, which may be useless if the value of one particular force is to be measured. It is also not feasible to integrate the accelerometer once for velocity and/or twice for position; most accelerometers lack the precision and stability required for this to work. Accelerometers are viable solutions for determining if a robot is leaning to take quick action to prevent tipping over.

## Usage

Most accelerometers, like their cousins the [Gyroscope](/vex-electronics/vex-sensors/3-pin-adi-sensors/gyroscope.md), output an analog voltage. The best models can use a digital protocol like [SPI](/electronics/general/spi.md) or [I2C](/electronics/general/i2c.md). While not nearly as sensitive to [line noise](/electronics/general/line-noise.md) as gyroscopes, accelerometers should still be shielded from noise sources. If a robot or assembly is rigid, it theoretically should not matter where the accelerometer is placed, but most devices tend to perform better at or near the [gyro](/vex-electronics/vex-sensors/3-pin-adi-sensors/gyroscope.md) (but priority must be given to the gyro in this regard).

### Teams Contributed to this Article:

* [BLRS](https://purduesigbots.com/) (Purdue SIGBots)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.purduesigbots.com/vex-electronics/vex-sensors/3-pin-adi-sensors/accelerometer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
