Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Embedded Projects Hotshot

You're reading from   Raspberry Pi Embedded Projects Hotshot Enter the world of mechatronic systems with the Raspberry Pi to design and build 12 amazing projects

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781849696227
Length 250 pages
Edition 1st Edition
Concepts
Arrow right icon
Toc

Table of Contents (15) Chapters Close

Preface 1. Hello World FREE CHAPTER 2. A Raspberry WebIDE Example 3. The Arduino Raspberry Pi Interface 4. Christmas Light Sequencer 5. Internet of Things Example – An E-mail Alert Water Fountain 6. Raspberry Pi as a Personal Assistant 7. Raspberry Pi-based Line Following Robot 8. Connect Four Desktop Game using Raspberry Pi 9. The Raspberry Pi-enabled Pet/Wildlife Monitor 10. Raspberry Pi Personal Health Monitor 11. Home Automation using Raspberry Pi 12. Using a Raspberry Pi for Science and Education 13. Tips and Tricks Index

A simple example that controls limited indoor and outdoor lighting in the evening


Let's consider a scenario where a person lives in a neighborhood that is not so well lit. In winter, the temperatures are usually extreme in cities such as Chicago and the sun usually sets around 5 p.m. The poorly lit neighborhood along with the cold weather makes it difficult for a person to enter their home.

We will build a simple solution that turns on a light (that can be either an outdoor or indoor hallway light) that speeds up the process of entering a building.

Prepare for lift off

In this example, we will make use of PowerSwitch Tail 2 (sold by Adafruit Industries: http://www.adafruit.com/product/268) to turn on/off the lights.

The Powerswitch tail is rated to control appliances rated to operate at 110V and it can switch resistive loads up to 15A. The PowerSwitch Tail 2 can switch on/off appliances when it is activated by a 3-12V DC signal.

One main advantage of using the PowerSwitch Tail 2 is that it is...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime