How to Build a Raspberry Pi Hand Washing Timer

Raspberry Pi Hand Washing Timer
(Image credit: Tom's Hardware)

Due to the global pandemic, I’ve seen both useful and funny COVID-19 hacks everywhere. I thought I would make my own COVID life hack with a hand washing timer that is motion triggered and plays a 20-second music clip. Why 20 seconds? Health officials are recommending that we wash our hands often and for at least 20 seconds each time. When I reach for my soap, I trigger this hand washing timer to play a music clip and the display will countdown for 20-seconds.

This is a four part tutorial. In Part 1, you’ll learn how to connect your Raspberry Pi to an external speaker and play music clips via VLC through a Python script. Part 2 is all about adding a 16X2 LCD screen and adjusting contrast. In Part 3, we add the ultrasonic sensor and learn how to measure distance. In Part 4, we pull it all together by triggering the music and the countdown display with the ultrasonic sensor.

Contributor

Caroline Dunn is a freelance writer for Tom's Hardware. Her expertise lies in covering Raspberry Pi projects, creating video tutorials, writing guides, and exploring other entertaining tech DIY initiatives.

  • kep55
    What a waste of time, money and effort. Just run down to WallyWorld and buy a sand time or cheap digital timer.
    Reply
  • bledd
    kep55 said:
    What a waste of time, money and effort. Just run down to WallyWorld and buy a sand time or cheap digital timer.

    Seems a decent project from a learning perspective.

    Could also turn it into a t-rex evasion tool. Plays scary music if you aren't staying still :D
    Reply
  • LordConrad
    If you can't count to 20, you need more than a timer, you need to repeat Elementary school!
    Reply
  • psj20
    What an overkill. its like taking a sledgehammer to crack a nut. This is not Pi territory, hell its not even arduino territory. maybe an arduino with attiny. frankly you can do it even without a microcontroller.
    Reply