Jayraj Desai
Published © GPL3+

Waterproof 10 Minute Timer

It is a small handy 3 bit binary counter that counts up to 10 minutes. Did I mention it's water proof?

BeginnerFull instructions provided1 hour1,007
Waterproof 10 Minute Timer

Things used in this project

Hardware components

ATtiny85
Microchip Technology ATtiny85
Low voltage version of attiny85 i.e. attiny85v
×1
Resistor 2.21k ohm
Resistor 2.21k ohm
×3
LED (generic)
LED (generic)
3 mm LEDs
×3
Latching push button DPDT switch
×1
DIP-8 IC socket
×1
Coin Cell Battery CR2032
Coin Cell Battery CR2032
×1
CR2032 button cell holder
×1
general purpose circuit board
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
solder wire
silicone sealant

Story

Read more

Schematics

breadboard view with schematic

Code

Arduino code for waterproof 10 minute timer

Arduino
int count = 0;

void setup() {
  // initialise digital pin 0,1, and 2 as output
  pinMode (0, OUTPUT);
  pinMode (1, OUTPUT);
  pinMode (2, OUTPUT);

  //set them low
  digitalWrite(0,LOW);
  digitalWrite(1,LOW);
  digitalWrite(2,LOW);

  //waiting for intial 2 mins
  delay(120000);
}

// put your main code here, to run repeatedly:
void loop() {
  //update LEDs every 60 secs
  delay(60000);
  count = count + 1;
  set_LEDs(count);
}

void set_LEDs(int count){
  if((count & 1) == 1){
    digitalWrite(0,HIGH);
  }else{
    digitalWrite(0,LOW);
  }

  if((count & 2) == 2){
    digitalWrite(1,HIGH);
  }else{
    digitalWrite(1,LOW);
  }

  if((count & 4) == 4){
    digitalWrite(2,HIGH);
  }else{
    digitalWrite(2,LOW);
  }
}

Credits

Jayraj Desai

Jayraj Desai

10 projects • 66 followers
Just a Hobbyist, trying things

Comments