A first snapshot of hive activity!

Now that the BeeDuino is up and running I’ve had an opportunity to grab some of the data to see what kind of stories we can tell. Here are temperature logs for a couple days:

beehive_weights_4_23

If you look at the steady temps on the “B” frame is is pretty clear that our newly-installed package is clustering off-center in the hive – the “B” frame is the 3rd frame from the right-side of the hive. The temperatures for that frame stay consistently at ~95F day/night.

The other interesting story is how the other frames stay consistently warmer than the outside temperature (yellow line) – the “A” frame is in the center of the hive, so closer to the “B” frame, and so warmer than the “C” frame that is located farthest away from the cluster.

I’ve also pulled in some weight data. The scale is at this point undetermined – I haven’t correlated the readings in mV to actual weight, however it is still interesting from a relative measurement standpoint

beehive_weights_4_23

Basically every day the hive weight goes up. This makes a little sense when you think about a couple factors:

  1. There is a 2-gallon sugarwater feeder in the top of the hive. The bees are still consistently feeding on both the feeder, and during the day there is lots of foraging going on.
  2. If you look back at the temperature/humidity plot, there is a significantly higher humidity in the hive than outside.

So, looking at these factors, we can expect a continuous DECREASE in hive weight if the bees are continuously feeding off sugarwater – the net weight decreases as the bees evaporate water into humidity/the atmosphere. OK, so that makes sense and probably explains why the hive loses weight throughout the evening/night hours.

So what is goin on from ~8AM until sundown? Every day the weight goes back up! I would guess this means that the large number of bees leaving the hive and foraging are bringing nectar/pollen back to the hive, resulting in a daytime increase of mass.

Once the bees are sufficiently established and stop feeding off the sugarwater I’m hoping to see some daily ripple, with an overall increasing trend.

Yay data!!!

Arduinos, Bees, and tweeting Oh My!

Some time ago while sitting through an all-day meeting Kate Dahlhousen and I went 90 degrees to the topic at hand and decided that there wasn’t enough data on bees. In an effort to rectify this situation I’ve built a beehive datalogger using an Arduino and some fancy sensor bits to try to work out some details on what bees do in addition to being busy.

Goals:

Getting visibility into the behavior and internal conditions of a hive has been documented from early on in modern beekeeping. Dunham’s 1926 paper shows how bees can regulate the temperature of a hive to within tight tolerances, and provides references that show how a hive will cluster together in the winter months to keep the internal temperature at ~95deg F. More recently the availability of inexpensive sensing and processing hardware has spawned a bunch of interesting experiments with people wiring up beehives and getting an idea of what is going on in the hive without having to deal with 40K angry residents. The OpenEnergy Bee monitor project and Beehacker site have done interesting environmental monitoring projects inside hives, showing how a large volume of data about the colony can be collected without continual interruptions/intrusions into the hive.

Expanding on these ideas, I’ve added a number of temperature and humidity sensors in the hive that will allow a better spatial understanding of the temperatures in the hive – with 10 sensors in the bottom hive body and 4 in the top I’m hoping to be able to spatially map out where the colony is clustered over the course of the winter.

Hardware:

Temperature Sensors: I’m using DS18B20 temp sensors from Maxim – these temperature sensors are cheap, small, accurate to 0.5deg C and well supported on most microcontroller platforms. The hive has 15 of these set up on a common bus, reading all 15 only takes 1 digital pin on the Arduino.

Humidity: The hive has two HIH4030 humidity sensors for sensing the humidity in the colony and outside the hive. There is also a HIH6130 combo temp/humidity sensor mounted to the Arduino datalogger for monitoring conditions within the hardware enclosure.

Hive Weight: There’s a Flexiforce resistive force sensor set up under one corner of the hive to measure the relative change in hive mass over the summer. I’m hoping to use this data to predict how much honey will be available come fall harvest.

Time: When logging data, it is important to know what time your measurements were taken at. I had a spare Chronodot lying around* to add to the project – this is an environmentally compensated super accurate real-time-clock that is battery backed and will give time data in a variety of formats.

*Imagine, a handfull of battery-powered super accurate RTCs… you could have some in a box hidden away up at some high elevation, and another reference set down at low elevation…..

Brains: I’m using two Arduinos to do the heavy lifting of grabbing the data and publishing it out to the web. One Arduino manages the sensors and handles datalogging using Sparkfun’s SD shield and a Prototype Shield. This ends up being a bit of a wiring mess, and the libraries/code necessary to grab the data from the sensor network uses most of the available program memory for the Arduino. Schematically the BeeDuino looks something like this:

