Cov txheej txheem:

Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN): 5 Cov Kauj Ruam
Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN): 5 Cov Kauj Ruam

Video: Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN): 5 Cov Kauj Ruam

Video: Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN): 5 Cov Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN)
Arduino Xa Cov Ntaub Ntawv Kub thiab Vaum rau MySQL Server (PHPMYADMIN)

Hauv Txoj Haujlwm no Kuv tau cuam tshuam DHT11 nrog arduino thiab tom qab ntawd kuv xa cov ntaub ntawv ntawm dht11 uas yog cov av noo thiab kub mus rau phpmyadmin database. Ntawm no peb tab tom siv ib tsab ntawv PHP los thawb cov ntaub ntawv mus rau phpmyadmin database.

Kauj Ruam 1: Siv Software:

Siv Software
Siv Software
Siv Software
Siv Software

Nov yog cov software peb tau siv rau txoj haujlwm no:

1. Arduino IDE: Koj tuaj yeem rub tawm qhov tseeb Arduino IDE los ntawm qhov txuas no:

2. Kev teeb tsa XAMPP server: Ntawm no peb siv XAMPP server nws tuaj yeem siv tau ob qho tib si hauv lub qhov rais thiab Linux, tab sis kuv qhov lus pom yog tias yog koj nyob hauv Ubuntu (Txhua lub platform Linux) tom qab ntawd mus nrog LAMP. Tam sim no txij li peb nyob hauv windows yog li peb tau nyiam XAMPP server. Yog li koj tuaj yeem rub tawm XAMPP server los ntawm qhov txuas no.

Xwb ntawm no yog cov kauj ruam rau LAMP server:

1. Nruab Apachesudo apt-tau nruab apache2

2. Nruab MySQL:

sudo apt-tau nruab mysql-server

3. Nruab PHP:

sudo apt-tau nruab php5 libapache2-mod-php5

4. Restart Server:

sudo /etc/init.d/apache2 rov pib dua

5. Txheeb xyuas Apache https:// localhost/

koj yuav tau txais ib nplooj ntawv apache los ntawm nyem qhov txuas saum toj no yog tias koj tsis tau txais nws txhais tau tias muaj qee yam tsis raug nrog koj teeb tsa

Ntawm no peb tab tom siv PHPMYADMIN uas yog lub vev xaib sib tham ntawm MySQL server yog li txhawm rau txhim kho qhov kev siv hais kom ua:

sudo apt-tau nruab phpmyadmin

Kauj Ruam 2: Cov Khoom Siv:

Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv

1) Arduino UNO: Arduino/Genuino Uno yog lub microcontroller board raws li ATmega328P (cov ntawv). Nws muaj 14 digital input/output pins (ntawm uas 6 tuaj yeem siv ua PWM tawm), 6 analog inputs, 16 MHz quartz siv lead ua, txuas USB, txuas lub hwj chim, ICSP header thiab khawm rov pib dua.

2) Ethernet Shield: Arduino Ethernet Shield 2 txuas koj Arduino rau hauv internet hauv feeb xwb. Tsuas yog ntsaws qhov qauv no rau koj Arduino Board, txuas nws rau koj lub network nrog RJ45 cable thiab ua raws ob peb kauj ruam yooj yim kom pib tswj hwm koj lub ntiaj teb los ntawm internet. Raws li ib txwm nrog Arduino, txhua lub hauv paus ntawm lub platform-kho vajtse, software thiab ntaub ntawv-yog muaj pub dawb thiab qhib-qhov chaw. Qhov no txhais tau tias koj tuaj yeem kawm raws nraim li nws tau tsim thiab siv nws cov qauv tsim los ua qhov pib rau koj tus kheej kev sib tw. Ntau pua txhiab tus Arduino Boards twb tau txhawb nqa tib neeg txoj kev muaj tswv yim thoob plaws ntiaj teb, txhua hnub.

3) DHT11 sensor: Qhov DHT11 Kub thiab Vaum Sensor nta qhov ntsuas ntsuas cov teeb liab tso tawm nrog qhov ntsuas kub thiab av noo lub peev xwm. Nws tau koom ua ke nrog kev ua haujlwm siab 8-ntsis microcontroller. Nws cov cuab yeej siv ua kom ntseeg tau zoo thiab ruaj khov mus sij hawm ntev zoo. Qhov ntsuas no suav nrog lub hauv paus tiv thaiv thiab lub ntsuas rau ntub NTC ntsuas cov ntsuas kub. Nws muaj qhov ua tau zoo tshaj plaws, teb tau sai, muaj peev xwm tiv thaiv kev cuam tshuam thiab ua haujlwm tau zoo.

Kauj Ruam 3: Daim Duab Circuit:

Daim duab kos duab
Daim duab kos duab
Daim duab kos duab
Daim duab kos duab

Circuit Diagram ntawm qhov haujlwm no tau muab rau saum toj no.

Koj yuav tsum txuas Ethernet ntaub thaiv npog ua ntej raws li qhia hauv daim duab saum toj no koj yuav tsum ua kom DHT11 txuas

Kauj ruam 4: Code:

Koj tuaj yeem tau txais qhov chaws ntawm txoj haujlwm no los ntawm peb nplooj ntawv github. Nov yog github txuas rau qhov ntawd

Kauj ruam 5: Yees duab:

Kev piav qhia tag nrho Txoj Haujlwm tau muab rau hauv cov vis dis aus saum toj no

Yog tias koj muaj kev tsis ntseeg txog txoj haujlwm no thov tawm lus rau peb hauv qab no.

Thiab yog tias koj xav kawm paub ntau ntxiv txog kev teeb tsa kab ke koj tuaj yeem mus ntsib peb tus youtube channel

Thov mus saib thiab nyiam peb Facebook nplooj ntawv rau hloov tshiab tas li.

Ua tsaug & Ua tsaug, Embedotronics yees

Pom zoo: