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

Arduino UNO-Based Data Logger with RTC and Loop Detection

Image of Arduino UNO-Based Data Logger with RTC and Loop Detection

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an I2C LCD 16x2 screen, a Real-Time Clock (RTC) module DS3231, multiple pushbuttons, a micro SD card module, resistors, a loop detector, and a copper coil. The circuit is designed to interface with various peripherals using digital I/O, I2C communication, and external storage capabilities. The Arduino UNO serves as the central processing unit, controlling the LCD screen, reading from the RTC, detecting button presses, and interfacing with the SD card module. The loop detector and copper coil are part of a sensing mechanism.

Component List

  • I2C LCD 16x2 Screen: A display module for showing text, which communicates with the Arduino UNO via the I2C protocol.
  • Arduino UNO: A microcontroller board based on the ATmega328P, with digital and analog I/O pins.
  • Pushbutton: A momentary switch that can be used to input binary signals to the Arduino UNO.
  • Micro SD Card Module: A module that allows the Arduino UNO to read from and write to a micro SD card.
  • Resistor: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
  • RTC DS3231: A real-time clock module for keeping track of the current time and date.
  • Loop Detector: A device used to detect the presence or absence of a vehicle using an inductive loop.
  • Copper Coil: A coil of copper wire that creates a magnetic field when current passes through it, used in conjunction with the loop detector.

Wiring Details

I2C LCD 16x2 Screen

  • SCL: Connected to Arduino UNO A5 (I2C clock).
  • SDA: Connected to Arduino UNO A4 (I2C data).
  • VCC (5V): Connected to Arduino UNO 5V.
  • GND: Connected to common ground.

Arduino UNO

  • A4/A5 (SDA/SCL): Used for I2C communication with the LCD screen and RTC module.
  • D10-D13: Used for interfacing with the micro SD card module.
  • D3-D6: Connected to pushbuttons through resistors.
  • 5V and GND: Power supply lines for the circuit.

Pushbuttons

  • Pin 4 (out): Connected to Arduino UNO digital pins D3, D4, and D5.
  • Pin 1 (in): Connected to one end of a 10k Ohm resistor, the other end of which is connected to ground.

Micro SD Card Module

  • cs: Connected to Arduino UNO D10.
  • sck: Connected to Arduino UNO D13.
  • mosi: Connected to Arduino UNO D11.
  • miso: Connected to Arduino UNO D12.
  • vcc: Connected to Arduino UNO 5V.
  • gnd: Connected to common ground.

Resistor

  • pin1: Connected to common ground.
  • pin2: Connected to pushbutton Pin 1 (in).

RTC DS3231

  • SCL: Connected to Arduino UNO A5 (I2C clock).
  • SDA: Connected to Arduino UNO A4 (I2C data).
  • VCC: Connected to Arduino UNO 5V.
  • GND: Connected to common ground.

Loop Detector

  • 22/5: Connected to Arduino UNO D6.
  • 32/8: Connected to copper coil -ve.
  • 24/7: Connected to copper coil +ve.

Copper Coil

  • -ve: Connected to loop detector 32/8.
  • +ve: Connected to loop detector 24/7.

Documented Code

Arduino UNO 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 this file.