Cov txheej txheem:

DIY Wifi Tsheb: 4 Kauj Ruam
DIY Wifi Tsheb: 4 Kauj Ruam

Video: DIY Wifi Tsheb: 4 Kauj Ruam

Video: DIY Wifi Tsheb: 4 Kauj Ruam
Video: valentine's nkauj nog thiab tub huab tais 2024, Lub rau hli ntuj
Anonim
DIY Wifi Tsheb
DIY Wifi Tsheb
DIY Wifi Tsheb
DIY Wifi Tsheb

Koj puas tuaj yeem tig lub tsheb RC qub thiab tswj nws nrog xov tooj?

Yog koj tuaj yeem ua tau thiab kuv yuav qhia koj yuav ua li cas. Nov yog kuv thawj qhov kev qhia yog li yog qee yam tsis paub meej tias kuv tau ua nws li cas hauv cov lus thiab kuv thov txim rau cov ntawv sau tsis zoo.

Kuv lub tsheb RC muaj RX-2B ua tus tswj hwm tab sis txawm hais tias koj tau txais qee qhov nti nws yooj yim zoo nkauj los saib hauv cov ntaub ntawv thiab txuas nws kom raug vim tias peb tsuas yog siv H-choj ntawm PCB. Kuv yuav siv NodeMCU ua tus tswj hwm thiab txuas nws mus rau H-choj ntawm PCB tab sis koj tuaj yeem siv ib qho microcontroller uas koj muaj thiab tsuas yog ntxiv bluetooth module lossis esp8266 rau Wifi.

Khoom siv

1. Laus lossis qee lub tsheb pheej yig RC

2. NodeMCU

3. Cov xov hlau

4. 4 AA roj teeb thiab 1 9V roj teeb

Kauj Ruam 1: PCB

PCB
PCB
PCB
PCB
PCB
PCB

RX-2B siv nrog TX-2B. TX yog tus xa tawm thiab RX yog tus txais. Hauv cov ntawv xov xwm koj tuaj yeem pom pins ntawm RX-2B thiab yuav txuas nws li cas. Kuv RX-2B tau txuas nrog zoo ib yam rau daim ntawv tab sis tsis muaj turbo tus pin txuas.

Peb xav tau tsuas yog 4 tus pin los tswj 2 H-choj (rau pem hauv ntej, rov qab, sab xis, sab laug). Koj yuav tsum pom cov pins ntawm PCB thiab tom qab ntawd ua raws kab rau cov neeg tawm tsam thiab cov xaim hluav taws xob txuas rau tus tiv thaiv ntawd. Nws yog qhov zoo los rhuav tshem cov kab los ntawm cov neeg tawm tsam mus rau tus pin yog li tsis muaj tam sim no mus rau hauv RX-2B lossis koj tuaj yeem tshem RX tag thiab tsuas yog sab laug H-txuas ntawm PCB

Kauj ruam 2: NodeMCU

NodeMCU
NodeMCU
NodeMCU
NodeMCU
NodeMCU
NodeMCU

Tam sim no koj yuav tsum txuas cov xov hlau uas koj txuas rau NodeMCU thiab txuas hauv av ntawm PCB mus rau hauv av ntawm NodeMCU.

Kuv txuas D1-rau pem hauv ntej, D2-rov qab, D5-sab laug, D6-txoj cai.

Kuv ntxiv 9v lub roj teeb tsuas yog rau lub zog NodeMCU (ntawm Vin) vim tias 4 AA roj teeb tsis muaj lub zog txaus los ua lub cav thiab nodeMCU; Kuv ntxiv qhov hloov rau tig NodeMCU qhib thiab tua; Kuv tshem tawm lub caij nplooj ntoo hlav me me los ntawm thawj lub cav uas tau rov qab log hauv txoj haujlwm ntuj (xaiv tau).

Kauj ruam 3: Code

Code
Code
Code
Code
Code
Code

Peb yuav txuas rau wifi thiab txhua tus neeg uas txuas nrog ntawm lub wifi ntawd tuaj yeem sau IP chaw nyob ntawm NodeMCU hauv kev tshawb fawb thiab los ntawm kev ntxiv qee yam tom qab tus IP chaw peb tuaj yeem ua qee qhov ua rau ntawm lub rooj tsavxwm (piv txwv li 192.168.5.5/high uas yuav teeb D1 HIGH thiab lub cav yuav pib tig rau pem hauv ntej). Tab sis qhov ntawd yog txoj hauv kev tsis zoo los tswj lub tsheb yog li kuv tau ua app uas thaum qee lub pob nyem nws sau qhov chaw nyob thiab qee lo lus rau peb.

Kauj Ruam 4: Xaus

Nws yog qhov haujlwm me me lom zem uas ua haujlwm tab sis muaj ntau txoj hauv kev los txhim kho nws:

1. 4 AA roj teeb tau nrawm heev yog li kev daws teeb meem zoo dua yuav yog roj teeb rov tau

2. WiFi tsis yog txoj hauv kev zoo tshaj los tsav tsheb, Bluetooth yuav zoo dua

3. tej zaum luam tawm 3D lossis ua qee qhov thaiv rau lub tsheb

Pom zoo: