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-uo8je9 жыл бұрын
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-yv9xw4 жыл бұрын
Very good video. Very well explained. Thanks a lot. I already subscribed to your channel and gave you a like.
@TechExplorations_ Жыл бұрын
Awesome, thank you!
@pierreletourneau7223 жыл бұрын
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
@andli869 жыл бұрын
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:
@jeanbeausuperbeau5 жыл бұрын
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
@DevulNahar3 жыл бұрын
What exactly is the client and what exactly is the server in this project?
@RD-ni7qe4 жыл бұрын
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_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.innovations82147 жыл бұрын
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.
@gnevzmaja10 жыл бұрын
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_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.
@Haisam197410 жыл бұрын
awesome , thanks , do you have the code posted anywhere , as id like to keep it as an example '
@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.
@januarsahrul5 жыл бұрын
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
@Biginjapan859 жыл бұрын
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!
@Biginjapan859 жыл бұрын
rory johnstone I only had one '=' in the if (newChar == 0x0D) line adding another '=' fixed the issue
@Klexem8 жыл бұрын
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.
@wendersoncunhacampos16688 жыл бұрын
Can I to comunicate with more 2 arduinos? How I control the others slaves and the Ethernet Shield? Thanks!!!
@sonic47829 жыл бұрын
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_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!
@ajittarwate36709 жыл бұрын
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"); } }
@MegaElvisd9 жыл бұрын
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_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?
@marlowdupont42118 жыл бұрын
+Tech Explorations How can you do the telnet thing on windows through a web browser.
@archusvijay19 жыл бұрын
hi,nice video,i have one doubt how can i send data to website.
@mladenmladenov78359 жыл бұрын
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_9 жыл бұрын
Mladen Mladenov Hi, do you want the web site to run on the Arduino itself?
@Nathendov9 жыл бұрын
How do i connect to a server via widows console?
@kenneth123skate3213 жыл бұрын
Thank you so much, it was a very help for me !!!
@TechExplorations_2 жыл бұрын
Glad to hear that!
@AbdullahMohsin4 жыл бұрын
hey does anyone know where the code file is
@xx766710 жыл бұрын
do we need to connect the ethernet cable (other end)to the pc or router ??? thanks
@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).
@xx766710 жыл бұрын
Tech Explorations many thanks
@paulofernandes70179 жыл бұрын
Can you confirm that the Ethernet Shield is without POE?
@selladurairavishasthri8949 жыл бұрын
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
+Selladurai Ravishasthri Telnet is an app you have to buy and install. It is a terminal emulator.
@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/
@YouTubeBoy8 жыл бұрын
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
@kareemnofel15708 жыл бұрын
,, Where i can find the TELNET? , cause i don't know where to write the commands Would be appreciated
@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!).
@kareemnofel15708 жыл бұрын
(" I've installed putty ,but it 's not working it gives me ("Network error :connection timed out ?what's the problem could be
@johnmurray77678 жыл бұрын
+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
@kareemnofel15708 жыл бұрын
+John Murray Thank you I've done that and it's working now, you're so helpful and kind I'm thankful
@garagesmart30885 жыл бұрын
Hello, Were can I find your source code for this project (Using the Arduino Ethernet Shied, Part 2 of 2) ?
@TechExplorations_5 жыл бұрын
Hi, you can find all source code at github.com/futureshocked/arduino_sbs
@ianturner22298 жыл бұрын
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_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).
@johnpham48779 жыл бұрын
hi i not connect to website have ip 192.168.1.177 mac address ? I tried to but failed pls reply
@TechExplorations_9 жыл бұрын
Phi Phạm Hi Phi, how do you know that your Arduino is listening to IP 192.168.1.177?
@johnpham48779 жыл бұрын
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_9 жыл бұрын
Sorry, I am having trouble understanding. Where you actually able to turn on and off the LED?
@vaporlaute48809 жыл бұрын
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_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
@66alexsun8 жыл бұрын
HELLO, i was looking for the code at github.com/futureshocked/arduino_sbs, then L33 but i could not find it. appreciate your feedback.