Timer Arduino based button switch programmed Electrical socket

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 7

  • @raphealayomide6088
    @raphealayomide6088 Рік тому +1

    Nice project sir.
    I do have some questions sir.
    1. Having uploaded the code and building the circuit, I was unable to set the period for minutes and hours, what could be wrong?
    2. According to the video you only set the period to 14secs, have you tried setting the minutes and hours as well?
    if (settings == true)
    {
    lcd.clear();
    lcd.print("Power ON!");
    lcd.setCursor(0, 1);
    lcd.print("Time left:");
    lcd.print(seconds);
    lcd.print("sec");
    lcd.blink();
    digitalWrite(relay, HIGH); // turn on relay
    seconds--;
    delay(1000);
    }
    3. According to the lines of code (from your sketch) above, the device will only countdown the seconds neglecting the minutes and hours.
    4. Also, the variables 'seconds', 'minutes' and 'hours' are not highlighted as yours in my arduino IDE, could that be the IDE(Arduino 1.8.15) I am using?
    Thanks for your reply in advance.

  • @TaradjaMutwale-xf2dr
    @TaradjaMutwale-xf2dr Рік тому +1

    Nice project ir
    Can y have a code and circuit diagram?please 😇