Skip to Main Content
Creative DIY Microcontroller Projects with TinyGo and WebAssembly
book

Creative DIY Microcontroller Projects with TinyGo and WebAssembly

by Tobias Theel
May 2021
Intermediate to advanced content levelIntermediate to advanced
322 pages
5h 24m
English
Packt Publishing
Content preview from Creative DIY Microcontroller Projects with TinyGo and WebAssembly

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

DIY Microcontroller Projects for Hobbyists

DIY Microcontroller Projects for Hobbyists

Miguel Angel Garcia-Ruiz, Pedro Cesar Santana Mancilla
Arduino Cookbook, 3rd Edition

Arduino Cookbook, 3rd Edition

Michael Margolis, Brian Jepson, Nicholas Robert Weldin

Publisher Resources

ISBN: 9781800560208Supplemental Content