Arduino Projects

Interface ADXL335 Accelerometer With Arduino

Introduction

In this project, we will be interfacing an ADXL335 accelerometer with Arduino to measure the acceleration along the X, Y, and Z-axis. The ADXL335 is a low-power, single-axis MEMS accelerometer. It is perfect for applications such as monitoring human movement and detecting shock and vibration, It is ideal for applications requiring high accuracy and low power consumption.

Thank You NextPCB:

This project is successfully finished because of the service and support from NextPCB. NextPCB is one of the most professional PCB manufacturers in Global and has specialized in the PCB and assembly industry for over 16 years. Not only could NextPCB deliver the most creative printed circuit boards and assembly technologies in the most elevated quality standards, but the fastest delivery turnaround was also as fast as 24 hours.

Guys if you have a PCB project, please visit their website and get exciting discounts and coupons. if you sign-up using this link you will get free coupons worth $100. Checkout out NextPCB now and get amazing discounts on your first order.

What is an accelerometer?

ADXL335 Accelerometer With Arduino

An accelerometer is an electromechanical device that measures the vibration and acceleration of motion. It is commonly used to measure the acceleration of a moving object, but can also be used to measure the static acceleration of an object at rest. Accelerometers are used in a variety of applications, including automotive safety, aerospace engineering, and sports science, they may be dynamic as in the case of mobile devices.

How does the accelerometer work?

An accelerometer comes in the shape of a simple circuit for a big electronic device. the accelerometer is made of different parts and works in many modes, two of which are the Piezoelectric Accelerometer, Piezoresistive Accelerometer, and the Capacitance Accelerometer.

Types of Accelerometer

There are three types of Accelerometer

  1. Piezoelectric Accelerometer
  2. Piezoresistive Accelerometer,
  3. Capacitance Accelerometer

1. Piezoelectric Accelerometer

accelerometer types e1652843435690

IMG Source: Youtube The piezoelectric accelerometer is a type of sensor that measures acceleration and vibration. It consists of a piezoelectric crystal that is mounted on a base. This sensor absorbs the vibrations and creates the same amount of electrical signals. This voltage can be used to measure acceleration or vibration. The piezoelectric accelerometer is a very sensitive sensor. It can measure very small changes in acceleration and vibration

2. Piezoresistive Accelerometer

A piezoresistive accelerometer is a detector that measures acceleration using the piezoresistive effect. The piezoresistive effect is the change in resistivity of a material in response to the applied force. When a force is applied to a piezoresistive material, the material’s resistivity changes in proportion to the applied force

3. Capacitance Accelerometer

Capacitive accelerometer
IMG Source: Researchgate.net

A capacitance accelerometer is a device that measures acceleration using the change in capacitance of a sensor. The sensor is typically a metal plate that is mounted on a moving body. When the body moves, the plate moves with it and the change in capacitance is used to calculate the acceleration.

How does an ADXL335 accelerometer work?

The ADXL335 is a 3-axis accelerometer with a digital output. It measures acceleration in both the x and y axes, as well as the z-axis. The output of the sensor is a voltage that is proportional to the acceleration, ADXL335 is a popular accelerometer used in many projects because it is small, inexpensive, and easy to use the ADXL335 measures acceleration by detecting the thing’s movement.

ADXL335 module

  •  The ADXL335 gives a total 3-axis acceleration measurement.
  • The ADXL335 module measures acceleration within the range ±3 g in the x, y, and z-axis.
  • The ADXL335 output signals of this module are analog voltages that are balanced to the acceleration.

ADXL335 Accelerometer Pinout

The Pinout diagram for the ADXL335 is given below:​

adxl335 Sensor pinout

  • VCC: Power supply pin 5V.
  • X_OUT: X-axis analog output.
  • Y_OUT: Y-axis analog output.
  • Z_OUT: Z-axis analog output.
  • GND: Ground pin.
  • ST: The self-Test pin controls the self-test feature.

ADXL335 Wiring Diagram 

The circuit diagram for the ADXL335 accelerometer with Arduino is given below:​

ADXL335 with Arduino Wiring Diagram

ADXL345 Arduino Connections:

  • Connect X_OUT pin to Arduino pin A1
  • Connect Y_OUT pin to Arduino pin A2
  • Connect Z_OUT pin to Arduino pin A3
  • Connect GND to Arduino GND
  • Connect VCC to Arduino 3.3V
ADXL335 Accelerometer With Arduino Source Code 

Source Code

Code For Interfacing the ADXL335 with Arduino 

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Ad
Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker