Book Image

Raspberry Pi Sensors

By : Rushi Gajjar
Book Image

Raspberry Pi Sensors

By: Rushi Gajjar

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Sensors
About the Author
About the Reviewers

Putting all the parts together

We can build a project that understands that the temperature and light are high, and hence, would turn off the home tube lights while automatically turning the fan on! We can integrate the whole project and make an LED glow to show the decision made by the RasPi. Does this sound good?


Whenever we want to control home appliances, we need to be extremely cautious that they work on 110/230V AC and up to 15A of current. It is not recommended to connect the RasPi to any of the AC mains-operated home appliances directly. Relays (which provide good isolation) should be used to control the appliances. However, it is highly recommended that you perform any task related to relays and controlling appliances under the observation of an experienced electrician.

We can order the relay boards from any e-store. The relay boards are separately powered through an adapter or direct mains supply. The +5V or +3.3V pins of the RasPi should not be shared with these boards. Nevertheless...