Chapter 5: Building a Touchless Handwash Timer
In Chapter 4, Building a Plant Watering System, we learned how the ADC interface works, and we used that knowledge to write libraries for a capacitive soil moisture sensor and a water level sensor. We also wrote a small library to control a buzzer and learned how relays work and used that knowledge to control a pump using our code. Then we used all this knowledge to build an automated plant watering system.
In this chapter, we are going to build a touchless handwash timer. After working through this chapter, you will know how ultrasonic sound sensors work and how to measure distance with them. We are going to utilize this knowledge to create a sensor that recognizes a hand that is between 20 and ...
Get Creative DIY Microcontroller Projects with TinyGo and WebAssembly now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.