Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By : Andrew K. Dennis
Book Image

Raspberry Pi Home Automation with Arduino - Second Edition

By: Andrew K. Dennis

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Home Automation with Arduino Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Temperature Storage – Setting Up a Database to Store Your Results
Index

Wiring up the parcel sensor


Our first task is to wire up the system. This will involve hooking up the Ethernet shield to the Arduino and then building a circuit to connect the force-based resistor to the Arduino's pins. To start with, we will briefly review what resistors are.

An introduction to resistors

A resistor is an electronic component with two connection points (known as terminals) that can be used to reduce the amount of electrical energy passing through a point in a circuit. This reduction in energy is known as resistance.

Note

Resistance is measured in Ohms (Ω).

You can read more about how this is calculated at http://en.wikipedia.org/wiki/Ohm's_law.

You will find that resistors are usually classified into two groups,

  • Fixed resistors: The fixed resistors that you will come across are usually made of a carbon film with the resistance marked in colored bands, giving you the value in ohms.

  • Variable resistors: Components falling under the variable resistance group are those with resistance...