newproyecto
Published © GPL3+

1 minute timer temporizador 1 minuto

Temporizador lcd I2C lcd timer I2C

IntermediateFull instructions provided1 hour111
1 minute timer temporizador 1 minuto

Things used in this project

Story

Read more

Schematics

sizzling_migelo-allis_(2)_HqFabGE2Oq.png

operating video video de funcionamiento

Code

code

Arduino
this code is made to modify for 2 minutes is in the first delay 120000, 3 minutes: 180000
4 minutes 240000, 5 minutes: 300000 6 minutes: 360000, 7 minutes, 420000, 8 minutes: 480000,
9 minutes: 540000, 10 minutes: 600000 etc.

este codigo esta hecho para modificar para 2 minutos es en el primer delay 120000, 3 minutos: 180000
4 minutos 240000, 5 minutos: 300000 6 minutos: 360000, 7 minutos , 420000, 8 minutos: 480000,
9 minutos: 540000, 10 minutos : 600000 etcetera
Attention wait 1 is that the account is already running
 
atencion wait 1 significa que la cuenta va corriendo
#include <Wire.h>                 
#include <LiquidCrystal_I2C.h>    

LiquidCrystal_I2C lcd(0x27,16,2); 
                                  
int buz = 12;
int btn = 13;
void setup(){
  lcd.init();                     
  lcd.backlight();               
  pinMode (btn,INPUT);
  pinMode (buz,OUTPUT);
}

void loop(){
 if (digitalRead(btn)==HIGH){
  lcd.setCursor(0, 0);      
  lcd.print("wait1");    
  delay (60000);
  lcd.setCursor(0, 0);      
  lcd.print("ended");
  digitalWrite (buz, HIGH);
  delay (1000);
  lcd.setCursor(0, 0);      
  lcd.print("ended");
  digitalWrite (buz, LOW);
  delay (1000);
  }
  else{
  lcd.setCursor(0, 0);      
  lcd.print("wait0");
  digitalWrite (buz, LOW);
}
}

Credits

newproyecto

newproyecto

1 project • 0 followers
every 100 views I will upload a video of how the project works

Comments