let'ssmake l share what you make > (/editinstructable/) · loads using a digital output...
Post on 21-Apr-2020
2 Views
Preview:
TRANSCRIPT
Relays are an oldie but a goodie. They allow you to switch high current/voltage
loads using a digital output from something like the Arduino.
What would make a relay even better? How about controlling a relay over the
internet from anywhere in the world? Yea!
This process is made really simple using the Teleduino sketch for your ethernet
enabled Arduino. Haven't heard of Teleduino? That's cool, you may want to take a
look at Arduino Control via a Web Service with Teleduino
(http://www.instructables.com/id/Arduino-Control-via-a-Web-Service-with-
Teleduino/) to get yourself started.
This tutorial will guide you through the process of attaching a 5V relay to your
Arduino, and provide some example Teleduino API calls to:
(http://cdn.instructables.com/FQZ/343B/H1JU6KCF/FQZ343BH1JU6KCF.LARGE.jpg)
About This Instructable
License:28,172 views
35 favorites
nathanknz(/member/nathanknz/)
Follow 40
(/)
let's make
share what you make >
(/editInstructable/)
(/)
Explore (/tag/type-id/) Create (/about/submit.jsp) Contests (/contest/) Community (/community/)Login (/you/)
Define the pin mode of a pinTurn on the relayTurn off the relayToggle the relay
If you get stuck on any of the steps, or if you feel that there is a step that could be
explained better, please leave a comment so that we can improve things.
Let's get started!
Remove these ads by Signing Up (/account/gopro?
sourcea=removeads&nxtPgName=Control+a+Relay+over+the+Internet+via+Arduino+w ith+Teleduino&nxtPg=/id/Control-a-Relay-over-
the-Internet-via-Arduino-w ith/)
Step 1: Parts Needed and Circuit Diagram
Related
See More (/tag/type-id/?q=)
(http://cdn.instructables.com/FE6/9CXM/H1JU3LWZ/FE69CXMH1JU3LWZ.LARGE.jpg)
(/member/nathanknz/)Developer of the telecontrol andtelemonitoring system Teleduino, using theArduino platform.
Bio:
(/id/Arduino-Control-via-a-Web-Service-with-Teleduino)
(/id/Control-Servos-over-the-Internet-via-Arduino-with-)
(/id/Read-Light-Level-over-the-Internet-via-Arduino-wit)
More by nathanknz
teleduino (/tag/type-id/category-
technology/keyw ord-teleduino/)
arduino (/tag/type-id/category-technology/keyw ord-
arduino/)
iot (/tag/type-id/category-technology/keyw ord-iot/)
internet of things (/tag/type-id/category-
technology/keyw ord-internet of things/)
relay (/tag/type-id/category-technology/keyw ord-
relay/)
control (/tag/type-id/category-technology/keyw ord-
control/)
Tags:
Arduino Control via a Web
Service with Teleduino
(/id/Arduino-Control-via-a-
Web-Service-with-
Teleduino/)Control Servos over the
Internet via Arduino with
Teleduino (/id/Control-
Servos-over-the-Internet-
via-Arduino-with-/)Read Light Level over the
Internet via Arduino with
Teleduino (/id/Read-Light-
Level-over-the-Internet-
via-Arduino-wit/)Control an LED over the
Internet via Arduino with
Teleduino (/id/Control-an-
LED-over-the-Internet-
via-Arduino-with-/)Arduino powered mini
traffic signal - monitor
your repair shop!
(/id/Arduino-powered-
mini-traffic-signal-
Next » (/id/Control-a-Relay-over-the-Internet-via-Arduino-with/step2/Put-Circuit-Together/)
View All Steps (/id/Control-a-Relay-over-the-Internet-via-Arduino-with/?ALLSTEPS)
Make Comment
(/member/kareem1/)
3 months ago Reply (CTRQW83HRWNAW1S)
(/member/nathanknz/)
3 months ago Reply (CA4XLGYHS18B5WB)
Parts Needed
You need the following parts to complete this tutorial:Breadboard (optional, but makes prototyping much easier)5V Relay (the relay in the image has had legs added so that it can beconnected to a breadboard)1K Resistor1N4001 Diode2N2222 TransistorSome hookup wire
Circuit Diagram
Take a peak at the attached circuit diagram. It shows how the components needs to
be connected. You may need to look at the datasheet for your relay to know which
pins are used for the coil.
The additional image illustrates the pin layout of your 2N2222 transistor. This will
help you understand what pin needs to connect to which part of the circuit.
Time to get this hooked up!
kareem1 (/member/kareem1/)
please can put the full arduino sektch here
nathanknz (/member/nathanknz/) (author) kareem1
Hi kareem1,
There is a link on step 1 to theInstructable about the Teleduino
service. There are downloadlinks available there.
Thanks!
MJ93 (/member/MJ93/)
(http://cdn.instructables.com/FHA/1Y85/H1JUGGS2/FHA1Y85H1JUGGS2.LARGE.jpg)
(http://cdn.instructables.com/FCU/ZB0V/H1JUA0VE/FCUZB0VH1JUA0VE.LARGE.jpg)
« Previous
(/member/MJ93/)
7 months ago Reply (CDYAJP6HMVJ9YCZ)
(/member/Seduction/)
1 year ago Reply (C93P6C8HDOWA1KS)
(/member/Prodigal_Son/)
1 year ago Reply (CLAL6OVHD4VNR7M)
(/member/Prodigal_Son/)
1 year ago Reply (CD16ZSFHD4VNNVE)
(/member/Seduction/)
1 year ago Reply (CH7NDJ7HD4VNKA8)
Hi there...first of all hats off to u fr u efforts and thanks fr being generous for sharingthis information.
is there a way i can control more than 1 relay (4 in my case) ..i've got ethernet sheildup running and till nw i am able to control a relay(thanks to the tutorial)
Seduction (/member/Seduction/)
Hello, Thank you both, nathanknz and Prodigal_Son. I relaxed when you said to me you can
control arduino with your android app via teleduino. Now time to make something good with these.
thanks again..
Prodigal_Son (/member/Prodigal_Son/)
Hello again
Now you can download Teleduino Controller on Google Play:
https://play.google.com/store/apps/details?id=appinventor.ai_ssslzc.Teleduino_Controller
(https://play.google.com/store/apps/details?id=appinventor.ai_ssslzc.Teleduino_Controller)
And like the info says, if you miss any functions please contact me and I will try to add
it in future releases.
Prodigal_Son (/member/Prodigal_Son/)
Hello Seduction.
I m the one that Nathan points at.
I we created an Android App that let´s you control your Teleduino device.
Short description for v1.0: 6 buttons for Units on (turn green when pushed = status), can control both serial and
Digital out. 6 buttons for Units off (puts the On button black again when pushed), same as above.
4 Toggle-buttons, controls only Digital Pins.
Long press on any buttons opens the Button Settings. Choose label and what it shoudcontrol.
The Settings button on main screen is used to set the Teleduino Key, Define Serial
and Digital Pins. Also as Debug where the last URL sent to Teleduino is shown.
I m about to release the app on Google Play any day now and I ll inform you in thisthread when It´s available for the public.
Seduction (/member/Seduction/)
Hello,
Firstly i have to say that it's nice work. I want to do that project with some diffrences. Inaddition to this project, i wanna add android interface to control it. So, i want to
control my house's lights with my android phone. With your project i learned control
relay with teleduino. But i dont know, can i send my commands(like turn on the lights)from my android application to arduino via teleduino? If it is possible can you give me
a lead? I am new with arduino and teleduino. But I am willing to do this project. please inform
me about my question. thanks..
(/member/nathanknz/)
1 year ago Reply (C5OH19ZHD4VHK0A)
(/member/najito/)
1 year ago Reply (CO5616SH4VQT4MD)
nathanknz (/member/nathanknz/) (author) Seduction
Hi Seduction,
Thanks for your message.
Yes it is certainly possible to make
API calls from an Androidapplication, however I haven't
done any Android development(yet!) so I can't be of much help
there.
I have been contacted recently bysomeone who has written an
Android app for basic control viaTeleduino. I'll let him know that you
have been in touch and point himto this conversation.
Thanks,
Nathan.
najito (/member/najito/)
nice
About Us
Who We Are (/about/)
Advertise (/advertise/)
Contact (/about/contact.jsp)
Jobs (/community/Positions-available-at-Instructables/)
Help (/community?categoryGroup=Help)
Find Us
Facebook (http://www.facebook.com/instructables)
Youtube (http://www.youtube.com/user/instructablestv)
Twitter (http://www.twitter.com/instructables)
Pinterest (http://www.pinterest.com/instructables)
Google+ (https://plus.google.com/+instructables)
Tumblr (http://instructables.tumblr.com)
Resources
For Teachers (/teachers/)
Artists in Residence (/group/air/)
Gift Pro Account (/account/give?sourcea=footer)
Forums (/community/)
Answers (/tag/type-question/?sort=RECENT)
Mobile
Download our new apps for iOS,Android and Windows 8!
Android
(https://play.google.com/store/apps/details?
id=com.adsk.instructables)
iOS
(https://itunes.apple.com/app/instructables/id586765571)
Windows
(http://apps.microsoft.com/windows/en-
us/app/7afc8194-c771-441a-9590-
54250d6a8300)
Join our newsletter:
Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
Legal Notices & Trademarks (http://usa.autodesk.com/legal-notices-trademarks/) | Mobile Site (http://m.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
Join!
© 2014 Autodesk, Inc.
Englishenter email
Go Pro Today » (/account/gopro?sourcea=footer)
We're Hiring! » (/community/Positions-available-at-Instructables/)
top related