Cov txheej txheem:

Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop: 4 Kauj Ruam
Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop: 4 Kauj Ruam

Video: Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop: 4 Kauj Ruam

Video: Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop: 4 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop
Saib Xyuas Tsev/Chav Ua Haujlwm Kub ntawm koj lub Desktop

Txhawm rau saib xyuas chav lossis chaw haujlwm lossis txhua qhov chaw uas peb tuaj yeem siv txoj haujlwm no thiab qhov ntawd tau qhia nrog ntau cov ntsiab lus zoo li duab, ntsuas kub lub sijhawm thiab ntau ntxiv.

Peb siv:

Ua ntej tshaj plaws, peb yuav tsum ua tus account ntawm IoT platform no, thiab tso tus lej no rau ntawm koj li Wemos DI thiab cuam tshuam koj lub LM35 sensor nrog Wemos D1 raws li qhia hauv daim duab thiab tom qab ntawd ua qee cov kauj ruam ntawm Iot platform raws li qhia hauv ppt.

Qhia PPT kom paub ntau ntxiv txog IoT platform.

Koj yuav tsum coj koj tus lej txoj haujlwm (nws yuav muab los ntawm yamIO. AI, raws li qhia hauv PPT) thiab xa mus rau microcontroller.

Kauj Ruam 1: Kauj Ruam Tus Txheej Txheem ntawm Txoj Haujlwm no

Kauj ruam 2: Code

Koj yuav tsum tso cov cai no rau hauv koj lub micro tswj. Ntawm no kuv tab tom siv wemos d1 thiab yuav tsum tau import yam koj yuav tsum tau hloov koj li wifi SSID thiab Password. (Ntawm no kuv yog SSID: DDIK Makadia thiab Password: kidd123456789)

Kauj Ruam 3: Daim duab

Daim duab
Daim duab

Koj yuav tsum txuas koj lub LM35 sensor raws li qhia hauv daim duab.

Kauj Ruam 4: Cov Lus Qhia Kho Vajtse

Kev Qhia Kho Vajtse
Kev Qhia Kho Vajtse
Kev Qhia Kho Vajtse
Kev Qhia Kho Vajtse

LM35 Sensor:

Kev Siv Hluav Taws Xob: 4-20V 3 tus pin: VCC, GND, SIGNAL SIGNAL tus lej hloov pauv qhov hluav taws xob raws li qhov ntsuas kub LM35 yog 3 tus lej ntsuas kub uas xav tau VCC thiab GND thiab rov qab ntxiv tus lej thib peb ntxiv rau peb tso tawm analog. Rau nws tus pin teeb tsa xa mus rau Circuit Diagram hauv qab no. Cov txiaj ntsig no tau muab rau ADCs tam sim no hauv AtMega 16 IC uas raws li tus lej xam qhov ntsuas kub hauv ° C hom. LM35 series yog qhov ntsuas sib xyaw ua ke-ntsuas kub ntsuas, nws qhov hluav taws xob tso tawm yog qhov sib npaug rau Celsius (Centigrade) kub. LM35 yog li muaj qhov zoo dua li ntsuas qhov ntsuas kub ntsuas hauv ° Kelvin.

Wemos D1:

Nta:

11 digital input/output pins, txhua tus pins muaj cuam tshuam/pwm/I2C/ib-xaim txhawb (tshwj tsis yog D0) 1 analog input (3.2V max input) Micro USB txuas fais fab jack, 9-24V fais fab input. Tau tshaj nrog Arduino Sib xws nrog nodemcu

Kev qhia tshwj xeeb:

Microcontroller ESP-8266EX

Kev Ua Haujlwm Voltage 3.3V

Digital I/O Pins 11

Analog Input Pins 1 (Max tswv yim: 3.2V)

Moos Ceev 80MHz/160MHz

Flash 4M bytes

Ntev 68.6 hli

Dav 53.4 hli

Nyhav 25g

Tus Pin:

Pin | Muaj nuj nqi | ESP-8266

TX | TXD | TXD

RX | NQA RXD | RXD

A0 | ib Analog input, max 3.3V tawm tswv yim | A0

D0 | YOG | GPIO16D1 | IO, SCL | Cov PIB 5

D2 | IO, SDA | PIB 4

D3 | IO, 10k Rub-up | PIB 0

D4 | IO, 10k Rub-up, BUILTIN_LED | GPIO 2

D5 | IO, SCK | Cov PIB 14

D6 | ib IB, MISO | PIB 12

D7 | ua IO, MOSI | PIB 13

D8 | IO, 10k Rub-down, SS | PIB 15

G | Hauv av | GND

5V | 5V | -

3V3 | 3.3V | 3.3v ua

RST | Cov Pib dua | RST

Pom zoo: