Beta Testing July 4, 2011 1:19 pm

4th of July, 1pm.  The smoker’s been running empty for about an hour and the ribs just went on.  The remote temperature monitor app has also been running.  I think the difference between my Maverick is due to some of the thermocouple being outside of the smoker, so I just need to compensate for the 10-15° difference.

Remote Temperature Monitor (beta version) July 3, 2011 5:41 pm

There was much coding done today.  The beta version of the remote temperature monitor app is finished and will be getting a trial run with a batch of ribs for the July 4th holiday.  I have a Maverick wireless thermometer to verify the temperature readings.  It works pretty well but the range sucks, which is why I hacked together all of the following.

Let’s take a look at how all this comes together.

The Arduino is parked outside next to my Weber Smokey Mountain with the thermocouple running under the lid.

It’s using a thermocouple and a MAX6675 chip to send data via a USB extension cable to a Linux netbook.

The Linux box runs a cronjob once a minute, grabs a few temperature readings (cat) and posts the data up to a PHP page (curl) which stores it in a MySQL database.  We use some regex to parse the temperature reading out to its own field.

The web server has a PHP page with an API for performing various actions.  For example. we can return the latest temperature as JSON.

[{"ID":"6337","TemperatureData":"104.45 104.45 104.90 104.90 ","Timestamp":"2011-07-03 14:10:11","Temperature":"104.90","Parsed":"1"}]

The Android app is written as a sticky foreground service and it has a client app to view the temperature data, change alarm settings, etc.

The high and low temperature alarms are adjustable and the app will beep and vibrate the phone for one second when an alarm occurs, but we can turn off the beeping if necessary.

Using the AlarmManager class, we set up a repeating task to download the latest temperature and parse it using Gson.  There is a continuous notification showing the latest temperature.  If there’s been no updated temperature data in the last 15 minutes (say a squirrel stole the Arduino), we throw up an additional notification as well as vibrate/beep the phone.

The Nexus One can do colored LED notifications, so it also flashes the LED yellow to indicate a data problem.

If the temperature falls outside the high/low range, we throw up a notification/vibrate/beep thusly.

We flash the LED red if it’s too hot…

…and blue if it’s too cold.

If all goes well tomorrow, I’ll have a nice set of data and will work in some line graphs with Google Charts.  The Arduino also needs some sort of enclosure for long-term outdoor use.

Electronics Noob June 18, 2011 3:05 pm

Back when I was a kid, I remember taking an electronics class at a local community college as part of their “college for kids” program.  We were taught about voltage and ohms and resistors and whatnot.  Most of this I don’t remember, but I vaguely recall building a simple flashing LED light involving a battery, capacitors and resistors.

To satiate my need for learning and building things, I hit up Adafruit this morning and picked up an Arduino starter kit, a MintyBoost kit, some necessary tools (soldering iron, multimeter, etc), a few other components for future projects and an electronics book.  The tools were the most expensive part, but that’s a one-time purchase.  Should be fun!

At a high level, my ultimate goal is this:

  1. Read internal smoker and meat temperature when doing some BBQ smoking.
  2. Monitor temps on my Android device.

Seems simple enough, but there’s a few other steps involved:

  1. Build Arduino device with a thermocouple
  2. Write Arduino code to sample temperature data
  3. Transmit temperature data, probably via a connected laptop at first, wirelessly later.
  4. Publish temperature data to a Internet-accessible location.  I forsee some PHP/JSON/MySql here.
  5. Write an Android app to consume temperature data (timer, alarms for high/low temperature, notifications, etc).

I know how to do items 4 & 5 above.  The rest will be a learning experience that I’m looking forward to.

Is this overkill for BBQ?  Sure, and you can even build a PID controller with some fans for smoking,  but this gives me the chance to learn some some electronics.