[vc_row][vc_column width=”1/1″][vc_tour][vc_tab title=”Introduction” tab_id=”1393940018-1-71″][vc_column_text]The 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 tiltsensing applications, as well as 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 selected to suit the application, with a range of 0.5 Hz to 1600 Hz for X and Y axes, and a range of 0.5 Hz to 550 Hz for the Z axis.
[/vc_column_text][/vc_tab][vc_tab title=”Hardware List” tab_id=”1393940018-2-73″][vc_column_text][bigcommerce link=”/arduino-uno-compatible-usb-board-r3/” target=”_blank”]Arduino uno [/bigcommerce] × 1
[bigcommerce link=”/adxl335-triple-axis-accelerometer/” target=”_blank”]ADXL335 Triple-Axis Accelerometer[/bigcommerce] × 1
DuPont line[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1393940401104-2-10″][vc_column_text]
ADXL335 Triple-Axis Accelerometer Arduino
GND GND
VCC +3v
X pin A2
Y pin A1
Z pin A0[/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1393940613125-3-8″][vc_column_text]
int RPotPin2 = 2; int RPotPin1 = 1; int RPotPin0 = 0; int x=0; int y=0; int z=0; void setup() { Serial.begin(9600); } void loop() { x= analogRead(RPotPin2); y = analogRead(RPotPin1); z = analogRead(RPotPin0); Serial.print(“x is ”); Serial.print(x ); Serial.print(“y is ”); Serial.print(y ) ; Serial.print(“z is ”); Serial.println(z ) ; delay(1000); }
[/vc_column_text][/vc_tab][vc_tab title=”Test Result” tab_id=”1393940732696-4-2″][vc_column_text]Copy the code into Arduino IDE, and burn the program. Open serial tool and choose the COM port which we used. Then you will find as flow,
When there is a accelerates motion on X/Y/Z-axis, there will be a corresponding change in the value of x, y, z[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]
Leave a Reply
You must be logged in to post a comment.