Monitoring a simple Reed switch "puzzle" in Node-RED (Patreon)
Content
Hi folks - I'm super-pleased to hear that some of you have been trying out Node-RED after following my last few videos! I know that there's quite a steep learning curve and lots to get your head around, so in this latest video I've tried to create a really basic "Hello World" example of how to connect an Arduino to Node-RED - it uses a single Reed switch to detect the presence of a magnet, and the Arduino then uses Serial.print to send a 1 or 0 value over the USB cable to the PC.
Rather than just displaying that value as a debug message on the Arduino IDE serial monitor (which I've done in previous videos), the PC uses the "Serial In" node to read that value as input to a Node-RED flow, and displays the result on a live-updated web dashboard. This is the basic building block from which you can build more complicated GM dashboards to monitor the state of all the puzzles in your ER room.
If you're not onboard with the whole Node-RED thing, don't panic! I'll be returning to doing some more traditional Arduino ER Puzzle tutorials after Christmas. My plan is to then include Node-RED integration as an "optional extra" in all my future tutorials, so you can take it or leave it, but I really want to try to show off some more cool Node-RED stuff first. I'm hoping to get out the way during the rest of November and December.
As always, thankyou for your ongoing support - you're all lovely. And please ask if you have any questions. x