Cov txheej txheem:

ARDUINO INTERNET CONTROLLED: 5 Kauj Ruam
ARDUINO INTERNET CONTROLLED: 5 Kauj Ruam

Video: ARDUINO INTERNET CONTROLLED: 5 Kauj Ruam

Video: ARDUINO INTERNET CONTROLLED: 5 Kauj Ruam
Video: Amazing arduino project 2024, Lub Xya hli ntuj
Anonim
ARDUINO INTERNET CONTROLLED
ARDUINO INTERNET CONTROLLED

Kuv xav ntau los nrhiav qhov kev daws teeb meem pheej yig los txuas kuv Arduino board rau hauv internet yam tsis siv Ethernet daim thaiv lossis txawm tias muaj WIFI modules. tom qab tshawb fawb kuv pom tias tib txoj hauv kev los tham nrog Arduino pawg thawj coj yog tham nrog nws cov chaw nres nkoj txuas, yog li kuv tsim qhov yooj yim C# qhov rai thov kom ua haujlwm li (HUB) los daws qhov chaw nres nkoj xa thiab txais cov ntaub ntawv rau kuv pawg thawj coj..

Daim Ntawv Thov HUB no txuas nrog internet ntawm koj lub khoos phis tawj ntiag tug thiab pab xa thiab txais cov ntaub ntawv nruab nrab ntawm koj lub rooj tswj hwm huab huab, ib sab khaws cov ntaub ntawv sib pauv los ntawm thiab mus rau Arduino thiab online MySQL database, yog li koj tuaj yeem ua txheeb cais raws li koj xav.

Kauj ruam 1: Arduino Code

Arduino Txoj Cai
Arduino Txoj Cai

Ua ntej tshaj plaws kuv yuav tsum pib nrog qhov piv txwv me uas tso cai rau kuv sim ua ntawv thov lub tswv yim thiab nws lub peev xwm, yog li hauv qhov piv txwv no kuv tsis txuas ib qho sensor kuv tsuas yog siv qhov tsim hauv LED ntawm Arduino yog li kuv tuaj yeem qhib thiab tua lub teeb LED hauv tus pin 13 los ntawm kev xa cov ntawv "Kuv" thiab "O" ntawm qhov chaw nres nkoj

Kauj ruam 2: Tsim Online Database

Tsim Online Database
Tsim Online Database
Tsim Online Database
Tsim Online Database
Tsim Online Database
Tsim Online Database

Thiab txhawm rau khaws cov ntaub ntawv peb yuav tsum siv tus kws kho mob hauv online kom dhau los ua tus choj ntawm Arduino pawg thawj coj thiab Daim Ntawv Thov Hub.

yog li kuv xaiv lub vev xaib online pub dawb hosting lub vev xaib uas yuav ua haujlwm kom txuag tau kuv cov ntaub ntawv tau txais los ntawm Arduino board ntxiv rau xa cov lus txib rau nws, Kuv xaiv MySQL databases vim nws yog dawb thiab nquag siv. Hauv cov ntawv txuas nrog koj yuav pom tias nws tsuas muaj ob lub rooj xwb. thawj qhov yog khaws cov lus txib tom qab ntawd xa nws mus rau lub rooj tsavxwm, thiab lub rooj thib ob kom tau txais cov txiaj ntsig ntawm Arduino pawg thawj coj saib thiab rov ua nws tom qab siv.

Pub dawb hosting Mysql database:

Online PHP MyAdmin:

Kauj Ruam 3: Tsim C# Windows Form HUB

Tsim C# Windows Form HUB
Tsim C# Windows Form HUB
Tsim C# Windows Form HUB
Tsim C# Windows Form HUB

Tom qab ntawd kuv tau tsim lub hauv paus no uas tuaj yeem suav hais tias yog lub rooj mloog hauv PC kom tso cai cov ntaub ntawv hla nws ua ntej ces xa nws mus rau Arduino pawg thawj coj ntawm chaw nres nkoj thiab lwm yam.

Lub interface ntawm lub hub no yooj yim heev, Nws Muaj ob lub thawv ntawv nplua nuj tsuas yog qhia qhov xwm txheej ntawm txhua qhov kev sib pauv dhau pov lub hub (xa thiab txais) cov ntaub ntawv.

Nco tseg: lub hub no yuav tsum tau khiav ib txwm tsuav koj xav siv koj li Arduino board pov tseg hauv internet

Kauj ruam 4: Tsim Web Interface

Tsim Web Interface
Tsim Web Interface
Tsim Web Interface
Tsim Web Interface

Ntawm no peb tuaj rau qhov txias tshaj plaws..

Kuv tsim daim ntawv thov web raws li Asp.net C# thev naus laus zis nrog lub luag haujlwm teb uas tuaj yeem ua haujlwm ntawm txhua lub cuab yeej, daim ntawv thov web no tsuas yog cuam tshuam nrog cov ntaub ntawv hauv online yam tsis muaj kev paub dab tsi yog pawg thawj coj hauv qab.

Ntawm qhov kev sib tshuam no koj tuaj yeem faib koj cov khoom siv hluav taws xob uas txuas rau Arduino.. thiab los ntawm txhaj rau thiab ntawm koj tsuas yog khaws cov ntaub ntawv online.

Piv txwv:

los ntawm kev nyem lub pob ntsuab (ON) hauv Tshooj Hall, koj xa daim ntawv xaj hauv is taws nem kom qhib lub teeb ntawm koj lub tsev Hall, yog li ntawm lwm sab ntawm lub ntiaj teb lub hub tau txais qhov kev txiav txim no thiab ua haujlwm nrog koj li Arduino Electronic Circuit ntawm tsev.

tiv thaiv tsis muaj dab tsi BtnHallOn_Click (tus xa khoom, EventArgs e) {AddTempOrders ("Kuv"); // xa tsab ntawv "Kuv" rau Arduino qhib lub teeb pom kev}

Kauj ruam 5: Rub tawm Txoj Haujlwm

Rub tawm Txoj Haujlwm
Rub tawm Txoj Haujlwm

Nws yog lub sijhawm los sim nws koj tus kheej thiab ua koj tus kheej kev paub.

Vam tias koj txaus siab rau nws…

Pom zoo: