Building the Solution

Assembling the hardware to fit snuggly inside the feeder may require some ingenuity, especially if the bird feeder doesn’t offer much space inside the seed container. Before we start cramming electronics into the feeder, we first need to make sure our components work as expected.

  1. We will start with the easy part of connecting the aluminum foil capacitive sensor to the Arduino and writing a function that will send a message to the serial window (and eventually the serial port of the attached XBee radio) when the sensor is triggered.

  2. Next, we will hook up the photocell to the Arduino and write the code for it to react to changes in light.

  3. Then we will pair the two XBee radios and transmit these events from the XBee ...

Get Programming Your Home now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.