Hugo Blanc
Published

Simple LCD Timer With Arduino UNO

This is how to make your own LCD timer, just with an Arduino, a LCD screen and some hook-up wires.

BeginnerShowcase (no instructions)30 minutes38,845
Simple LCD Timer With Arduino UNO

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LCD screen
×1
10k potentiometer
×1
Resistor 220 ohm
Resistor 220 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Main scheme

Code

Timer.c

C/C++
#include <LiquidCrystal.h>

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

signed short minutes, secondes;
char timeline[16];

void setup() {

  lcd.begin(16, 2);
  lcd.print("Chronometre :");


}

void loop() {

  lcd.setCursor(0, 1);
  sprintf(timeline,"%0.2d mins %0.2d secs", minutes, secondes);
  lcd.print(timeline);
  
  delay(1000);
  secondes++;
  
  if (secondes == 60)
  {
    secondes = 0;
    minutes ++;
  }

}

Credits

Hugo Blanc

Hugo Blanc

4 projects • 7 followers
Student learning computer science and electronics {thinks out of the brackets}

Comments