กลับไปหน้ารวมไฟล์
display-time-date-i2c-lcd-and-ds3231-real-time-clock-visuino-184f26-en.md

VIDEO TUTORIAL

In this video, I will demonstrate the circuit connection in detail, along with a step-by-step walkthrough of creating the project on Visuino.

A Shortcut to the World of Arduino for Beginners

Stepping into the world of Embedded Systems with an Arduino board often comes with daunting challenges, especially for those without prior C++ programming knowledge. When we try to combine multiple devices beyond basic Starter Kit projects, issues with Code Syntax and Logic frequently become major obstacles.

I had attempted to build this project several times without success until I discovered Visuino, a very powerful Visual Programming development environment for Makers. This software is designed to break down the coding barrier, allowing us to fully focus on Logic and the interaction of Physical Computing devices by placing Component blocks and drawing data connection lines instead of typing commands.

System Component Details and Operation

In this project, we focus on building an automated system that responds to its environment, featuring the following main devices:

  1. Arduino Board: Serves as the main "brain" for processing the Logic we design in Visuino.
  2. PIR Sensor (Passive Infrared Sensor): A motion detection sensor that works by measuring infrared radiation from warm objects (such as the human body). The sensor has a Fresnel lens to expand its detection range. When there is a change in the infrared level, a Digital Output signal is sent to the Arduino.
  3. Relay Module: Since Arduino operates at low voltage (5V DC) but we want to control larger electrical devices (e.g., AC lights), the Relay acts as an electromagnetic switch that helps isolate the low-voltage circuit from the high-voltage circuit for safety and efficient control.

Circuit Diagram (Schematic)

Circuit design (Schematic) is the heart of any Hardware project. This project systematically allocates Input signals from the sensor and sends Output to the Relay module to ensure correct current flow and minimize signal interference.

Circuit diagram showing connections between Arduino Pins, PIR Sensor, and Relay.

Layout & Control Logic

The internal operational Logic in Visuino is simple yet effective:

  • Input Stage: A Digital Input block receives values from the PIR Sensor. When motion is detected, the status will be True (High).
  • Processing Stage: We can add On/Off Switch or Pulse Generator blocks to specify how long the Relay should remain active after the sensor stops detecting motion.
  • Output Stage: Data is sent to the Digital Output Pin connected to the Relay to "flip the switch" and activate the electrical appliance.
Caution: Always ensure all wires are securely and correctly connected according to the diagram before powering up the Arduino board to prevent damage to the microcontroller.

Using Visuino allows us to visualize the overall Data Flow from start to finish, making Debugging or future system improvements much easier, even if you have no prior Coding experience.

ข้อมูล Frontmatter ดั้งเดิม

title: "Display Time Date-I2C LCD and DS3231 Real Time Clock-Visuino"
description: "If you are new to Arduino like I am then Visuino can be a useful tool!"
author: "Tishin"
category: ""
tags:
  - "date"
  - "display"
  - "time"
views: 41554
likes: 7
price: 1120
difficulty: "Easy"
components:
  - "1x Arduino UNO"
  - "1x Solderless Breadboard Half Size"
  - "8x Female/Female Jumper Wires"
  - "3x Male/Male Jumper Wires"
  - "1x DS3231 Real Time Clock"
  - "1x I2C 16x2 Arduino LCD Display Module"
tools: []
apps:
  - "1x Visuino - Graphical Development Environment for Arduino"
  - "1x Arduino Web Editor"
  - "1x Arduino IDE"
downloadableFiles:
  - "https://create.arduino.cc/editor/Tishin/61178555-077d-408d-81a9-875e918a7b24/preview"
  - "https://create.arduino.cc/editor/Tishin/61178555-077d-408d-81a9-875e918a7b24/preview"
documentationLinks: []
passwordHash: "0551505838b38d07bfbf6f53ac2110798b5e487074c90ae7743bd3f9eedc5bf2"
encryptedPayload: "U2FsdGVkX1/EsncDT1uQvmZDoII8DLfADLWyqWlmliCnLjnfaM4qmNgkXI6j4ZqoUD+wLUj+NmjePe5O0u9p5pq5RKd3P9XvO91ezrrAJJ4AOU15f+X6EoUOVwz+Dr70dBIMQusI8DxumtiZ9S1/7UwL9+OpYps+IYLalS80YeJmpEL2MqbrrwJRvGIhiaoCrVcFP8hNtPSVGBJLf9oYFg=="
seoDescription: "Display Time and Date on I2C LCD using DS3231 Real Time Clock and Visuino. Perfect for Arduino beginners."
videoLinks:
  - "https://www.youtube.com/embed/n9UIPn8gDqk"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/display-time-date-i2c-lcd-and-ds3231-real-time-clock-visuino-184f26_cover.jpg"
lang: "en"