To avoid these ads, REGISTER NOW!

Internet Of Things - Garage Style

Redlunn

Well-known member
Joined
Feb 9, 2013
Messages
47
Location
Northern WI
You've probably all heard references to the Internet Of Things (IOT), the growth of small internet connected everyday devices, so here it is applied to a garage. I have played around with connecting various devices to the internet and gathering data in the past with varied success but recently tried again and I'm amazed at how easy and inexpensive it has become.
My home away from home is a 24x32 detached building with a 100 amp electrical service and propane heat. I have a 1 gigabit/s wired ethernet connection to the house which then comes to a screeching halt when it reaches the 1.5 Mb/s DSL connection to the outside world. The parameters I was interested in remotely monitoring were temperature, humidity, and electrical current usage. I also wanted to be able to turn the heat on remotely (flip it on from the house and wait until a reasonable temp has been reached before venturing across the frozen tundra).
I ended up with 2 wifi connected devices, one at the furnace which enables the heater, measures temp and humidty, and the other at the electrical panel measuring current.
For these tasks i decided on the NodeMCU board which uses the popular ESP8266 wifi chip. It can be sourced on Amazon for a whopping $8.79. This board features an 80mhz processor, built in wifi, and supports programming updates over the network.

First, the unit at the furnace. This consists of a NodeMCU controller communicating over a 2 wire I2C network to a temperature/humidity sensor and controlling a relay to close the thermostat circuit. It is housed in a small plastic box which is attached to the back of the furnace.

Parts list and cost.
NodeMCU
$8.79

BME280 Temp Sensor
$9.99

Project Box
$8.15

Relay Board
$15 for 5 so $3 each

Misc wire, connectors, power supply
$10
Total approx $40.

20161216_214110.jpg
20161217_165009.jpg
20161217_165024.jpg

Next, the unit at the electrical panel. This consists of a 2 current transformers(one for each leg of the incoming power), a NodeMCU controller and a MCP3304 analog to digital converter chip. The converter samples the voltage produced by the current transformers(about 55,000 times per second) and computes the RMS current being used.

Parts list and cost.
NodeMCU
$8.79

Project Box
$8.15

MCP3304 Analog Converter
$4.45

Current Transformer
$7.61 x 2
Note: These are not the part I used but similar. Mine are a few years old and I couldn't find that same part online.

Misc wire, resistors, power supply
$10

Total approx $47.

20170112_201752.jpg
20170112_201810.jpg

Now, what to do with this info? Thats where a wonderful smart phone app named Blynk comes in. Blynk lets you create fancy screens that easily connect to your devices. You can add pushbuttons, selectors, sliders, numeric displays, history graphs, ...etc. The app is updated with new features regularly and it's fun to see how you can apply the new features.

Here is a screen capture from my phone. This gets updated every 0.5 seconds so you get a pretty good view on the graphs of what is happening. (yes, it is 32 deg F out there right now, that's why I'm in the house writing this)
Screenshot_20170113-140042.jpg

That's it for now. Thanks for looking. I'd like to see what others have created or hear ideas for additional features that could be added.

Redlunn
 
To avoid these ads, REGISTER NOW!
OP
R

Redlunn

Well-known member
Joined
Feb 9, 2013
Messages
47
Location
Northern WI
Here's a better screen capture showing the data. The "Heater Toggle" pushbutton turns the heat on/off and the "Heat" LED lights up with the heat is on.

Screenshot_20170113-140042.jpg
 

matt_i

Well-known member
Joined
Mar 14, 2008
Messages
10,730
Location
SE Michigan
Can you do datalogging with it?

I have been interested in determining the cost of heating my garage 100% of the time. Obviously I can use the utility bill to get some feedback, but it has a lot of lag time. Of course its going to vary with the ambient forcing function. But, using logging I can get a closer snapshot on the runtime and multiply by the "BTU/hr" rating to get some sort of a number a lot faster.

Another question relates to the ease of re-attaching the devices to the network. My internet "blips" about every 60 days it seems and I have to power cycle the cable modem to reset it, and then some things need manual intervention to reconnect to the wifi.
 
Last edited:

SteveL

Well-known member
Joined
Jan 14, 2005
Messages
760
Location
St. Louis, MO
And before you know it, the Russians will have cleaned out your bank accounts and 401k now that they have access to your wifi.:) Having everything from my home thermostat to the refrigerator connected to the World Wide Web leaves me a little apprehensive about the ability to secure everything. Just ask Hillary how it worked out for her.
 
OP
R

Redlunn

Well-known member
Joined
Feb 9, 2013
Messages
47
Location
Northern WI
Can you do datalogging with it?
Sure can, once you have the data captured it can be logged locally or pushed to a number of sites that can analyze it for you. Using the Blynk app you can also request a spreadsheet file of your data right from the app and have it emailed to you. I have had a number of internet service disruptions and everything syncs back up when service is restored.
 
OP
R

Redlunn

Well-known member
Joined
Feb 9, 2013
Messages
47
Location
Northern WI
now that they have access to your wifi.:).
At first I thought you were suggesting the Russians would have access to my wife, and that seemed a little far fetched. :)

Security is definitely a concern. I'm not too worried about hackers reading my garage temperature and electricity usage but when you start controlling things remotely you want to consider just what negative things could come from unintended control.
 
To avoid these ads, REGISTER NOW!

Outlander

Well-known member
Joined
Jul 30, 2010
Messages
5,154
Location
Quebec, Canada
Stumbled here as I researched if anyone used Nodemcu boards in the shop! My project starts today (temp/humidty for 3d printer)

61887415.jpg
 

Denwood

Well-known member
Joined
Sep 22, 2014
Messages
4,192
Location
Thunder Bay, Ontario, Canada
Can you do datalogging with it?

I have been interested in determining the cost of heating my garage 100% of the time. Obviously I can use the utility bill to get some feedback, but it has a lot of lag time. Of course its going to vary with the ambient forcing function. But, using logging I can get a closer snapshot on the runtime and multiply by the "BTU/hr" rating to get some sort of a number a lot faster.

Another question relates to the ease of re-attaching the devices to the network. My internet "blips" about every 60 days it seems and I have to power cycle the cable modem to reset it, and then some things need manual intervention to reconnect to the wifi.

If interested in data logging, I'd strongly suggest just installing an Ecobee smart stat. It will give you access to a full temp, runtime log etc. available from the app or any web browser.
 

niget2002

Well-known member
Joined
Oct 2, 2012
Messages
11,154
Location
Josephine, TX
I'm finishing up a project using Esp32 to turn on the dust collector via wifi. The trigger is when current going to a tool goes up, it sends a signal to a pi to turn on the DC. When the tool turns back off, it waits a bit, then turns it off.

I also have a esp8266 running a dosing pump on my aquarium.

Sent from my LM-G820 using Tapatalk
 

67CarGuy

Well-known member
Joined
Feb 6, 2008
Messages
763
Location
Outside Boston, MA
The world does work in mysterious ways... I just saw this post this morning on Reddit, where a Google Home smart speaker is used to control all manner of things, combined with a smart power strip.

I'm still thinking of possibilities... :evil:
 
To avoid these ads, REGISTER NOW!
Top Bottom