Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO and ADXL345 Accelerometer Data Logger

View and Edit Project In Cirkit DesignerImage of Arduino UNO and ADXL345 Accelerometer Data Logger

Circuit Documentation

Summary of the Circuit

This circuit integrates an Arduino UNO microcontroller with an Adafruit ADXL345 accelerometer and is powered by two 18650 Li-ion batteries. The Arduino UNO serves as the central processing unit, interfacing with the ADXL345 to collect acceleration data. The batteries provide the necessary power to the system, with one battery connected to the Arduino's Vin pin for direct voltage input and the other ensuring a common ground across the components. The ADXL345 is powered by the 5V output from the Arduino and communicates with the microcontroller via the I2C protocol, using the SDA and SCL lines.

Component List

Arduino UNO

Adafruit ADXL345

18650 Li-ion Battery (x2)

Wiring Details

Arduino UNO

Adafruit ADXL345

18650 Li-ion Battery

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This code template provides the basic structure for an Arduino sketch, with setup() function to initialize settings and loop() function to contain the main logic that will run continuously. The user is expected to fill in these functions with code to initialize the ADXL345 accelerometer and to read and process the acceleration data.