Using the Arduino Ethernet Shied, Part 2 of 2

  Рет қаралды 102,548

Tech Explorations

Tech Explorations

Күн бұрын

Пікірлер: 64
@andrasparanici5491
@andrasparanici5491 4 жыл бұрын
Thank you very much for these tutorials!
@TechExplorations_
@TechExplorations_ Жыл бұрын
You're very welcome!
@stavroshouiris
@stavroshouiris 7 жыл бұрын
So the code is a little strange, i type "ledon" and it works, i type "ledoff" and it works, i type "ledon" and it doesn't works and neither does the "ledoff"
@rahulsharma-uo8je
@rahulsharma-uo8je 9 жыл бұрын
hi nice video I have doubt about the arduino yun which has an in built Ethernet port, is there a possibility to connect the yun board to a non arduino embedded board with Ethernet facility to communicate between these two boards
@VanNgo-yv9xw
@VanNgo-yv9xw 4 жыл бұрын
Very good video. Very well explained. Thanks a lot. I already subscribed to your channel and gave you a like.
@TechExplorations_
@TechExplorations_ Жыл бұрын
Awesome, thank you!
@pierreletourneau722
@pierreletourneau722 3 жыл бұрын
I made the circuit and the sketch, but it works only for a while. After 2-3 times it stops and telnet says : I don't understand
@andli86
@andli86 9 жыл бұрын
I have a problem with this sketch, I can only run commands once or twice. Then I get an error, see the attached example. --> Please type your command and hit Return... ledon Received this command: ledon Processing command ledon LED On command received LED was turned on ledoff^MReceived this command: ledoff Processing command ledoff LED was turned off ledon^MReceived this command: ledon Processing command ?% I don't understand Please use one of these commands: * photo, to get a reading from the photoresistor * ledon, to turn on the LED * ledoff, to turn off the LED Received this command: Processing command ? I don't understand Please use one of these commands:
@jeanbeausuperbeau
@jeanbeausuperbeau 5 жыл бұрын
I know it's been four years, but by chance did you find any solution to this? and can you find it again? it's really annoying me too
@DevulNahar
@DevulNahar 3 жыл бұрын
What exactly is the client and what exactly is the server in this project?
@RD-ni7qe
@RD-ni7qe 4 жыл бұрын
Is it possible to make the Arduino remember the last known state of the Digital Output pins in the event of a power outage? Say you turned on LED's 1, 2, and 5, 6 using the Telnet commands, and then there is a power outage. For safety reasons it would be great if we could ensure that the Arduino will 'boot' with the last 'known' I/O pin states :)
@TechExplorations_
@TechExplorations_ 4 жыл бұрын
Hi R D, yes, it is. Perhaps the easiest way to do this is to use an EEPROM to store the pin state before you apply it. When the Arduino restarts, the first thing it would do is to read the states from the EEPROM and apply them to the pins.
@asdtechltd.innovations8214
@asdtechltd.innovations8214 7 жыл бұрын
Hi there, your tutorials those I have watched are awesome and easy to understand. I subscribed your channel. I need a help for my dragino Yun shield v1.1. I have reset the factory settings. But now I need to recover it and upgrade the firmware as well. But problem is my device does not stay at Failsafe mode. Some cases it stays at Failsafe mode but my Linux machine netcat socket listener does not show the netconsole of Yun. I am using RJ45 Ethernet cross over cable directly connect the Yun shield. Is there anything I have to check why it's happening. I can't give firmware until it stays at Failsafe mode.
@gnevzmaja
@gnevzmaja 10 жыл бұрын
Nice tutorial. One question, why use indexOf? In your case command will be executed if you type for example ledoffdfkjgdhfkgh or werowiuerledoff. Why not use (command == "ledoff") in If clause?
@TechExplorations_
@TechExplorations_ 10 жыл бұрын
Hi, in the way this sketch works, "indexOf" and "==" are equivalent as long as the user types in these commands without adding other characters (like spaces etc.).Back then I probably chose to be on the safe side by using "indexOf" so that if the user typed in something like " ledon" (notice 1st white character), the sketch would still work. Hope it makes sense.
@Haisam1974
@Haisam1974 10 жыл бұрын
awesome , thanks , do you have the code posted anywhere , as id like to keep it as an example '
@TechExplorations_
@TechExplorations_ 10 жыл бұрын
Sure, have a look at github.com/futureshocked/arduino_sbs, go to L33. There's a lot more code there to look at.
@januarsahrul
@januarsahrul 5 жыл бұрын
thank you very much.. i'm sorry, i have a problem with my arduino. how to connect vb as server to ethernet shield as client? thank you
@Biginjapan85
@Biginjapan85 9 жыл бұрын
Hello, I'm not sure what i have typed wrong in the code, but when ever i try and type a command such as 'LED on' after connecting to the telnet, it just floods the screen with the list of commands i am supposed to type. If i press a single key it just repeats all the commands. Any help would be appreciated!
@Biginjapan85
@Biginjapan85 9 жыл бұрын
rory johnstone I only had one '=' in the if (newChar == 0x0D) line adding another '=' fixed the issue
@Klexem
@Klexem 8 жыл бұрын
Hi. I successfully completed your first tutorial on ethernet shield, and what a nice tutorial it is. But when I follow your steps for this tutorial it doesn't seem to work. When I did the DHCP-server tutorial I wrote an IP a was appointed another in the serial port and subsequently I used that in my console for the telnet connection. But when I follow the steps in this video I am not given a "new" IP address and when I type the one I have come up with myself I am unable to connect to the server. Any help would a appreciated. I am connected on a small business network.
@wendersoncunhacampos1668
@wendersoncunhacampos1668 8 жыл бұрын
Can I to comunicate with more 2 arduinos? How I control the others slaves and the Ethernet Shield? Thanks!!!
@sonic4782
@sonic4782 9 жыл бұрын
Hi, Your videos are awesome, and I like them very much. The videos with Ethernet Shield helped me very much to finish a project of mine and I’m glad to you. Now I want to make a video. Could you tell me what is the program that you use to split two videos in one screen ( like yours at 2.30 ) ?
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
giannis ch Glad it helped! I made this video using Camtasia for Mac (also available for the PC), but now I am using Screenflow (Mac only software). Either one allows you to combine multiple video streams in any combination you like and with various visual effects. Good luck with it!
@ajittarwate3670
@ajittarwate3670 9 жыл бұрын
problem in output of ethernet shield getting 0.0.0.0 at serial output instead of 192, 168, 1, 177 from following program: #include #include // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network: byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192, 168, 1, 177); // Initialize the Ethernet server library // with the IP address and port you want to use // (port 80 is default for HTTP): EthernetServer server(80); void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } // start the Ethernet connection and the server: Ethernet.begin(mac, ip); server.begin(); Serial.print("server is at "); Serial.println(Ethernet.localIP()); } void loop() { // listen for incoming clients EthernetClient client = server.available(); if (client) { Serial.println("new client"); // an http request ends with a blank line boolean currentLineIsBlank = true; while (client.connected()) { if (client.available()) { char c = client.read(); Serial.write(c); // if you've gotten to the end of the line (received a newline // character) and the line is blank, the http request has ended, // so you can send a reply if (c == ' ' && currentLineIsBlank) { // send a standard http response header client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println("Connection: close"); // the connection will be closed after completion of the response client.println("Refresh: 5"); // refresh the page automatically every 5 sec client.println(); client.println(""); client.println(""); // output the value of each analog input pin for (int analogChannel = 0; analogChannel < 6; analogChannel++) { int sensorReading = analogRead(analogChannel); client.print("analog input "); client.print(analogChannel); client.print(" is "); client.print(sensorReading); client.println(""); } client.println(""); break; } if (c == ' ') { // you're starting a new line currentLineIsBlank = true; } else if (c != ' ') { // you've gotten a character on the current line currentLineIsBlank = false; } } } // give the web browser time to receive the data delay(1); // close the connection: client.stop(); Serial.println("client disconnected"); } }
@MegaElvisd
@MegaElvisd 9 жыл бұрын
Greetings: Great videos. I've been spending some time trying to get data to push from an XBee (with Sparkfun shield) to the net via the Ethernet shield. I so far have mastered using the shield itself and sending analog data from an xbee to the other, but integrating the two leaves me puzzled. The sketch I've put together loads, and the serial monitor acknowledges a client trying to contact, but on the webpage side it won't connect. Do you have any experience combining the two?
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
***** I only have limited experience with the XBees, none of my projects seemed to really need one. Just to understand what you are trying to do: you want to have two XBees connected to a single Ethernet shield, and from there to the Internet?
@marlowdupont4211
@marlowdupont4211 8 жыл бұрын
+Tech Explorations How can you do the telnet thing on windows through a web browser.
@archusvijay1
@archusvijay1 9 жыл бұрын
hi,nice video,i have one doubt how can i send data to website.
@mladenmladenov7835
@mladenmladenov7835 9 жыл бұрын
Hello, What do i need in order to control the arduino, with local website? I would like to set up a website with bottons and just turn on/off the light via the browser without internet connection( the website is not hosted) ? Is there any chance?
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
Mladen Mladenov Hi, do you want the web site to run on the Arduino itself?
@Nathendov
@Nathendov 9 жыл бұрын
How do i connect to a server via widows console?
@kenneth123skate321
@kenneth123skate321 3 жыл бұрын
Thank you so much, it was a very help for me !!!
@TechExplorations_
@TechExplorations_ 2 жыл бұрын
Glad to hear that!
@AbdullahMohsin
@AbdullahMohsin 4 жыл бұрын
hey does anyone know where the code file is
@xx7667
@xx7667 10 жыл бұрын
do we need to connect the ethernet cable (other end)to the pc or router ??? thanks
@TechExplorations_
@TechExplorations_ 10 жыл бұрын
savichovich Hi, sorry for the late reply - Yes, plug the Ethernet cable from the Arduino to your switch or router (not directly to the PC).
@xx7667
@xx7667 10 жыл бұрын
Tech Explorations many thanks
@paulofernandes7017
@paulofernandes7017 9 жыл бұрын
Can you confirm that the Ethernet Shield is without POE?
@selladurairavishasthri894
@selladurairavishasthri894 9 жыл бұрын
hi, whatever you have done here i did correctly but when i type the telnet and ip address in command prompt it says "telnet is not recognized as a internal or external command operable program or batch file" plz give me the solution sir... anxiously waiting for reply
@thomasbutler7083
@thomasbutler7083 9 жыл бұрын
+Selladurai Ravishasthri lmgtfy.com/?q=telnet+is+not+recognized+as+a+internal+or+external+command+operable+program+or+batch+file
@TheFunkman
@TheFunkman 8 жыл бұрын
+Selladurai Ravishasthri Telnet is an app you have to buy and install. It is a terminal emulator.
@TechExplorations_
@TechExplorations_ 8 жыл бұрын
+Selladurai Ravishasthri I suspect you are on Windows. You can download the free Putty application which gives you Telnet (along with a few other things): www.chiark.greenend.org.uk/~sgtatham/putty/
@YouTubeBoy
@YouTubeBoy 8 жыл бұрын
Sir my question is your Ethernet wire where is connected Directly in Pc Or Router 2.Question Name Of Dhcp Sever You Are install 3 Question Name of your Arduino Board Thanx for Hard Effort
@kareemnofel1570
@kareemnofel1570 8 жыл бұрын
,, Where i can find the TELNET? , cause i don't know where to write the commands Would be appreciated
@TechExplorations_
@TechExplorations_ 8 жыл бұрын
+kareem nofel Hi Kareem, if you are using Mac OS X or Linux, you can start Telnet from the command prompt. If you are on Windows, I recommend Putty (Google it!).
@kareemnofel1570
@kareemnofel1570 8 жыл бұрын
(" I've installed putty ,but it 's not working it gives me ("Network error :connection timed out ?what's the problem could be
@johnmurray7767
@johnmurray7767 8 жыл бұрын
+kareem nofel If Telnet is not working you may need to enable it. Go to Control Panel, Programs & features, Turn Windows features on and off, and check the box next to telnet. Now when you go to the command prompt you will find Telnet is enabled. J Murray
@kareemnofel1570
@kareemnofel1570 8 жыл бұрын
+John Murray Thank you I've done that and it's working now, you're so helpful and kind I'm thankful
@garagesmart3088
@garagesmart3088 5 жыл бұрын
Hello, Were can I find your source code for this project (Using the Arduino Ethernet Shied, Part 2 of 2) ?
@TechExplorations_
@TechExplorations_ 5 жыл бұрын
Hi, you can find all source code at github.com/futureshocked/arduino_sbs
@ianturner2229
@ianturner2229 8 жыл бұрын
Great sketch Peter ? It was easy to understand the sketch,and gives a very good basis for us newbies to experiment with telnet to control our arduino projects. Have you thought about, or perhaps already produced some that use a web browser to to achieve the same end so that we could use our tablets etc to do the same thing while remote from our homes. I know that parsing HTML code is a bitch, but it must be doable relatively easily for simple commands. ? I hope you will, that would be awesome Cheers Ian
@TechExplorations_
@TechExplorations_ 8 жыл бұрын
Hi Ian, thank you! I do have lecture that show how to use your browser to control an Arduino, they are part of my Arduino Step by Step course (see my notes under the video).
@johnpham4877
@johnpham4877 9 жыл бұрын
hi i not connect to website have ip 192.168.1.177 mac address ? I tried to but failed pls reply
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
Phi Phạm Hi Phi, how do you know that your Arduino is listening to IP 192.168.1.177?
@johnpham4877
@johnpham4877 9 жыл бұрын
my ip router 192.168.1.1 . i control turn on off led via website. I try test file->example-> webserver but not connect to sever. Pls help me. Sr, my level english is bad.
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
Sorry, I am having trouble understanding. Where you actually able to turn on and off the LED?
@vaporlaute4880
@vaporlaute4880 9 жыл бұрын
hi, i was looking for L33 in the web page code.google.com/p/rc-switch/source/browse/tags/v1.2/examples/Webserver/Webserver.pde you posted down, but I can not find it, is it there ? thanks for your time, by the way very good tutorials
@TechExplorations_
@TechExplorations_ 9 жыл бұрын
vaporla ute Sorry about that, I have to fix the link. Here's is Part 1 of the lecture: kzbin.info/www/bejne/rJSydmWOdrZ7sLs
@66alexsun
@66alexsun 8 жыл бұрын
HELLO, i was looking for the code at github.com/futureshocked/arduino_sbs, then L33 but i could not find it. appreciate your feedback.
@NotShanny
@NotShanny 8 жыл бұрын
github.com/futureshocked/arduino_sbs/blob/76034a737adc56cab92e521a7d747abd0e8dfd2c/Ethernet%20Shield/EthernetShield_Demo_2_Simple_control/EthernetShield_DhcpChatServer.ino
@passedhighschoolphysics6010
@passedhighschoolphysics6010 5 жыл бұрын
Excellent
@Alberal
@Alberal 8 жыл бұрын
Thank you so much
Using the Arduino Ethernet shield, Part 1 of 2
23:54
Tech Explorations
Рет қаралды 412 М.
Simple Web Server with Arduino Ethernet Shield
19:05
Eli the Computer Guy
Рет қаралды 68 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 58 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 19 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 30 МЛН
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,2 МЛН
High-profile elimination of a war criminal in Moscow
14:33
NEXTA Live
Рет қаралды 151 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 635 М.
Arduino Ethernet Shield Webserver
24:46
BINARYUPDATES
Рет қаралды 116 М.
You can learn Arduino in 15 minutes.
16:34
Afrotechmods
Рет қаралды 10 МЛН
Ethernet Shield for Arduino
19:33
TWiT Tech Podcast Network
Рет қаралды 5 М.
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 302 М.
Arduino Ethernet Shield - Getting Started
15:20
Saravanan AL
Рет қаралды 119 М.
Full video - Data recovery from a dead MicroSD card
16:01
DevelopAKR
Рет қаралды 453 М.
How many people are in the changing room? #devil #lilith #funny #shorts
00:39