Circuit Documentation
Summary of the Circuit
This circuit integrates an Arduino Nano microcontroller with an ADXL345 accelerometer sensor. The Arduino Nano serves as the central processing unit, capable of communicating with the ADXL345 via I2C communication protocol to read acceleration data along three axes. The accelerometer is powered by the 5V output from the Arduino and shares a common ground. This setup is typically used for motion detection, vibration analysis, or orientation tracking in various applications such as robotics, gaming devices, and physical activity monitoring.
Component List
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
- Purpose: Acts as the central processing unit for the circuit, controlling the ADXL345 accelerometer and processing its data.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
ADXL345
- Description: A small, thin, low-power 3-axis accelerometer with high resolution (13-bit) measurement.
- Purpose: Measures the acceleration of the device in three axes.
- Pins: GND, VCC, CS, INT1, INT2, SDO, SDA, SCL
Wiring Details
Arduino Nano
- GND connected to ADXL345 GND
- 5V connected to ADXL345 VCC
- A5 connected to ADXL345 SCL
- A4 connected to ADXL345 SDA
ADXL345
- GND connected to Arduino Nano GND
- VCC connected to Arduino Nano 5V
- SCL connected to Arduino Nano A5
- SDA connected to Arduino Nano A4
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional code documentation was provided for the Arduino Nano.
