Hardware Assembly

If you already constructed the Tweeting Bird Feeder project, you know how to connect the XBee and a sensor to the Arduino. If you need a refresher, refer to Going Wireless. Instead of attaching the light sensor with the inline 10k ohm resistor to the Arduino’s analog pin, we are going to swap out the light sensor with a force sensitive resistor. See Figure 19, The Package Delivery Detector wiring diagram. Wire one of the force sensitive resistor’s leads to the 3.3v power source. Connect the other to analog pin 0. Then bridge the analog 0 wire to ground with a 10k ohm resistor.

The XBee radio attaches in the same way it did in the Tweeting Bird Feeder project. Namely, connect the XBee’s power lead to the Arduino’s 5.5v ...

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.