Hi. I'm not so PRO in Arduino stuff. It's been a while I'm trying to find a way to connect my Arduino to internet, but I've been facing some problems:
How can I buy an Ethernet shield? I don't mean an Arduino Ethernet. Does anyone know a website or sth?
How can I connect an Arduino Uno with an Ethernet shield? Unfortunately, and embarrassingly, There's no useful articles on web, or at least, I didn't find any! Or maybe it's just too simple! XD
Does Ethernet work from anywhere? I mean, the technology is just so complex to me. I need Wi-Fi to connect my computer to the internet, but I my cell phone is always connected, no matter where I am. Which one is Ethernet like?
I appreciate any help.
As you are a newbie (me too ) let's go through your questions:
ad 1. there exists two basic ethernet chips used with Arduino - official shield with Wiznet W5100 ( http://arduino.cc/en/Main/ArduinoEthernetShield ) and adapters based on ENC28J60 chip. First is more expensive, but it uses Ethernet library which can be found in standard installation of Arduino programming software. Further it is more technically advanced than the second one. For adapters with ENC28J60 you have to use ANOTHER library. Where to buy ?? Put words "Arduino" and "Ethernet Shield" in your browser and you'll get many links. Important then is to take the proper chip - I recommend to take a shield with Wiznet W5100.
ad 2. If we are talking about the official shield the connection is very simply - shield's pins go to the stackable sockets on Uno. Shields with ENC28J60 are either standalone pieces which have to wired to Uno (not very user friendly), or the same stackable type as official one.
ad 3. What we are talking about the Ethernet shields are connected to the world via network cable, i.e one end of network cable goes to shield and second to your home router and/or modem. So it is NOT wireless connection as mobile phones are.
Thanks a lot for your help. It solved all of my problems! but now, there's one more thing that sounds strange for me:
Arduino connects to the internet when it's connected to the computer by default, Is that true?
If yes, when we use the Ethernet shield, the only difference is that we can only connect it to the router instead of the computer itself! that's not much different, is it? :.
But still my only remaining question is that if the statement above is true or not, and if there's a library to manipulate that connection or not??
Thanks a lot.
Arduino connects to the internet when it's connected to the computer by default, Is that true?
Not even close. The Arduino can talk to the serial port on the PC, and, if there is an application listening and responding, read whatever that application wrote to the serial port.
It can not access files on the PC, or use any other resources, like the ethernet card in the PC.