Sunday, December 20, 2015

Wifi Humidor Ingredients

This is a list of parts that I used to create my prototype. I will try my best to remember where I purchased each part and will add a link where applicable.

Parts:
Tools:
  • Drill
  • Wire Cutters/Strippers
  • Soldering Iron
  • Solder

DISCLAIMER: I am not an electrical engineer. Most of the stuff I cobbled together with a wish and a prayer. Please proceed with caution and at your own risk. And don't make fun of my crappy soldering.

The most important feature I wanted was a system that would try and maintain a set humidity level. That means if the humidity drops below a specific value it should start adding moisture until the specified level is reached and then turn off... and rinse, wash and repeat.

To achieve this a reservoir for distilled water was needed. I used a small plastic container I found at Walmart. This particular container had a plastic lid. The plastic lid worked out nicely because it made it easy to refill water and also easy to attach the necessary hardware. Another thing I thought of was to use some florist foam to keep the water from evaporating too quickly but I figured I could add that later. I really just wanted to get things going and tweak as needed.

Small plastic container.


The next thing I needed to make this "active" was to add a fan so that it could push moisture out of the container. Because the lid was plastic it was easy to drill some holes through it. Some holes were for ventilation and 4 holes were for the hardware to mount the fan. I "eye-balled" most of it so in the picture you'll see that I ended up using only 3 bolts. I chose to put the fan on the inside and oriented the fan so that it would "push" moisture out.

Small DC fan mounted on underside of the lid.
To measure the humidity I mounted the DHT11 sensor on top of the lid using two bolts through 2 holes that I drilled. I placed it as far from the fan as I could. I actually used a couple of bolts between the board and the lid as well to give it some height.

DHT11 sensor mounted on top of the plastic lid.
The other feature that I wanted was the ability to monitor what was going on in my humidor remotely. To achieve this I figured I needed some kind of web service that I could use in conjunction with either some web-based user interface and/or native phone application. Here is a list of things I wanted to be able to do remotely:

  • see current humidity inside the humidor without opening it
  • see current temperature inside the humidor without opening it
  • see historical temperature and humidity data over time in some nice graphical way
  • see if the fan was currently running
  • see historical fan data - like duty cycle or something
  • set the humidity level that I'd like to be maintained
  • get notified when the water is low or needs refilling
  • keep track of the inventory inside the humidor
  • keep track of tasting notes for particular cigars
  • share inventory and tasting notes with friends
This is the interface that I came up with. It's still a work in progress but has most of the stuff that I wanted. This was built using a Java REST web service running in Tomcat. The UI was written using GWT. The data shown in the charts is only for an hour or so. I started everything from scratch in order to take a screenshot.

In the next post I'll go over the setup of the Raspberry Pi and the wiring of all the components since that should be all setup before going through the software side of things. 













Sunday, December 6, 2015

Wifi Humidor Intro

I recently started getting back into cigar smoking again. I started smoking cigars about 20 years ago. I’ve always enjoyed smoking a fine cigar but for some reason I have an on again off again relationship with them.
One cold winter day  I was sitting around in a cigar lounge having my first cigar in many years. I was enjoying this particular cigar with a bunch of friends. I remember having a Boneshaker with mine. It paired surprisingly well with what I was smoking at the time.
We started discussing the various cigars we’ve smoked in the past and what we currently had in our humidors. I started talking about a box of Montecristo No. 2’s my sister got for me a while ago and that they were probably all dried out… when it suddenly dawned on me why I had such a complicated affair with cigars. The reason was I would always forget to “recharge” my humidification device on a regular basis and my cigars would dry out and then I’d just leave them for dead.
My friends and I began to wonder what types of products were out there to solve such a serious problem as this. Apparently what we were looking for was something called an “active” humidification system. To my surprise there were plenty. The Cigar Oasis XL seemed to be pretty popular at the time. The only problem was some solutions were super high-end and way out of my price range. The solutions that were reasonably priced seemed cheaply made and only had rudimentary features. Some had optional features but cost a lot more money for something we thought should be baked in. And some were larger than my humidor.
To put things into perspective I probably smoke 1 or 2 cigars a week. I have a desktop humidor that holds about 200 cigars.  So I’m not looking for a humidification system that will cost more than my humidor itself. 
And so there was only one option. I started working on my own "active" humidification system using some things that I already had lying around. The heart of the system would be a Raspberry Pi.

My next post will include my parts list, screenshots of the web and iPhone interfaces as well as some photos of what I have done so far.