9 Arduino Uno Digital Scale using Block Coding Tinkercad
Автор: Curious Wanderer
Загружено: 2025-07-02
Просмотров: 68
Описание:
📏 Ultrasonic Sensor + I2C LCD – Arduino Uno with Block Coding on Tinkercad | Distance Display System
🔰 1) Introduction:
In this interactive project, we use an Ultrasonic Sensor (HC-SR04) to measure distance and display it on a 16x2 I2C LCD screen using an Arduino Uno. The project is built and simulated using Tinkercad Circuits, with both Block Code and C++ code options. It introduces basic sensor interfacing and I2C communication.
💡 2) Explanation:
The HC-SR04 ultrasonic sensor uses sound waves to measure distance by calculating the time it takes for an echo to return.
Short distance = fast echo = lower duration value
Long distance = slow echo = higher duration value
In this project:
We use digital pin 2 (TRIG) and pin 3 (ECHO) for the ultrasonic sensor
We read the travel time of the sound pulse
We convert that time into distance in centimeters
The distance is then displayed on the I2C LCD screen in real time
🔧 3) Components Used:
Arduino Uno
HC-SR04 Ultrasonic Sensor
16x2 LCD Display with I2C Module
Breadboard and Jumper Wires
Tinkercad Circuits (for simulation)
🧩 4) Circuit Connections:
Ultrasonic Sensor (HC-SR04):
VCC → 5V
GND → GND
TRIG → Pin 2
ECHO → Pin 3
I2C LCD Display:
VCC → 5V
GND → GND
SDA → SDA (A4) on Arduino Uno
SCL → SCL (A5) on Arduino Uno
📟 Working:
The Arduino sends a 10-microsecond pulse to the TRIG pin
The ECHO pin measures the time it takes for the echo to return
This time is converted into distance using the formula
The calculated distance is printed on the I2C LCD screen
You can also see the distance in real-time on the Serial Monitor (optional)
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: