Beruflich Dokumente
Kultur Dokumente
1 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
Login
(/account/login)
| Sign Up (/account/gopro?sourcea=header&sourceaUrl=/id/Internet-Controlled-Arduino-no-Ethernet-shield/?ALLSTEPS)
Explore
(/tag/type-id/)
Create (/about/submit.jsp)
Contests
let's make(/contest/) Community (/community/)
(/)
(/tag/type-id/category-workshop/channel-gardening/?sort=FEATURED)
(/editInstructable/)
(/tag/type-id/category-technology/channel-cnc/?sort=FEATURED)
(/tag/type-id/category-workshop/channel-home-renovation/?sort=FEATURED)
by ZachariahZebadee (/member
/ZachariahZebadee/)
Download (/id/Internet-Controlled-Arduino-no-Ethernet-shield/?download=pdf)
(/id/Internet-Controlled-Arduino-no-Ethernet-shield/)
5 Steps
(http://www.pinterest.com
Collection
I Made it!
Favorite
Share
/pin/create
/button
/?url=http
About This Instructable
%3A%2F
%2Fwww.instructables.com%2Fid%2FInternetControlledLicense:
15,780 views
Arduinono-Ethernetshield
359 favorites
%2F%3FALLSTEPS&
media=http
%3A%2F
%2Fcdn.instructables.com%2FF0H%2FOLM0%2FI6WDMXDI%2FF0HOLM0I6WDMXDI.MEDIUM.jpg&
ZachariahZebadee
description=Picture%20of%20Internet%20Controlled%20Arduino%20(no%20Ethernet%20shield))
(/member
/ZachariahZebadee/)
Follow
(/member
/ZachariahZebadee/)
22
Tags:
without ethernet shield (/tag/type-id/categorytechnology/keyword-without ethernet shield/)
Arduino internet (/tag/type-id/category-technology
/keyword-arduino internet/)
(http://cdn.instructables.com/F0H/OLM0/I6WDMXDI/F0HOLM0I6WDMXDI.LARGE.jpg)
Internet (/tag/type-id/category-technology/keywordinternet/)
Smart House (/tag/type-id/category-technology
Ethernet Shields are a lot of fun, but they can be expensive. In this project I will
show you how to control your Arduino from any computer that is connected to
the internet, without using an Ethernet shield. This project is completely free,
assuming you already have an Arduino.
/keyword-smart house/)
Appliance control (/tag/type-id/category-technology
/keyword-appliance control/)
Control (/tag/type-id/category-technology/keywordcontrol/)
Related
Step 1: Ingredients:
(http://cdn.instructables.com/FVP/43BX/I6WDMPRQ/FVP43BXI6WDMPRQ.LARGE.jpg)
9.3.2015. 8:25
2 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
(http://cdn.instructables.com/F2Z/C7ET/I6WDMQUD/F2ZC7ETI6WDMQUD.LARGE.jpg)
This is where we add the functionality we want to the Arduino. This part
is very similar to setting up a simple Arduino project; the difference is
the input the arduino receives.
Set up an arduino sketch that does whatever you like upon receiving the input of
a certain character from the serial port. This is done by starting the serial
conversatin with Serial.begin(9600); in the setup. Then in the loop if
(Serial.available() > 0) checks for serial input and Serial.read(); returns a string
of input text. The example I will refer to throughout opens and closes my blinds
for me. You can see that my Arduino will open my blinds upon receiving the
character 2 and will close them upon receiving the character 1.
(http://cdn.instructables.com/F8B/TKZ4/I6WDMTDV/F8BTKZ4I6WDMTDV.LARGE.jpg)
(http://cdn.instructables.com/FYH/F9HD/I6WDMTDU/FYHF9HDI6WDMTDU.LARGE.jpg)
In this step we will create a webpage that takes user input, and using that
input edits a text file on the server.
The website does not not to be complex, it just has to take some input and send
it back to the server for processing. The easiest way to do this is with a get
request. When making the form to receive the input, define method as "get".
My whole HTML consists of just a form.
The form is submitted back to my page itself, and is handled my the PHP. This
9.3.2015. 8:25
3 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
(http://cdn.instructables.com/FGB/TCWT/I6WDMWY5/FGBTCWTI6WDMWY5.LARGE.jpg)
9.3.2015. 8:25
4 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
I Made it!
Add Images
Make Comment
x4junk (/member/x4junk/)
-398 minutes ago
(/member
/x4junk/)
Reply
ailsa11 (/member/ailsa11/)
3 minutes ago
Reply
9 hours ago
Reply
1 hour ago
Reply
2 hours ago
Reply
sumondigi (/member/sumondigi/)
artaex (/member/artaex/)
sumondigi
artaex (/member/artaex/)
(/member
/artaex/)
Ethernet shield expensive? They cost around $10... That's a lot cheaper than
the electricity required to power a computer 24/7.
econjack (/member/econjack/)
(/member
/econjack/)
2 hours ago
Reply
Good intro to the Internet of Things. I'm not sure how this statement would
work correctly:
int key = Serial.read();
If you touch the '1' key, the computer sends the ASCII code for 1, which is
actually 49 expressed as an integer. The easiest way to fix this is:
int key = Serial.read() - '0'; // Subtract ASCII code for zero
Because the ASCII code for zero is 48, then the digit character '1 becomes:
int key = 49 - 48;
key = 1;
which would work correctly. I would also add these two lines to the very top of
the program:
#define CLOSEBLINDS 1
#define OPENBLINDS 2
and change the if statement code to:
switch (key) {
case CLOSEBLINDS:
Close();
break;
case OPENBLINDS:
Open();
9.3.2015. 8:25
5 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
break;
default:
Serial.println("Unresolved state, shouldn't be here!");
break;
}
I find a switch/case much easier to read once you get rid of the magic numbers
for 1 and 2, plus it makes it easy to add new commands.
3 hours ago
stannickel (/member/stannickel/)
Reply
3 hours ago
lzu (/member/lzu/)
Reply
(/member
/lzu/)
It's my java library you can use instead of Processing. With Ardulink, for
example, you can connect a single PC to several Arduino board with a
bluetooth connection that is cheaper.
4 hours ago
anode505 (/member/anode505/)
Reply
anandchauhan2k6 (/member/anandchauhan2k6/)
4 hours ago
Reply
yesterday
Reply
pelegren (/member/pelegren/)
(/member
/pelegren/)
nice ible but here's the catch... arduino needs to be connected to the
computer at all times.... OBVIOUSLY, ETHERNET SHIELD IS CHEAPER
THAN PC or LAPTOP!!!
rocketman221 (/member/rocketman221/)
pelegren
12 hours ago
Reply
That's not a problem if you already have a server that runs 24/7. You
also modify this to work with a router running the openwrt
firmware as long as it has a serial port.
(/member could
/rocketman221/)
russ_hensel (/member/russ_hensel/)
rocketman221
15 hours ago
Reply
But your opening picture suggest that you really need about a dozen
all around the house.
(/member computers
/russ_hensel/)
snoop911 (/member/snoop911/)
yesterday
Reply
Great work!
(/member
/snoop911/) There's
also something called SLIP, that allows an embedded device like the
Arduino to talk TCP/IP using an RS232 cable.
I haven't been able to get it to work, and haven't found an instructable for it,
but perhaps someone else has better luck!
lightakesally (/member/lightakesally/)
cool
9.3.2015. 8:25
6 od 6
http://www.instructables.com/id/Internet-Controlled-Arduino-no-Ethern...
yesterday
Reply
(/member
/lightakesally/)
jamshaid,shahid (/member/jamshaid%2Cshahid/)
yesterday
Reply
yesterday
Reply
nice instructable
(/member
/jamshaid%2Cshahid/)
tomatoskins (/member/tomatoskins/)
(/member ethernet
/tomatoskins/)
About Us
Find Us
Facebook (http://www.facebook.com/instructables)
Advertise (/advertise/)
Youtube (http://www.youtube.com/user/instructablestv)
Contact (/about/contact.jsp)
Twitter (http://www.twitter.com/instructables)
Jobs (/community/Positions-available-at-Instructables/)
Help (/id/how-to-write-a-great-instructable/)
Pinterest (http://www.pinterest.com/instructables)
Google+ (https://plus.google.com/+instructables)
Tumblr (http://instructables.tumblr.com)
Resources
Mobile
English
Android (https://play.google.com/store
/apps/details?id=com.adsk.instructables)
iOS (https://itunes.apple.com
Windows
(http://apps.microsoft.com
/windows/en-us/app/7afc8194c771-441a9590-54250d6a8300)
9.3.2015. 8:25