Cov txheej txheem:

Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python: 5 Cov Kauj Ruam
Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python: 5 Cov Kauj Ruam

Video: Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python: 5 Cov Kauj Ruam

Video: Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python: 5 Cov Kauj Ruam
Video: КАК ИЗМЕРИТЬ ТЕМПЕРАТУРУ И ВЛАЖНОСТЬ. ДАТЧИКИ DHT11 И DHT22 [Уроки Ардуино #13] 2024, Kaum ib hlis
Anonim
Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python
Arduino Xa Dht11 Cov Ntaub Ntawv rau MySQL Server (PHPMYADMIN) Siv Python

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. Tsis zoo li peb txoj haujlwm yav dhau los peb tsis tau siv ib qho kev tiv thaiv ethernet hauv qhov no, ntawm no peb tsuas yog nyeem cov ntaub ntawv xov xwm los ntawm arduino thiab tom qab ntawd thawb ntawd mus rau phpmyadmin los ntawm ib tus lej php. Yog li ntawm no peb cov cuab yeej txuas nrog PC kom nws tuaj yeem xa cov ntaub ntawv ua ntu zus, koj tseem tuaj yeem txuas cov cuab yeej rau raspberry pi kom ua txoj haujlwm no nqa tau.

Kauj Ruam 1: Siv Software:

Siv Software
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 Apache: sudo 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 restart

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

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.

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

Kauj ruam 4: Source Code:

Nov rau arduino Kuv tau siv ib qho piv txwv piv nrog hloov tshiab me ntsis, uas yog DHTtester code, thov saib cov vis dis aus hais txog dab tsi kuv tau hloov pauv ntawm tus lej piv txwv ntawd, thiab ib tus nab npawb nab npawb uas xa cov ntaub ntawv mus rau phpmyadmin, uas koj tuaj yeem ua tau nrhiav los ntawm hauv qab no txuas txuas

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: