sat, 06-oct-2012, 12:46
prototype sensor

Prototype temperature sensor

Last week I got permission to install a simple weather station where I work at ABR. The Fairbanks office is located on Goldstream Road, just past the intersection of Murphy Dome Road, across the street from the Peat Ponds. It’s on the uphill side of a south facing slope, and is about half a mile from Goldstream Creek. More importantly for me, I can find out what the temperature is at work when I’m dressing for riding my bike or skiing.

We ran three Cat5e cables from the computer room, outside and under a footpath, then down the hill from the Main building. The cables end up in a mixed spruce-birch forest, and the sensors will be about six feet off the ground in one of those cylindrical “white plate” style enclosures.

I’m using a pair of DS18B20 temperature sensors, which have a 0.5°C accuracy across their range, and will work down to -67°F. The data is retrieved using the One-Wire protocol, which is well supported by Arduino. I built a prototype of the sensor before soldering it down on a board because longer distances can require a smaller pull-down resistor than the 4.7KΩ typically used between the voltage and data lines. I also wanted to experiment with whether I could run two using parasitic power, or would need two data lines. As it turned out, 4.7KΩ worked, as did parastic power mode.

The schematic is below, including the wires I used in the Cat5e cable. I followed the PoE standard, even though I could really have used whatever wires I wanted.

I also used a contributed library called DallasTemperature which abstracts most of the work of using OneWire and converting the values into meaningful temperatures. Here's the setup code:

#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 8

OneWire oneWire(ONE_WIRE_BUS);

DallasTemperature sensors(&oneWire);

// Use a testing program to find your addresses:
DeviceAddress thermOne = {
    0x28, 0xBC, 0x29, 0xE3, 0x02, 0x00, 0x00, 0xE1 };
DeviceAddress thermTwo = {
    0x28, 0xCF, 0x97, 0xE3, 0x02, 0x00, 0x00, 0xCD };

void setup(void) {
    sensors.setResolution(thermOne, TEMPERATURE_PRECISION);
    sensors.setResolution(thermTwo, TEMPERATURE_PRECISION);

And the part that does the work:

void printTemperature(DeviceAddress deviceAddress) {
    float tempC = sensors.getTempC(deviceAddress);

void loop(void) {


Here’s the schematic. The top form shows two sensors in parasitic power mode (where you only need a single data line, power and ground), and the bottom form shows how you’d wire a single sensor. If I had trouble with getting reliable data from the sensors in parasitic mode, or with a 4.7KΩ resistor, I would have dropped the resistor to 3.3KΩ or 2.2KΩ. The next thing I would have tried would be running power and ground to both sensors separately (coming from wires 4 and 7 in the cable), and used wire 1 and wire 2 for the data lines to each sensor. As it turned out, I’m only using three of the eight wires in the cable.


Update 2012-10-15: I moved the resistor from the sensor board (you can see it in the photograph at the top of the page) to the Arduino end of the cable inside ABR, and the data is still flowing. I was a little concerned that the resistor might be adding a small amount of heat to the enclosure, and putting it at the Arduino side prevents that possibility.

Update 2012-10-19: Today I added a third DS18B20 in parasitic mode and I’m getting data from all three sensors. I would guess the total cable run is around 100 feet from the Arduino to the sensors. So: 100 feet of Cat 5e, three sensors in parasitic mode, with a 4.7KΩ pull-down resistor between power and data on the Arduino side of the cable.

sat, 06-oct-2012, 09:47


Over the past month and a half I’ve brewed four beers, starting with Piper’s Irish-American Ale , and culminating with Mr. Silly IPA which is in the middle of the mash right now. We’re less than a week from when we normally get the first snowfall that lasts until spring, so this will likely be the end of my 2012 brewing effort.

My normal process is to make a yeast starter from a Wyeast smack-pack or White Labs tube, pitch that into the first batch, and a week later siphon the chilled wort of the second batch onto the yeast cake from the first.

I didn’t have time to make a starter for Piper’s, so I just smacked the pack (Wyeast 1084, Irish Ale) on brew day and assumed there’d be enough healthy yeast to make quick work of the 1.049 wort. After two days of no visible activity, I began to worry that the yeast in the pack had been killed at some point before I bought it. Finally on day three, something finally started to happen and the beer has since fermented successfully.

The second batch was a 1.077 old ale I poured into my Old Alexi solera ale keg (recipe is here). It kicked off almost immediately and was probably 90% fermented within 24 hours due to the thick, healthy yeast from fermenting Piper’s.

During both fermentations I kept track of the temperatures in the fermentation chamber (a fridge with heater on a temperature controller) and in the wort using my Arduino data logger. A graph of the two fermentations is below:

Wyeast 1084

You can see the activity of the temperature controller on the temperature in the chamber (the orange line), clicking the heater on and off within 4 degrees of the set temperature. For Piper’s (the top plot) I started with the chamber at 64°F, but almost immediately bumped it up to 66°F when the wort temperature crashed. After 24 hours, something finally started happening in the wort, with a peak temperature (and fermentation) on day three. When I transferred the wort from primary to secondary on day seven, there was still active fermentation.

Compare this with the second beer. The wort started at 65°F, and immediately took off, peaking a little over 24 hours later. By day three, fermentation was over. I dropped the fermentation chamber temperature from 66°F to 64°F after the first day.

What did I learn? First: always make a yeast starter. It’s no fun waiting several days for fermentation to finally take off, and during that lull the wort is vulnerable to other infections that could damage the flavor. Second: don’t panic, especially with a yeast that has a reputation of starting slowly like Wyeast 1084. It usually works out in the end. More often than not, the Papazian “relax, enjoy a homebrew” mantra really is the way to approach brewing.

I used a starter for last week’s batch (Taiga Dog AK Mild, White Labs WLP007, Dry English Ale) and it was visibly fermenting within a day and a half. Mr. Silly will undoubtedly have a similar fermentation temperature curve like Old Alexi above after I transfer the wort onto the Taiga Dog yeast cake.

sun, 01-apr-2012, 14:59


Long before Nika and Piper died, we had planned on taking one of the dogs that Andrea’s mushing parter didn’t want, a large hound mix named Lennier (the litter was named after characters in the Babylon 5 television series). Even though we are still mourning our loss, we didn’t feel like it was a reason not to give another dog a chance in our home. He’s a yearling dog, and is a big boy, a couple inches taller than Buddy, and quite a bit longer. At the moment he is all legs, but he may still grow into his body.

Last night was a pretty taxing affair, with him too curious and excited to relax for even a minute, and a trio of cats very scared of the new resident. He has been better today, and is even sleeping on the floor at my feet right now. He appears to be mostly curious about the cats, but unfortunately, his only real experience with them so far is when they’re running away at warp speed, tails puffed.

In time, I’m sure he’ll get used to his new life, and will become part of the family. Welcome, Lennier!

tags: dogs  Lennier 
wed, 21-mar-2012, 19:20


Nika died today after fifteen and a half great years in our family. She was a Golden Retreiver / Australian Shepherd mix, which meant she was smart, aglie, and loved to swim. She had a beautiful, thick, dark coat that made people think she was a flat coat retriever. When she was a puppy, she needed a lot of exercise and entertainment to keep from getting bored, so she and I started a long tradition of daily (and often more) walks. I’d guess that in those fifteen years, she and I easily walked over 3,000 miles together. She loved running through the forest, swimming in every water body she came across, jumping high in the air after snow when we shovelled the deck, and when she was younger, fetching tennis balls. She came with us everywhere and was always willing to “go for a ride?!” even if it basically meant sitting in the truck once we got wherever we were going. I took her to work with me practially every day and walked her on campus, and later at the Peat Ponds.

She was a happy dog, eager to get up and go for a walk until the very end, when old age and declining strength meant she was prone to falling down and had a hard time getting up the stairs or up onto the couch. Eventually, it got to the point that we felt like she would probably rather not be around if she couldn’t do the things she loved.

I’ve spent so much time with her in the outdoors—on the trails around our property, walking up and down Goldstream Creek in the winter, hiking on campus and at the Peat Ponds at work—that I don’t know how I’m going to be able to go for a walk without missing her company. We used to sing, “Doo do da doo, Taiga Dog!” and she’d get all excited.

With the loss of Nika and Piper today, there’s a pair of huge holes in our family, and even though I know we’ll get over the pain of losing them, we will never forget them and all the happiness we shared together.

Nika post-fetch

Nika post-fetch

Nika bounding

Nika bounding

Nika on the Creek

Nika on the Creek

tags: dogs  memorial  Nika 
wed, 21-mar-2012, 09:40


We lost Piper today to a neurological condition that seemed to rapidly take her bright and wonderful personality from her, and from us.

We got Piper from the Fairbanks Animal Shelter in December 2002. I wasn’t too sure I was ready to adopt a new dog, but when they let her into the visiting room, she immediately came up to us and won us over with her charm. She was a beautiful orange and white husky mix with bright blue eyes, a barrel chest, and quick, graceful movements like a fox. She loved sprint mushing with Andrea, was great with kids, and always knew for sure that she was the cutest dog in any pack. She came with us wherever we went, and even slept on a bed in Andrea’s office when she worked at the Alaska Bird Observatory. As she got older, I started taking her for walks on the trails with Nika, and she enjoyed bounding through the forest exploring and chasing snowshoe hares.

Last winter she almost died from an abscess in her chest cavity, and even though she was eventually cured, she never really got all her strength back. But the neurological issue that finally claimed her life was the hardest to deal with because it seemed to drain the happiness and personality from her seemingly healthy body. Despite that, I’m not going to let this disturb my memories of what a great little dog she was. Always a wagging tail, willingess to “Ooooh” on command, and to cheer you up with her infectiously happy behavior.

I could use some of that cheer right now.

Piper and Buddy

Piper and Buddy

Piper ball

Piper ball

Piper driving


tags: dogs  memorial  Piper 

Meta Photolog Archives