Mukesh Sankhla
Published © GPL3+

DIY Hand Wash Reminder

Hand Wash Reminder is a Hand Band which reminds you to wash your hands after every 20 minutes.

BeginnerFull instructions provided4 hours3,858
DIY Hand Wash Reminder

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
SparkFun RGB LED Breakout - WS2812B
SparkFun RGB LED Breakout - WS2812B
×1
Battery, 3.7 V
Battery, 3.7 V
×1
Rocker Switch, Non Illuminated
Rocker Switch, Non Illuminated
×1
Grove - Vibration Sensor (SW-420)
Seeed Studio Grove - Vibration Sensor (SW-420)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Custom parts and enclosures

Circuit Connectio

Hand Band Clip

3D Body

Schematics

Circuit Diagram

img_20200607_150720_Vjd221kya5.jpg

Code

Arduino Code

Arduino
#include<FastLED.h>

#define LED_PIN     3
#define NUM_LEDS    1
#define LED_TYPE    WS2812B
#define COLOR_ORDER GRB
#define BRIGHTNESS  100
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100

void setup() 
{
  Serial.begin(9600);
  FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS);
  FastLED.setBrightness(  BRIGHTNESS );
}

void loop() 
{
    Serial.print("Start\n");
    for(int i=0;i<=3000;i++)
    {
    static uint8_t hue = 0;
    for(int i = 0; i < NUM_LEDS; i++) 
    {
    leds[i] = CHSV(hue++, 255, 255);
    FastLED.show(); 
    fadeall();
    delay(10);
    }
    }
    for(int i=0;i<20;i++)
    {
      leds[0] = CRGB(0,255,0);
      FastLED.show();
      delay(60000);
    }
    while(1)
    {
      leds[0] = CRGB(255,0,0);
      FastLED.show();
    }
}
void fadeall()
{ 
  for(int i = 0; i < NUM_LEDS; i++) 
  { 
    leds[i].nscale8(250);
  }
}

Credits

Mukesh Sankhla

Mukesh Sankhla

25 projects • 37 followers
🧑‍💻Passionate software engineer at Siemens, dedicated to driving digitalization by day.🧑‍🏭By night, I'm a Maker.

Comments