Arduino Leonardo and ADXL345 Accelerometer-Based Motion Detection System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed description of a circuit that includes an Arduino Leonardo (Rev3b) microcontroller and an ADXL345 accelerometer. The Arduino Leonardo is used to interface with the ADXL345 via I2C communication. The circuit is powered by the 3.3V supply from the Arduino Leonardo, and the ground connections are shared between the two components.
Component List
Arduino Leonardo (Rev3b)
- Description: The Arduino Leonardo is a microcontroller board based on the ATmega32u4. It has 20 digital input/output pins, a 16 MHz crystal oscillator, a micro USB connection, a power jack, an ICSP header, and a reset button.
- Pins: D0/RX, D1/TX, D2/SDA, D3 PWM/SCL, D4/A6, D5 PWM, D6 PWM/A7, D7, n.c., IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, D8/A8, D9 PWM/A9, D10 PWM/A10, D11 PWM, D12/A11, D13 PWM, AREF, SDA, SCL
ADXL345
- Description: The ADXL345 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit) measurement at up to ±16 g. Digital output data is formatted as 16-bit twos complement and is accessible through either a SPI (3- or 4-wire) or I2C digital interface.
- Pins: GND, VCC, CS, INT1, INT2, SDO, SDA, SCL
Wiring Details
Arduino Leonardo (Rev3b)
- GND: Connected to GND of ADXL345
- 3V3: Connected to VCC of ADXL345
- SDA: Connected to SDA of ADXL345
- SCL: Connected to SCL of ADXL345
ADXL345
- GND: Connected to GND of Arduino Leonardo
- VCC: Connected to 3V3 of Arduino Leonardo
- SDA: Connected to SDA of Arduino Leonardo
- SCL: Connected to SCL of Arduino Leonardo
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the components and their interconnections in the circuit. The Arduino Leonardo serves as the main controller, interfacing with the ADXL345 accelerometer via I2C communication. The wiring details ensure proper connections for power, ground, and data lines.