0% found this document useful (0 votes)
157 views

3 Axis Accelerometer

3-axis accelerometer to now have an on-board 3.3V regulator - making it a perfect choice for interfacing with a 5V microcontroller such as the . This breakout comes with 3 analog outputs for X, Y and Z axis breakout board. The ADXL335 is the latest and greatest from Analog Devices, known for their exceptional quality MEMS devices. The VCC takes up to 5V in and regulates it to 3.3V with an output pin.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
157 views

3 Axis Accelerometer

3-axis accelerometer to now have an on-board 3.3V regulator - making it a perfect choice for interfacing with a 5V microcontroller such as the . This breakout comes with 3 analog outputs for X, Y and Z axis breakout board. The ADXL335 is the latest and greatest from Analog Devices, known for their exceptional quality MEMS devices. The VCC takes up to 5V in and regulates it to 3.3V with an output pin.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

1|P ag e

3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0

3 Axis Accelerometer
3-axis accelerometer to now have an on-board 3.3V regulator - making it a perfect choice for interfacing with a 5V microcontroller such as the . This breakout comes with 3 analog outputs for X, Y and Z axis breakout board. The ADXL335 is the latest and greatest from Analog Devices, known for their exceptional quality MEMS devices. The VCC takes up to 5V in and regulates it to 3.3V with an output pin. The analog outputs are ratiometric: that means that 0g measurement output is always at half of the 3.3V output (1.65V), -3g is at 0v and 3g is at 3.3V with full scaling in between. Fully assembled and tested. The XYZ filter capacitors are 0.1uF for a 50 Hz bandwidth.

Features
3-axis sensing. Excellent temperature stability. BW adjustment with a single capacitor per axis.

Applications
Building and structural monitoring. Medical applications. Mobile devices.

Specifications
Parameter Operating Voltage Operating temperature Value +5v dc regulated -55c to +125c

www.researchdesignlab.com

2|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0

Pin Details
Pin 1 2 3 4 5 6 Name gnd +5v x y z ST Details Power supply ground Power supply input x-axis value y-axis value z-axis value Self test

Working
The ADXL335 is a complete 3-axis acceleration measurement system. The ADXL335 has a measurement range of 3 g mini-mum. It contains a poly silicon surface-micro machined sensor and signal conditioning circuitry to implement an open-loop acceleration measurement architecture. The output signals are analog voltages that are proportional to acceleration. The accelerometer can measure the static acceleration of gravity in tilt-sensing applications as well as dynamic acceleration resulting from motion, shock, or vibration. The sensor is a polysilicon surface-micro machined structure built on top of a silicon wafer. Polysilicon springs suspend the structure over the surface of the wafer and provide a resistance against acceleration forces. Deflection of the structure is measured using a differential capacitor that consists of independent fixed plates and plates attached to the moving mass. The fixed plates are driven by 180 out-of-phase square waves. Acceleration deflects the moving mass and unbalances the differential capacitor resulting in a sensor output whose amplitude is proportional to acceleration. Phase-sensitive demodulation techniques are then used to determine the magnitude and direction of the acceleration. The demodulator output is amplified and brought off-chip through a 32 k resistor. The user then sets the signal bandwidth of the device by adding a capacitor. This filtering improves measurement resolution and helps prevent aliasing.

www.researchdesignlab.com

3|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0

MECHANICAL SENSOR The ADXL335 uses a single structure for sensing the X, Y, and Z axes. As a result, the three axes sense directions are highly orthogonal and have little cross -axis sensitivity. Mechanical misalignment of the sensor die to the package is the chief source of cross-axis sensitivity. Mechanical misalignment can, of course, be calibrated out at the system level.

www.researchdesignlab.com

4|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0

Sample Application

www.researchdesignlab.com

