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

Arduino UNO Controlled Servomotor with RTC and I2C LCD Interface

Image of Arduino UNO Controlled Servomotor with RTC and I2C LCD Interface

Circuit Documentation

Summary of the Circuit

This circuit is designed to interface an Arduino UNO with a variety of peripherals including a 4×4 Keypad, an I2C LCD 16x2 Screen, a Real-Time Clock (RTC-DS1302), and a Servomotor MG90S. The Arduino UNO serves as the central processing unit, controlling the input from the keypad, displaying information on the LCD screen, keeping track of time with the RTC, and driving the servomotor based on the program logic. The battery provides power to the entire circuit.

Component List

Battery

  • Description: Provides power to the circuit.
  • Pins: + (positive), - (negative)

4×4 Keypad

  • Description: An input device with 16 keys arranged in a 4x4 matrix.
  • Pins: C3, C2, C4, C1, R1, R2, R3, R4

Arduino UNO

  • Description: A microcontroller board based on the ATmega328P.
  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0 to A5, SCL, SDA, AREF, D13 to D0

I2C LCD 16x2 Screen

  • Description: A liquid crystal display capable of showing 2 lines of 16 characters each.
  • Pins: SCL, SDA, VCC (5V), GND, VDD, VO, RS, RW, E, D0 to D7, BLA, BLK

RTC-DS1302

  • Description: A real-time clock module for keeping track of the current time.
  • Pins: Vcc, GND, CLK, DAT, RST

Servomotor MG90S

  • Description: A small and lightweight servo motor for precise angular movement.
  • Pins: SIG, VCC, GND

Wiring Details

Battery

  • Connections:
    • + to VCC of Servomotor MG90S, RTC-DS1302, and I2C LCD 16x2 Screen
    • - to GND of Servomotor MG90S, RTC-DS1302, and I2C LCD 16x2 Screen

4×4 Keypad

  • Connections:
    • C3 to D8 on Arduino UNO
    • C2 to D7 on Arduino UNO
    • C4 to D9 on Arduino UNO
    • C1 to D6 on Arduino UNO
    • R1 to D5 on Arduino UNO
    • R2 to D4 on Arduino UNO
    • R3 to D3 on Arduino UNO
    • R4 to D2 on Arduino UNO

Arduino UNO

  • Connections:
    • A5 to SCL on I2C LCD 16x2 Screen
    • A4 to SDA on I2C LCD 16x2 Screen
    • D13 to SIG on Servomotor MG90S
    • D12 to CLK on RTC-DS1302
    • D11 to DAT on RTC-DS1302
    • D10 to RST on RTC-DS1302

I2C LCD 16x2 Screen

  • Connections:
    • SCL to A5 on Arduino UNO
    • SDA to A4 on Arduino UNO
    • VCC (5V) to + on Battery
    • GND to - on Battery

RTC-DS1302

  • Connections:
    • Vcc to + on Battery
    • GND to - on Battery
    • CLK to D12 on Arduino UNO
    • DAT to D11 on Arduino UNO
    • RST to D10 on Arduino UNO

Servomotor MG90S

  • Connections:
    • SIG to D13 on Arduino UNO
    • VCC to + on Battery
    • GND to - on Battery

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:

}

Note: The provided code is a template and does not contain any specific logic. It needs to be filled in with the actual code to control the components as per the circuit's requirements.