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! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Arduino Networking

You're reading from   Arduino Networking Connect your projects to the Web using the Arduino Ethernet library

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783986866
Length 118 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Summary


In this chapter, we interfaced a relay to the Arduino board and the Ethernet shield so that it can be controlled remotely. To do so, we used two different approaches, each with their own advantages and disadvantages. First, we kept things local and controlled the relay from within your local network. This solution has the advantage that even if your Internet connection is down, the project still works.

Then, we used a dedicated web service to control the relay from anywhere. This is clearly an advantage of the latter approach; however, it will not work if your Ethernet shield is not connected to the web.

The following were the major takeaways from this chapter:

  • First, we chose the different components for the project, and assembled them so that we can control a device from the Arduino board such as a desk lamp.

  • Then, we wrote the first sketch to test the project by simply switching the relay on and off.

  • After that, we built the first application based on the hardware we just assembled...

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
Visually different images