Beeduino_layout

A second Arduino is used to handle communications to the outside world using a WiFi Shield. The two communicate over a serial port using Bill Porters EasyTransfer library.

Hiveware:

Arranging all this stuff into a packed hive took some planning. The temperature probes are set up in two groups – 10 on the bottom hive body (as that is where the bees will likely spend most of the winter) with another 4 available for the top body, and one last sensor for external temperature measurements. The temperature sensors were attached to three frames (imaginatively labeled A, B, and C) using beeswax.

IMG_5426

The A frame has 4 temp sensors, arranged at the center, top, and bottom of the frame, and one located in the center of the frame about 1/4 of the span across the frame towards the front of the hive. The B and C frames have the same layout, without the bottom sensor. The temperature probes and wires were stuck down and encapsulated in melted beeswax, it will be interesting to see what the bees do to the probes over the long term – I hope they don’t un-mount them and dump them all out the front of the hive!

TL;DR – What’s it do?

The datalogger (Beeduino) and communication Arduino (Tweetduino) are set up in the hive currently logging data every 5 minutes. When the Beeduino is done writing a dataset to the onboard SD card it transfers a subset of the data to the TweetDuino, which then proceeds to spit the data up on Twitter. I’m currently struggling with getting reliable tweets, however once that is sorted out I’m hoping to have a live graph of the current and historical hive temperatures available on this page.

In the next post I’ll go over the Arduino software running the whole mess.

Catching up on the trip log

Michelle and I have been out in some remote parts of South Africa for the last week, we’ve not had much in the way of phone or internet access for journaling our trip. This week we are back in the thick of civilization in the heart of Capetown so expect to see more posts and plenty of more pictures soon.

Hippos, crocs, and sandblasters, oh my!

Michelle and I took a break from the rock land safari today, heading to the St. Lucia reserve for a river tour to see if we could spot some hippos and crocs. The tour boat was a big 40 foot pontoon barge stuffed full of tourists and a riotous captain/tour guide. She deftly maneuvered the beast through the shallows and several pods of hippos, passing along the narrative of consequences should the boat stray too close to the hippos – they look fluffy and harmless, however they have tusks aptly named stabbing incisors that can bite through the bottom of an aluminum -hulled boat, stranding it and its load of tourists in a croc infested river. We saw several dozen of the reptiles, ranging in size from a couple feet in length up to a whopping 15 footer. We chose to forego the swimming hole tour.

After lunch at the St. Lucia Ski Boat Club (not joking, great sense of humor) we headed to the beach to dip our toes in the Indian Ocean. The water was a warm 60 degrees, however the 40 mph winds turned the beach into a sandblasters so we headed back to the lodge early. Tomorrow we will try to get to the Hluhluwe (pronounced roughly shlushluwe) park, however a storm is moving in and we may have to take a day off.

Cheers, JJ

On Safari

Going on safari is an amazing experience. We’ve seen 6 vastly different environments over the course of 3 days, and head out to a river reserve today to see hippos and crocs. Michelle has turned into quite the amateur photographer (http://www.flickr.com/photos/michelleblackwood), grabbing some great shots with her new lens. We have been doing two safari drives a day, starting at daybreak and in the early afternoon, driving around in open-topped land rovers guided by amazing rangers and their fantastically skilled trackers – the trackers often sit in a chair on the front bumper of the car, flying down dusty roads at 20-50mph, picking up tracks and guiding the driver at breakneck speed. So far we’ve been amazingly fortunate and seen lions, rhinos, hippos, elephants, cheetahs, leopards, and a handfull of various antelope and wildebeest. We have occasional access to the net and will post pics as we can. I’ve got to run, the sun’s coming up and we’re off to the St. Lucia river reserve – Cheers All!

24 hours to Johannesburg

Meesh and I landed in Joburg a short while ago – we have a quick overnighter tonight near the airport then we’re off to Hluhluwe (pronounced shu-shluwe) for our week of safari. The first 11 hour leg on Delta to Amsterdam was fine, we had a nice gentleman offer up his seat for Meesh so that we both had bulkhead seats. Amsterdam to Joburg got a bit long 12 hours, and the weather was cloudy so we couldn’t see the countryside passing by.

Cheers, JJ