Arduino Web server yog dab tsi?
Arduino Web server yog dab tsi?

Video: Arduino Web server yog dab tsi?

Video: Arduino Web server yog dab tsi?
Video: Build an ESP8266 Web Server with Arduino IDE - Code and Schematics 2024, Kaum ib hlis
Anonim

Los ntawm equipping ib Arduino Nrog Ethernet thaiv koj tuaj yeem tig nws mus rau hauv ib qho yooj yim web server , thiab los ntawm kev nkag mus rau qhov ntawd server nrog lub browser khiav ntawm txhua lub computer txuas nrog tib yam network raws li cov Arduino , koj tuaj yeem: Tswj kho vajtse los ntawm nplooj ntawv web (siv Javascript nyees khawm).

Ntxiv mus, Web server piv txwv yog dab tsi?

Web servers yog cov khoos phis tawj uas xa tuaj (ua haujlwm) Web nplooj ntawv. Txhua Web server muaj tus IP chaw nyob thiab tejzaum nws lub npe sau npe. Rau piv txwv , yog tias koj nkag mus rau qhov URL https://www.webopedia.com/index.html hauv koj tus browser, qhov no xa ib daim ntawv thov mus rau Web server nws lub npe yog webopedia.com.

Thib ob, Arduino WiFi ntaub thaiv npog yog dab tsi? Cov Arduino WiFi Shield pub ib Arduino board txuas rau hauv internet siv 802.11 wireless specification ( WiFi ). Nws yog raws li HDG204 Wireless LAN 802.11b/g System in-Package. Arduino sib txuas lus nrog ob leeg Wifi ntaub thaiv npog processor thiab SD daim npav siv SPI npav (los ntawm ICSP header).

Ib yam li ib tug yuav nug, Kuv yuav siv Arduino Ethernet shield li cas?

Rau siv tus daim ntaub thaiv , mount nws rau saum ib Arduino board (piv txwv li lub Uno). Txhawm rau upload cov duab kos rau lub rooj tsavxwm, txuas rau koj lub computer nrog USB cable raws li koj xav tau. Thaum cov duab kos tau raug xa tawm, koj tuaj yeem txiav lub rooj tsavxwm los ntawm koj lub computer thiab siv nws nrog lub hwj chim sab nraud.

Kuv yuav nrhiav tau kuv qhov chaw nyob Arduino MAC li cas?

Lub xwb chaw nyob koj xav tau yog tus MAC chaw nyob ntawm Ethernet ntaub thaiv npog. Hla lub MAC chaw nyob raws li qhov parameter rau Ethernet. pib () txoj kev. Upload cov hauv qab no Arduino sketch rau koj Arduino board, thiab qhib lub Arduino Serial Monitor rau saib lub auto-assigned IP chaw nyob los ntawm DHCP.

Pom zoo: