

The LilyPad Accelerometer ADXL335 (Manufacturer Part ID: DEV-09267) is a compact, low-power accelerometer designed by SparkFun Electronics. It measures acceleration in three axes (X, Y, Z) and is ideal for wearable electronics and motion-sensing applications. Its circular, sewable design makes it perfect for e-textile projects, while its low power consumption ensures efficient operation in battery-powered systems.








The following table outlines the key technical details of the LilyPad Accelerometer ADXL335:
| Parameter | Value |
|---|---|
| Supply Voltage (Vcc) | 1.8V to 3.6V |
| Typical Operating Voltage | 3.3V |
| Current Consumption | 350 µA (typical) |
| Measurement Range | ±3g |
| Sensitivity | 300 mV/g (at 3.3V supply) |
| Axes | 3 (X, Y, Z) |
| Output Type | Analog |
| Operating Temperature | -40°C to +85°C |
| Dimensions | 20mm diameter |
The LilyPad Accelerometer ADXL335 has six sewable connection pads. The table below describes each pin:
| Pin Name | Description |
|---|---|
| VCC | Power supply input (1.8V to 3.6V, typically 3.3V). |
| GND | Ground connection. |
| X | Analog output for acceleration along the X-axis. |
| Y | Analog output for acceleration along the Y-axis. |
| Z | Analog output for acceleration along the Z-axis. |
| ST | Self-test pin (used for testing the accelerometer; leave unconnected in normal use). |
VCC pin to a 3.3V power source and the GND pin to ground.X, Y, and Z pins to the analog input pins of a microcontroller (e.g., Arduino UNO).ST pin unconnected unless performing a self-test.Below is an example of how to connect the LilyPad Accelerometer ADXL335 to an Arduino UNO:
| LilyPad ADXL335 Pin | Arduino UNO Pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| X | A0 |
| Y | A1 |
| Z | A2 |
The following Arduino sketch reads the analog values from the accelerometer and prints the acceleration data to the Serial Monitor.
// LilyPad Accelerometer ADXL335 Example Code
// Reads X, Y, Z axis data and prints it to the Serial Monitor
// Define the analog pins connected to the accelerometer
const int xPin = A0; // X-axis output
const int yPin = A1; // Y-axis output
const int zPin = A2; // Z-axis output
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
// Read analog values from the accelerometer
int xValue = analogRead(xPin);
int yValue = analogRead(yPin);
int zValue = analogRead(zPin);
// Convert the analog values to voltage (assuming 3.3V reference)
float xVoltage = xValue * (3.3 / 1023.0);
float yVoltage = yValue * (3.3 / 1023.0);
float zVoltage = zValue * (3.3 / 1023.0);
// Print the voltage values to the Serial Monitor
Serial.print("X Voltage: ");
Serial.print(xVoltage);
Serial.print(" V, Y Voltage: ");
Serial.print(yVoltage);
Serial.print(" V, Z Voltage: ");
Serial.print(zVoltage);
Serial.println(" V");
delay(500); // Wait for 500ms before the next reading
}
No Output or Incorrect Readings:
VCC and GND pins are properly connected.Fluctuating or Noisy Readings:
Self-Test Pin Misuse:
ST pin is only for testing purposes. Leave it unconnected during normal operation.Q: Can I use the LilyPad Accelerometer ADXL335 with a 5V microcontroller?
A: Yes, but you must ensure the analog reference voltage of the microcontroller matches the accelerometer's output range. Use a voltage divider or level shifter if necessary.
Q: How do I interpret the output values?
A: The analog outputs correspond to the acceleration along each axis. At rest, the outputs should be approximately half the supply voltage (e.g., ~1.65V for a 3.3V supply).
Q: Can I use this accelerometer for free-fall detection?
A: Yes, the ADXL335 can detect free-fall events by monitoring the output voltages for near-zero values on all axes.
Q: Is the LilyPad Accelerometer ADXL335 waterproof?
A: No, the component is not waterproof. Protect it from moisture in wearable applications.
By following this documentation, you can effectively integrate the LilyPad Accelerometer ADXL335 into your projects for reliable motion sensing and orientation detection.