Print Friendly, PDF & Email

Adxl335 is a small, thin, low power, complete 3-axis accelerometer with signal conditioned voltage outputs. The product measures acceleration with a minimum full-scale range of ±3 g. It can measure the static acceleration of gravity in tilt sensing applications, as well as dynamic acceleration resulting from motion, shock, or vibration.

How does accelerometer works?

The capacitance accelerometer senses changes in capacitance between microstructures located next to the device. If an accelerative force moves one of these structures, the capacitance will change and the accelerometer will translate that capacitance to voltage for interpretation.

About this project:

In this project we interface adxl335 with Arduino to move vehicle (forward / backward / left / right).

Change in sensor values whenever it is tilted in the (X-direction) vehicle has to move forward and when it is tilted in inverse of that direction vehicle runs backward. Similarly if sensor is tilted in (Y-direction) vehicle turns either left or right simultaneously inverse to each other so that it can turn easily.

When sensor is in flat position rover has to stop.

By tilting adxl335 you can calibrate and change value for X and Y coordinates it will be shown in serial monitor in Arduino IDE

Components Required:

Arduino Uno – Buy
ADXL335 – Buy
L298N Motor Driver – Buy or L293D Motor Driver – Buy
4 Wheel Chassis Kit – Buy
12V Battery – Buy
Alligator Clips
9V Battery – Buy
9V Battery Snap – Buy
DC Jack
Jumper Wires M to F – Buy
Jumper Wires F to F – Buy

Circuit Diagram:

Here connect 12V battery to L298N motor driver directly and connect Arduino Uno using DC jack.

which is not shown in this diagram

For Wireless:

Arduino Code:

In this code Z-axis values written but it is not required.

Here ADXL335 directly connected to Arduino Uno. Since VCC and GND pin which is placed in analog slot so i assigned digital pin 19 high for VCC which is in A5 and digital pin 18 low for GND which is in A4.