ESP32 and Node-RED Pressure Pad Lap Counter (Patreon)
Downloads
Content
Hi folks! This is not an escape room puzzle as such, but this project still demonstrates ESP32, a pressure pad sensor, MQTT, and Node-RED, which are all pieces of tech that have many uses in escape rooms.... I hope you'll find it useful.
This is a tutorial project inspired by Captain Tom Moore, who is a British war veteran who has raised £30 million for the NHS by completing 100 laps of his garden and celebrates his 100th birthday tomorrow. It uses a pressure mat sensor attached to an ESP32 as a "lap counter" - sending an MQTT message to update a Node-RED dashboard running on a display screen, and playing a sound effect each time it is stepped on.
Hardware/Software used:
ESP32, ~$7 from, e.g. https://www.banggood.com/custlink/GvmKq6b0Rt
Pressure mat, ~$15 from, e.g. https://www.ebay.co.uk/itm/PRESSURE-MAT-PAD-ALARM-MEDIUM-720MM-X-390MM-X-3MM-FLOOR-DOOR-BEDSIDE-SECURITY/192978582555
Node-RED, free, from https://nodered.org/
Timings:
00:00-01:26 Introduction
01:27-01:53 Demonstration
01:54-04:24 Hardware
04:25-21:59 ESP code
22:00-37:18 Node-RED flow
37:19-38:14 Wrapup
You'll find the downloads for the ESP code and for the Node-RED dashboard attached to this post. Please ask if you have any questions!