Arduino Data WebServer Part 1

preview_player
Показать описание
Sample Web Server running on the Arduino + Ethernet Shield.
Depending on the url used the Arduino will do something and/or send something back. The code is intentionally simple so you can modify it for your own Ethernet Shield projects. Enjoy!

I have an NKC Ethernet shield, but It uses the standard Arduino Ethernet library, so it should work with the Arduino Ethernet Shield too.

More info:
Рекомендации по теме
Комментарии
Автор

Thanks for the information I've been looking fo this for so long. I know HTML programming very well, with this I should design a web-interface really easy. Great video. Thanks

alexm.
Автор

Make sure you are using a Private Address Space and the first three numbers are the same as on ip address of your other devices.

The Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private internets: 10.0.0.0 - 10.255.255.255 (10/8 prefix) 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) 192.168.0.0  - 192.168.255.255 (192.168/16 prefix)
Good luck!

HariWiguna
Автор

It will be hard to debug via youtube comments, ;-) but here it goes. Test that it IS the Arduino that is responding to your ping by unplugging the ethernet cable from the ethernet shield. If you still get a response, then you have another device with that ip address. Give the Arduino a different address.
Good luck!

HariWiguna
Автор

Sandeep, I wonder if you're not in the same IP address range as the rest of your network. 1. Open a command line prompt in your PC, type ipconfig, look for the IP address of that PC. 2. Enter an almost identical IP address in the Arduino sketch. Change the LAST number to a higher number between 0 and 254. This IP address must be unique within your network, so the more devices you have on the network, the more chance of address conflict. I would try xxx.yyy.zzz.250. Good luck!

HariWiguna
Автор

Sandeep,
To clarify, the Arduino and your PC will be on different ethernet wires and have different unique ip addresses.

However, they both should be in the same network. This typically meant they would share the first three numbers (not digits) in their ip addresses.

If they do not, that would explain why the Arduino cannot be reached. Crossing local networks require additional work that is beyond this project.

HariWiguna
Автор

Congratulations Sandeep!
You need to do two things: 1. Use a dynamic dns service so the world can hit your network. 2. Read the manual of your router to point traffic to the MAC address that you've assigned for the Arduino. No change should be necessary to the Arduino sketch. Good luck!

HariWiguna
Автор

thnk u sir, i have completed all those which is shown in your video. it is awesome. actually, i want to operate ethernet shield through an android app. so i have to use any random network to operate it. what about that?

sandeepsingh
Автор

thanks for great tutorial. but i m completely messed up with ip problem. i tried to give different adresses and ping them bt it is not working.



sandeepsingh
Автор

thanks hwiguna.
i got the ip and i moved to next step.
but when i try to write that ip on browser's address bar, the browser shows - "this webpage is not available or it may temporarily down"...
what should i do now?

sandeepsingh
Автор

web uzerinden arduıno ile motor kontrolu yapacagız biz ama web olarak hangi programı kullanacagız bi yardımcı olurmusunuz

ibrahimduman
Автор

thanks bro... but i ddnt get one thing.
do we have to use same network for pc and arduino?
i mean, i am using separate wifi network on pc to which arduino is connected for compiling the code, whereas the ethernet shield is getting different network from another ethernet cable. they are not under same internet connection. :/

sandeepsingh
Автор

hey, I tried this project and I think I am doing something wrong because I gave the arduino a ip address and when I ping it, it does reply back. Can you help me pls ? thx

iankiller
Автор

hey hari, the advice u gave regarding using ddns and router forwarding, since I am in college i cant use that, is there a way around that. please help

trishapandey
Автор

so no one questioned why is his arduino pink?

kaz
join shbcf.ru