Random Stuff We Make!
Published © GPL3+

Corona Hand Wash Timer

A cool timer gadget to teach your kids about washing hands for twenty seconds.

BeginnerFull instructions provided8,257

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
RGB Diffused Common Cathode
RGB Diffused Common Cathode
×1
IR Transceiver (Generic)
×1
UTSOURCE Electronic Parts
UTSOURCE Electronic Parts
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Tape, Double Sided
Tape, Double Sided

Story

Read more

Schematics

Schematics

Make the circuit like shown below

Code

Code

Arduino
Use Arduino IDE to upload the code
/* The following code is developed by members of Random Stuff Community.
   for further information or ideas, please keep following "Random Stuff We Make" on instagram
*/

void setup() 
{
pinMode(2,OUTPUT); //RED
pinMode(3,OUTPUT); //GREEN
pinMode(4,OUTPUT); //BLUE
pinMode(5,INPUT);  //IR sensor
Serial.begin(9600);
}

void loop() 
{
  int a= digitalRead(5);
  Serial.println(a);
  delay(100);

  digitalWrite(2,LOW); //RED off
  digitalWrite(3,HIGH); //GREEN on by default
  digitalWrite(4,LOW); //BLUE off

  if(a==1)
  { 
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
            
       for(int i=0; i<20; i++)
         {
            digitalWrite(2,HIGH);
            delay(1000);
         }  
     digitalWrite(2,LOW);
  }
}

Credits

Random Stuff We Make!

Random Stuff We Make!

5 projects • 7 followers
We at RSWM! try to bring Fiction to Reality through projects which are Interactive, Creative & way too simpler in terms of making.

Comments