Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Internet of Things with Arduino Cookbook

You're reading from  Internet of Things with Arduino Cookbook

Product type Book
Published in Sep 2016
Publisher Packt
ISBN-13 9781785286582
Pages 188 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Marco Schwartz Marco Schwartz
Profile icon Marco Schwartz
Toc

Table of Contents (14) Chapters close

Internet of Things with Arduino Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Connecting an Arduino to the Web 2. Cloud Data Monitoring 3. Interacting with Web Services 4. Machine-to-Machine Interactions 5. Home Automation Projects 6. Fun Internet of Things Projects 7. Mobile Robot Applications Index

Automated light controller


Inside this recipe, we are going to continue exploring M2M communications with the Arduino MKR1000 board, this time by creating an automated light controller based on Arduino. A first module will be in charge of detecting the ambient light level, and then sending alerts to a second module, which will switch a light on or off, depending on the received alert.

Getting ready

To control a lamp in this project, we are going to use a very convenient component called the PowerSwitch Tail:

These components allow us to easily control devices powered by the mains electricity from an Arduino board, as you can just plug it into the mains electricity and then plug your device into it as well.

This is the list of the components that will be required for this recipe:

  • PowerSwitch Tail (https://www.adafruit.com/products/268)

  • Photocell (https://www.sparkfun.com/products/9088)

  • 10K Ohm resistor (https://www.sparkfun.com/products/8374)

Let's now assemble the hardware for this recipe. We are...

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 $15.99/month. Cancel anytime}