Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Based Accelerometer Data Logger with LCD Display and Audio Alert

Image of Arduino UNO Based Accelerometer Data Logger with LCD Display and Audio Alert

Circuit Documentation

Summary of the Circuit

This circuit integrates an Arduino UNO microcontroller with an LCD screen, two Piezo Buzzers, an ADXXL335 accelerometer, and a 9V battery. The Arduino UNO serves as the central processing unit, interfacing with the LCD screen via I2C for display purposes and with the ADXXL335 accelerometer to measure acceleration in three axes. The Piezo Buzzers are used for audible feedback. The 9V battery provides the power source for the Arduino and other components.

Component List

Arduino UNO

  • Microcontroller board based on the ATmega328P
  • Features digital I/O pins, analog input pins, and various power pins
  • Utilized for controlling the circuit's behavior and processing sensor data

LCD screen 16x2 I2C

  • Alphanumeric liquid crystal display with 16 characters by 2 lines
  • I2C communication interface for displaying data
  • Powered by the Arduino's 5V output

Piezo Buzzer

  • Electronic device that produces sound when an electrical signal is applied
  • Used for generating audible alerts or feedback

ADXXL335

  • Three-axis accelerometer for measuring acceleration
  • Provides analog voltage output proportional to acceleration
  • Connected to the Arduino's analog inputs for data acquisition

9V Battery

  • Standard 9V battery used as the power source for the circuit

Wiring Details

Arduino UNO

  • GND: Connected to the ground of the LCD screen, Piezo Buzzer, ADXXL335, and 9V battery
  • 5V: Powers the LCD screen and ADXXL335
  • Vin: Connected to the positive terminal of the 9V battery
  • A0: Receives the X-axis output from the ADXXL335
  • A1: Receives the Y-axis output from the ADXXL335
  • A2: Receives the Z-axis output from the ADXXL335
  • D12: Connected to the Piezo Buzzer for control

LCD screen 16x2 I2C

  • GND: Connected to the Arduino's GND
  • VCC: Powered by the Arduino's 5V output
  • SCL: Connected to the Arduino's SCL pin for I2C communication
  • SDA: Connected to the Arduino's SDA pin for I2C communication

Piezo Buzzer

  • pin 1: Controlled by the Arduino's D12 pin
  • pin 2: Connected to the Arduino's GND

ADXXL335

  • VCC: Powered by the Arduino's 5V output
  • GND: Connected to the Arduino's GND
  • X-OUT: Connected to the Arduino's A0 pin
  • Y-OUT: Connected to the Arduino's A1 pin
  • Z-OUT: Connected to the Arduino's A2 pin

9V Battery

  • +: Connected to the Arduino's Vin pin
  • -: Connected to the Arduino's GND

Documented Code

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

}

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

}

The provided code is a template for the Arduino UNO microcontroller. The setup() function is called once when the microcontroller is powered on or reset. It is used to initialize the settings, such as pin modes or communication protocols. The loop() function is called repeatedly and contains the main logic of the program. This is where the microcontroller reads sensor data, controls outputs like the LCD screen and Piezo Buzzer, and performs calculations.

The actual implementation details are not provided in the code snippet above. To complete the circuit's functionality, the user would need to add code to initialize the I2C communication with the LCD screen, read the analog inputs from the ADXXL335 accelerometer, and control the Piezo Buzzer based on certain conditions or inputs.