Chapter 1: Introduction to Sensor Networks Chapter Goal: Provide the reader with the basics of sensor network terminology. * Anatomy of a Sensor Network * Communication Media * Types of Sensor Nodes * Sensors Chapter 2: Brief Introduction to XBee Chapter Goal: Explain the XBee modules, their protocols, and demonstrate basic usage. * What is an XBee? * XBee Primer * Introducing MicroPython * An XBee Wireless Chat Room * Building an XBee-ZB Mesh Network * Component Shopping List * Troubleshooting Tips and Common Issues Chapter 3: How to Program in MicroPython Chapter Goal: Teach readers how to program in MicroPython * Basic Concepts * Variables and Statements * Loops * Methods and Classes * MicroPython Libraries * Built-In and Standard Libraries Chapter 4: XBee-based Sensor Nodes Chapter Goal: Demonstrate how to create sensor nodes using XBee modules. * How to Host Sensors with XBee * Building an XBee Environment Sensor * Example: Using XBee Modules to Gather Data Chapter 5: Raspberry Pi-based Sensor Nodes Chapter Goal: Demonstrate how to create sensor nodes using Raspberry Pi including introducing the Raspberry Pi. * What is a Raspberry Pi? * Raspberry Pi Tutorial * Hosting Sensors with Raspberry Pi * Project: Building a Raspberry Sensor Node * Project: Building a Raspberry Barometric Pressure Sensor Node * Project: Creating a Raspberry Pi Data Collector for XBee Sensor Nodes * Component Shopping List Chapter 6: Arduino-based Sensor Nodes Chapter Goal: Demonstrate how to create sensor nodes using an Arduino including introducing the Arduino platform. * What is an Arduino? * Arduino Tutorial * Hosting Sensors with Arduino * Project: Building an Arduino Temperature Sensor * Project: Using an Arduino as A Data Collector for XBee Sensor Nodes * Component Shopping List Chapter 7: Methods for Storing Sensor Data Chapter Goal: Explain how to store sensor data on the sensor or data nodes. * Storage Methods * Local Storage Options for the Arduino * Local Storage Options for the Raspberry Pi * Remove Storage Options * Component Shopping List Chapter 8: Turning Your Raspberry Pi into a Database Server Chapter Goal: Introduce MySQL and demonstrate how to setup a Raspberry Pi as a MySQL Database server. * What is MySQL? * Getting Started with MySQL * Building a Raspberry Pi MySQL Server * Component Shopping List Chapter 9: MySQL and Arduino: United at Last! Chapter Goal: Introduce MySQL Connector/Arduino and demonstrate how to connect Arduino directly to a MySQL server to store data via several example projects.
* Introducing Connector/Arduino * Building Connector/Arduino-Enabled Sketches * Troubleshooting Connector/Arduino * A Tour of the MySQL Connector/Arduino Code * Project: Building an Arduino MySQL Client * Project: Inserting Data from Variables * Project: How to Perform SELECT Queries * Component Shopping List Chapter 10: Building Your Network: Arduino Wireless Aggregator + Wireless Sensor Node + Raspberry Pi Server Chapter Goal: Provide an overview of how sensor networks are constructed and provide a foundation for further exploration including a simple, complete project. * Data Aggregator Nodes * Component Shopping List Chapter 11: Putting It All Together * Sensor Networks Best Practices * Choosing Sensor Nodes * Project: Home Temperature Monitoring * Optional Component Shopping List.