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

Arduino Mega 2560 Controlled Interactive Display with Keypad Input and RTC Integration

Image of Arduino Mega 2560 Controlled Interactive Display with Keypad Input and RTC Integration

Circuit Documentation

Summary

This circuit integrates various components to perform a set of functions that are controlled by an Arduino Mega 2560 microcontroller. The circuit includes a 4x4 membrane matrix keypad for user input, an LCD 20x4 display with I2C interface for visual output, a DS3231 Real-Time Clock (RTC) for timekeeping, a passive buzzer module for audio signaling, an 8x8 LED matrix for additional visual output, and a KY-026 flame sensor for detecting fire or flame presence. The circuit is powered by a 5V power supply unit (PSU).

Component List

4X4 Membrane Matrix Keypad

  • A keypad with 16 buttons arranged in a 4x4 matrix, used for user input.

Lcd 20x4 i2c

  • A 20x4 character LCD display with an I2C interface, used for displaying information.

5V PSU

  • A power supply unit that provides a regulated 5V output.

Arduino Mega 2560

  • A microcontroller board based on the ATmega2560, with numerous digital and analog I/O pins.

DS3231 RTC

  • A real-time clock module for maintaining accurate timekeeping.

Passive Buzzer Module

  • A module that can produce simple tones or beeps.

8*8 matrix

  • An 8x8 LED matrix display for visual output.

KY-026 Flame Sensor

  • A sensor module designed to detect flames or fire.

Wiring Details

4X4 Membrane Matrix Keypad

  • Rows connected to Arduino Mega 2560 digital pins D37 (R1), D39 (R2), D41 (R3), D43 (R4).
  • Columns connected to Arduino Mega 2560 digital pins D45 (C1), D47 (C2), D49 (C3), D51 (C4).

Lcd 20x4 i2c

  • GND to common ground.
  • 5v to 5V power rail.
  • SCA to Arduino Mega 2560 SDA pin.
  • SCL to Arduino Mega 2560 SCL pin.

5V PSU

  • 5V+ to 5V power rail.
  • GND to common ground.

Arduino Mega 2560

  • 5V to 5V power rail.
  • GND to common ground.
  • Various I/O pins connected to other components as detailed in their respective sections.

DS3231 RTC

  • VCC to 5V power rail.
  • GND to common ground.
  • SCL to Arduino Mega 2560 D21/SCL pin.
  • SDA to Arduino Mega 2560 D20/SDA pin.

Passive Buzzer Module

  • VCC to 5V power rail.
  • GND to common ground.
  • I/O to Arduino Mega 2560 D3 PWM pin.

8*8 matrix

  • VCC to 5V power rail.
  • GND to common ground.
  • DIN to Arduino Mega 2560 D10 PWM pin.
  • CLK to Arduino Mega 2560 D9 PWM pin.
  • CS to Arduino Mega 2560 D13 PWM pin.

KY-026 Flame Sensor

  • VCC to 5V power rail.
  • GND to common ground.
  • DO to Arduino Mega 2560 D2 PWM pin.

Documented Code

Arduino Mega 2560 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

  • The provided code is a template and does not include specific functionality. The actual implementation should initialize the connected components and define the main behavior of the circuit within the setup() and loop() functions, respectively.
  • The documentation.txt file is empty and thus not included in this documentation.