- Full Description
Beginning Sensor Networks with Arduino and Raspberry Pi teaches you how to build sensor networks with Arduino, Raspberry Pi, and XBee radio modules, and even shows you how to turn your Raspberry Pi into a MySQL database server to store your sensor data!
First you'll learn about the different types of sensors and sensor networks, including how to build a simple XBee network. Then you'll walk through building an Arduino-based temperature sensor and data collector, followed by building a Raspberry Pi-based sensor node.
Next you'll learn different ways to store sensor data, including writing to an SD card, sending data to the cloud, and setting up a Raspberry Pi MySQL server to host your data. You even learn how to connect to and interact with a MySQL database server directly from an Arduino! Finally you'll learn how to put it all together by connecting your Arduino sensor node to your new Raspberry Pi database server.
If you want to see how well Arduino and Raspberry Pi can get along, especially to create a sensor network, then Beginning Sensor Networks with Arduino and Raspberry Pi is just the book you need.
What youll learn
- How to build sensor nodes with both Arduino and Raspberry Pi!
- What is XBee?
- What methods you have for storing sensor data
- How you can host your data on the Raspberry Pi
- How to get started with the MySQL database connector for Arduino
- How to build database enabled sensor networks
Who this book is for
Electronics enthusiasts, Arduino and Raspberry Pi fans, and anyone who wants hands-on experience seeing how these two amazing platforms, Arduino and Raspberry Pi, can work together with MySQL.
- Table of Contents
Table of ContentsCh. 1: Introduction to Sensor Networks
Types of Nodes
Ch. 2: Tiny Talking Modules: An Intro to Xbee
Building a Simple XBee Network
Ch. 3: Arduino-based Sensor Nodes
How to Host Sensors with Arduino
Building an Arduino Temperature Sensor
Project: Using an Arduino as A Data Collector for XBee Sensor Nodes
Ch. 4: Raspberry Pi-based Sensor Nodes
How to Host Sensors with Raspberry Pi
Project: Build a Raspberry Sensor Node
Ch. 5: Where to Put It All: Storing Sensor Data
Local Storage Methods
Writing Data to a SD Card
Sending Data to the Cloud
Example: Writing Data to Pachube
Storing Sensor Data to a Database
Project: Writing Data to a Data Aggregator
Ch. 6: Turning your Pi into a Database Server
Configuring Your Raspberry Pi for Installing MySQL
Getting Started with MySQL
Project: Building a Raspberry Pi MySQL Server
Ch. 7: MySQL and Arduino: United at Last!
How To Get MySQL Connector/Arduino
Building Database Sketches
Project: Building an Arduino MySQL Client
Ch. 8: Building Your Network: Arduino Client + Raspberry Pi Server
Connecting Arduino Nodes to the Raspberry Pi Database Server
Considerations for Sensor Network Databases
Project: Monitoring Room Temperature
Ch. 9: Putting It All Together
Planning Sensor Networks
Choosing Sensor Nodes
Project: Home Temperature Monitoring
Appendix: Consolidated Shopping List of all Project Components
If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.No errata are currently published