5|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0 void CONVERT_DISPLAY(unsigned int ); void i2c_delay(void); void i2c_start(void); void i2c_stop(void); void i2c_wbyte(char i2c_wb); unsigned char i2c_rbyte(void); char i2c_ack(void); void i2c_nack(void); void i2c_read(unsigned char id,unsigned char add,unsigned char d[]); void DELAY(); void main() { unsigned char ADC0,ADC1,ADC2; unsigned char d[4]; unsigned char CMD[]={0x38,0x01,0x0f,0x06,0x80},TEMP,i; for(i=0;i<5;i++) { TEMP=CMD[i]; CMD_WRT(TEMP); } for(i=0;i<10;i++) DELAY(); while(1) {

/* * Project name: 3 axis accelerometer sensor * Copyright (c) Researchdesignlab.com * Description: * Test configuration: MCU: Dev.Board: Oscillator: Software: */ #include<reg51.h> #include<string.h> sbit sbit SCL SDA = P1^7; = P1^6; AT89S52 8051 11.0592 MHz Keil uVision3

#define LCD_PORT P2 // LCD D0-D7 PINS connected P2 sbit rs=P3^5;sbit en=P3^7; sbit D7=P2^7;sbit rw=P3^6; void busy(); void CMD_WRT(unsigned char); void LCD_WRT(unsigned char *); void DATA_WRT(unsigned char); void delay(unsigned int time);

www.researchdesignlab.com

6|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0 void DELAY() { unsigned int X=8000,Y=100; while(X--); while(Y--); } void CONVERT_DISPLAY(unsigned int d) { unsigned char dig1,dig2,dig3,dig[3]; unsigned char x; unsigned char temp; temp=d; temp=temp/10; dig1=d%10; dig2=temp%10; dig3=temp/10; dig[0]=dig3; dig[1]=dig2; dig[2]=dig1; for(x=0;x<3;x++) { temp=dig[x]|0x30; DATA_WRT(temp); } }

i2c_read(0x9E,0x41,&d[0]); ADC0 = d[0]; DELAY(); i2c_read(0x9E,0x42,&d[1]); ADC1 = d[1]; DELAY(); i2c_read(0x9E,0x43,&d[2]); ADC2 = d[2]; DELAY(); CMD_WRT(0X01); CMD_WRT(0X80); LCD_WRT("X="); CMD_WRT(0X83); CONVERT_DISPLAY(ADC0); CMD_WRT(0X87); LCD_WRT("Y="); CMD_WRT(0X8D); CONVERT_DISPLAY(ADC1); CMD_WRT(0XC0); LCD_WRT("Z="); CMD_WRT(0XC3); CONVERT_DISPLAY(ADC2); DELAY(); } }

www.researchdesignlab.com

7|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0 i2c_delay();// SCL = 0; //

void i2c_delay(void) { char a; for(a=0;a<20;a++); } //-----I2C START ----// void i2c_start(void) { SCL = 1; i2c_delay(); SDA = 1;

} //---- I2C WRITE BYTE ----// void i2c_wbyte(unsigned char i2c_wb) { char a; for(a=0;a<8;a++)// Send 8 bits { SCL = 0; i2c_delay(); if(i2c_wb & (0x80 >> a)) { SDA = 1; } else { SDA = 0; }

i2c_delay(); SDA = 0;

i2c_delay(); SCL = 0; i2c_delay(); } //---- I2C STOP ----// void i2c_stop(void) { SDA = 0; } }

i2c_delay(); SCL = 1; i2c_delay();

i2c_delay(); SCL = 1;

//---- I2C READ BYTE -----// unsigned char i2c_rbyte(void) { char a; www.researchdesignlab.com unsigned char b;

i2c_delay(); SDA = 1; i2c_delay();// SCL = 0; //

8|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0 a = SDA; i2c_delay(); SCL = 0; i2c_delay(); return(a);

char a; unsigned char b; b=0; for(a=0;a<8;a++) { SCL = 1; i2c_delay(); if(SDA) { b |= (0x80 >> a); } i2c_delay(); SCL = 0; i2c_delay(); } return(b); } //---- I2C ACK ----// char i2c_ack(void) { char a; i2c_delay(); SCL = 0; } }

//----I2C Read -----// void i2c_read(unsigned char id,unsigned char add,unsigned char d[]) { i2c_start(); i2c_wbyte(id); i2c_ack(); i2c_wbyte(add); i2c_ack(); i2c_start(); i2c_wbyte(0x9f); i2c_ack(); *d = i2c_rbyte(); //i2c_ack(); i2c_nack(); i2c_stop();

i2c_delay(); SDA = 1;

i2c_delay(); SCL = 1; i2c_delay(); void busy()

www.researchdesignlab.com

9|P ag e
3 AXIS ACCELEROMETER

An ISO 9001-2008 Certified Company Order Code RDL/3AC/13/001/V1.0

Board Dimensions
20mm

20mm

To buy this product click the below link http://researchdesignlab.com/index.php/sensors/3-axis-accelerometer.html

www.researchdesignlab.com

You might also like