Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
evil_jinx
Published

New Year Countdown!

A classic 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, HAPPY NEW YEAR!! formula. Easy to build with classic electronic components.

IntermediateFull instructions provided287
New Year Countdown!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×16
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1

Story

Read more

Schematics

Schematic for the wiring

Code

The code that powers this project.

C/C++
It's a very simple coding, you can learn for it since I explained everything that's happening.
#include <LiquidCrystal.h> //include the LiquidCrystal.h library

LiquidCrystal lcd(7, 8, 9, 10, 11, 12); //declare which digital pins are controlled by the variable "lcd"

void setup() {
lcd.begin(16, 2); //declare the size of the LCD display (16x2)

lcd.print("10,");
delay(1000);
lcd.print("9,");
delay(1000);
lcd.print("8,");
delay(1000);
lcd.print("7,");
delay(1000);
lcd.print("6,");
lcd.setCursor(0, 1);
delay(1000);
lcd.print("5,");
delay(1000);
lcd.print("4,");
delay(1000);
lcd.print("3,");
delay(1000);
lcd.print("2,");
delay(1000);
lcd.print("1,");
delay(1000); 
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("HAPPY NEW YEAR!! ");
}
void loop() {
}

Credits

evil_jinx
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.