laet_georg_rphe
Published © CC BY-NC-SA

"Pomodoro" Timer Prototype

Never work late with your "pomodoro" timer !

BeginnerWork in progress272
"Pomodoro" Timer Prototype

Things used in this project

Hardware components

5 mm LED: Red
5 mm LED: Red
×1
5 mm LED: Yellow
5 mm LED: Yellow
×3
5 mm LED: Green
5 mm LED: Green
×4
Resistor 221 ohm
Resistor 221 ohm
×8
Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×9

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic View

Pomodoro Minuter Picture

Code

Pomodoro time

C/C++
Download and upload code
// C++ code
//
void setup()
{
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
}

void loop()
{
  digitalWrite(2, HIGH);
  delay(1500000); // Wait for 1500000 millisecond(s)
  digitalWrite(2, LOW);
  digitalWrite(3, HIGH);
  delay(300000); // Wait for 300000 millisecond(s)
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  delay(1500000); // Wait for 1500000 millisecond(s)
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  delay(300000); // Wait for 300000 millisecond(s)
  digitalWrite(5, LOW);
  digitalWrite(6, HIGH);
  delay(1500000); // Wait for 1500000 millisecond(s)
  digitalWrite(6, LOW);
  digitalWrite(7, HIGH);
  delay(300000); // Wait for 300000 millisecond(s)
  digitalWrite(7, LOW);
  digitalWrite(8, HIGH);
  delay(1500000); // Wait for 1500000 millisecond(s)
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  delay(1800000); // Wait for 1800000 millisecond(s)
  digitalWrite(9, LOW);
}

Pomodoro test code

C/C++
// C++ code
//
int LED_R1 = 0;

int LED_V2 = 0;

int LED_R2 = 0;

int LED_V1 = 0;

int LED_R3 = 0;

int LED_V3 = 0;

int interrupteur = 0;

void setup()
{
  pinMode(2, OUTPUT);
  pinMode(3, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(8, OUTPUT);
  pinMode(9, OUTPUT);
}

void loop()
{
  digitalWrite(2, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(2, LOW);
  digitalWrite(3, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(3, LOW);
  digitalWrite(4, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(4, LOW);
  digitalWrite(5, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(5, LOW);
  digitalWrite(6, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(6, LOW);
  digitalWrite(7, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(7, LOW);
  digitalWrite(8, HIGH);
  delay(2000); // Wait for 2000 millisecond(s)
  digitalWrite(8, LOW);
  digitalWrite(9, HIGH);
  delay(5000); // Wait for 5000 millisecond(s)
  digitalWrite(9, LOW);
}

Credits

laet_georg_rphe

laet_georg_rphe

1 project • 0 followers

Comments