Technical requirements
We are going to need the following components for this project:
- An Arduino Nano 33 IoT
- An HC-SR04 sensor
- An external power supply module
- HS420561K 4-Digit 7-segment display common cathode
- A MAX7219 or MAX7221 serial input/output common-cathode display driver
- One 10,000 Ohm resistor
- One 1,000 Ohm resistor
- One 2,000 Ohm resistor
- 2 breadboards
- Jumper wire cables
Most of the components are part of the so-called Arduino Starter Kit. If you do not have such a set, they can be acquired at any electronics supply store.
You can find the code for this chapter on GitHub at https://github.com/PacktPublishing/Creative-DIY-Microcontroller-Projects-with-TinyGo-and-WebAssembly/tree/master/Chapter05
The Code in Action video for the chapter can be found here: https://bit.ly/3e2IYgG