The TIG stack is a modification of the TICK stack, which is a group of applications provided by InfluxData. It is comprised of applications that receive, store, visualize, and act on time-based data. We’ll only be using the “T” and “I” components of the TICK stack (Telegraf and InfluxDB) and we’ll be adding the “G” as Grafana for our visualization.
In part II of the tutorial, we got our NodeMCU flashed, and optionally set up some sensors on another NodeMCU. In this tutorial, we’ll set up our MQTT and Node-Red servers, which will give us the ability to relay and take action on data that we receive.
In part I of the tutorial, we got our relay hardware all set up and ready to go. Now it’s time to get the our NodeMCU firmware squared away. Optionally, at the end of this tutorial, I’ll show you how to set up another NodeMCU with some sensors.
My newest hobby is mucking around with the Internet of Things (IoT). A while back I bought several NodeMCU’s from eBay for almost nothing. Along with a relay board (also from eBay), some creative wiring, and a bit of software, I’ve managed to put together a neato remote controlled relay board. In this demo I’ll actually use two NodeMCU’s, one to handle capturing some data from some sensors, and another as part of the relay build.
If you follow this tutorial in entirety, you’ll get a completely functional system where you can remotely turn outlets on/off, and add rules and logic to your setup to do have the outlets turn on and off under certain situations. We’ll be setting our system up to turn on an outlet when our sensor node detects humidity over a certain level.
I’m back on my HAM radio. It’s been a while! Check out my radio blog at KE0ATA.com!
I’ve tinkered with microcontrollers on-and-off quite a bit throughout my life, mostly sticking with the Arduino boards. My first one was an Arduino Duemilanove circa 2009. As part of a larger project I wanted to dive into something a bit more advanced. By sheer coincidence I came across an advertisement for a NodeMCU. For under $5 you get an Arduino-compatible microcontroller with built-in WiFi. Absolutely perfect for your IoT project. If you hunt around eBay and don’t mind waiting several weeks, you can get them as cheap as even $3 or so.
If you noticed the tagline of my site “Ink Blots and Other Thoughts” you may be curious about the whole “blots” part of that. Short answer is, I have a slight obsession with fountain pens.I bought my first fountain pen on eBay, it was a very cheap vintage Arnold pen. It’s a small, finicky, but very fun lever-fill pen that immediately drew me in.