Arduino UNO multiples of 3 project for beginners

SCHEMATIC:

Hello thi is an arduino uno project for beginners.
This Arduino code demonstrates a simple embedded electronics project that utilizes a Liquid Crystal Display (LCD) to count from 1 to 100 while controlling an LED. The program initializes the LCD and displays a message prompting users to subscribe to the YouTube channel Easy Electronics for more tutorials on embedded systems.
In the setup() function, the LCD is configured for a 16x2 display, and an initial message is shown. The loop() function counts from 1 to 100, updating the display with the current count. Every time the count reaches a multiple of 3, the LED connected to pin 13 blinks on for one second, allowing users to see the visual feedback. After counting, the final count and the number of LED blinks are displayed on the LCD.
This project is ideal for beginners interested in learning about LCD interfacing, LED control, and basic Arduino programming. It provides a practical example of how to integrate these components in a fun and engaging way.
- Arduino projects
- Liquid Crystal Display (LCD)
- LED blinking tutorial
- Embedded electronics
- Easy Electronics tutorials
- Arduino programming for beginners
- Electronics projects for beginners
- LCD interfacing with Arduino
- DIY electronics projects
- Arduino LED control
Get full project from here: https://drive.google.com/file/d/143rSyeuJbVLbGrGWEER-oxs5EO3jjmTq/view?usp=drive_link
CODE:
#include<LiquidCrystal.h>
// visit my channel for embedded electronics tutorials: https://www.youtube.com/@EasyElectronics2
// Initialize the LCD, setting the pins connected to the LCD
LiquidCrystal lcd(12, 11, 5, 4, 3, 2, 10, 9, 8, 7);
// Define the LED pin
const int ledPin = 13;
// Define the LED blink counter
int ledBlinks = 0;
void setup() {
// Initialize the LCD display
lcd.begin(16, 2);
// Initialize the LED pin as output mode
lcd.print("Subscribe!!");
delay(1000);
pinMode(ledPin, OUTPUT);
// Clear the LCD display
lcd.clear();
// Display initial message
lcd.print("Counting to 100โฆ");
}
void loop() {
for (int count = 1; count <= 100; count++) {
// Each time the counter is incremented, display it on the LCD
lcd.clear(); // Clear the LCD display
lcd.setCursor(0, 0);
lcd.print("Count: ");
lcd.print(count);
// Check if the count is a multiple of 3
if (count % 3 == 0) {
// Turn on the LED
digitalWrite(ledPin, HIGH);
// Wait for one second so you can see the LED light up
delay(1000);
// Turn off the LED
digitalWrite(ledPin, LOW);
// Increment the LED blink counter
ledBlinks++;
}
// Wait a bit before continuing to count so you can read the numbers on the LCD
delay(1000);
}
// After counting, display the final message
lcd.clear();
lcd.print("Done! Counted to 100");
lcd.setCursor(0, 1); // Move the cursor to the second line
lcd.print("LED Blinks: ");
lcd.print(ledBlinks);
// Stop the program
while (true);
}
Watch tutorial on my channel and subscribe:
You may also like
EmbedLab Team
Embedded systems engineer and educator. Writes weekly tutorials at EmbedLab to help beginners ship real hardware.
Related projects
Arduino and shift register
Project Description This Arduino project with code is a smart parking status display system designed to monitor and show the availability of parking spots in real-time. It leverages a 74HC165 s
Arduino traffic lights
This project implements a traffic light system with a countdown timer , designed using an Arduino microcontroller. It controls a sequence of traffic lights (red, yellow, and green) and a 7-segme
Arduino and Multiplexer
Hello In this article we will see how you can increase the output of the Arduino UNO board by using the 74HC4051 Multiplixer , we wil controll 8 LEDS! This Project is simulated using Proteu
Arduino UNO and EEPROM
Project Description: EEPROM SPI Communication with Arduino In this quick tutorial, we'll explore how to communicate with an EEPROM (Electrically Erasable Programmable Read-Only Memory) using SPI (Seri
Arduino buzzer + 4511 bcd + 7SEG
This Arduino code implements a countdown timer with a 7-segment display driven by a 4511 IC, a buzzer for an alarm, and an optional start/reset button. Here's a brief explanation: Components and



