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

Arduino Mega 2560-Based Real-Time Clock and Data Logging System with OLED Display

View and Edit Project In Cirkit DesignerImage of Arduino Mega 2560-Based Real-Time Clock and Data Logging System with OLED Display

Circuit Documentation

Summary

This circuit involves an Arduino Mega 2560 microcontroller interfacing with various components including an OLED display, an RTC module, an SD card breakout, a pushbutton, and an LED. The circuit is designed to demonstrate basic interfacing and control of these components using the Arduino platform.

Component List

  1. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D21/SCL, D20/SDA, D19/RX1, D18/TX1, D17 PWM/RX2, D16 PWM/TX2, D15/RX3, D14/TX3, D0 RX0, D1 TX0, D2 PWM, D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D8 PWM, D9 PWM, D10 PWM, D11 PWM, D12 PWM, D13 PWM, AREF, SDA, SCL, D52, D50, D48, D46, D44, D42, D40, D38, D36, D34, D32, D30, D28, D26, D24, D22, D53, D51, D49, D47, D45, D43, D41, D39, D37, D35, D33, D31, D29, D27, D25, D23, 6swdw.
  2. Adafruit DS1307 RTC Breakout

    • Description: A real-time clock module.
    • Pins: SQW, SCL, SDA, VCC, GND.
  3. LED: Two Pin (blue)

    • Description: A blue LED with two pins.
    • Pins: Cathode, Anode.
  4. Adafruit SDIO microSD Breakout

    • Description: A microSD card breakout board.
    • Pins: 3.3V, GND, SCLK, DO, DI, CS, DAT1, DAT2, CARDDET.
  5. Pushbutton

    • Description: A simple pushbutton switch.
    • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in).
  6. 0.96" OLED

    • Description: A small OLED display.
    • Pins: GND, VDD, SCK, SDA.
  7. DGS

    • Description: A generic component placeholder.
    • Pins: None specified.
  8. Resistor

    • Description: A resistor with a resistance of 220 Ohms.
    • Pins: Pin1, Pin2.

Wiring Details

Arduino Mega 2560

Adafruit DS1307 RTC Breakout

LED: Two Pin (blue)

Adafruit SDIO microSD Breakout

Pushbutton

0.96" OLED

Resistor

DGS

Documented Code

Arduino Mega 2560 Code

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

}

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

}

This code is a basic template for the Arduino Mega 2560. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main code that runs repeatedly.