(SKU:RB-02S045)Triple Axis Accelerometer ADXL335

From ALSRobot-Wki
Jump to: navigation, search
02s04501.jpg

Contents

overview

The ADXL335 is the latest and greatest from simulation equipment, known for their exceptional quality MEMS devices.

It 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 ±3g. It can measure the static acceleration of gravity in tilt-sensing applications, and dynamic acceleration resulting from motion, shock, or vibration.

The user selects the bandwidth of the accelerometer using the CX, CY, and CZ capacitors at the XOUT, YOUT, and ZOUT pins. Bandwidths can be to suit the application.

Technical parameters and performance

  1. Wide power range DC3V to 5V
  2. Small, low-profile package
  3. Low power 350μA at 3V (typical)
  4. High sensitive
  5. 10,000 g shock survival
  6. BW adjustment with a single capacitor per axis

using method

Serial number Pin name Pin definition
1 VCC Power supply cathode
2 X-OUT X axis output
3 Y-OUT Y axis output
4 Z-OUT Zaxis output
5 GND Power source


Pin definition

Connect Icon

ADXL335 Arduino
VCC 3V3
GND GND
X-OUT A0
Y-OUT A1
Z-OUT A2
GND GND


Adxl335jiexian.jpg

Application Routine

Sample code

const int xpin = 0;	
const int ypin = 1;	
const int zpin = 2;	

const float arduino_power_supply = 5;
const float sensor_power_supply = 3.3;
const float zero_g_bias = sensor_power_supply / 2;
  
void setup() {
  Serial.begin (115200);
}
void loop() {
  float voltage_x = (analogRead(xpin)) * arduino_power_supply / 1024;
  float x = (voltage_x - zero_g_bias) * 1000 / 330;
  Serial.print(x);
  Serial.print ("\t");
  
  float voltage_y = (analogRead(ypin)) * arduino_power_supply / 1024;
  float y = (voltage_y - zero_g_bias) * 1000 / 330;
  Serial.print(y);
  Serial.print ("\t");
  
  float voltage_z = (analogRead(zpin)) * arduino_power_supply / 1024;
  float z = (voltage_z - zero_g_bias) * 1000 / 330;
  Serial.print(z);

  Serial.println();
  delay(10);
  
}

Program effect

After the program download, you can monitor the module X, Y, Z axis output value through the Arduino monitor.

Product recommendation

Buy address:Triple Axis Accelerometer ADXL335

Personal tools
Namespaces

Variants
Actions
Navigation
Tools