Cov txheej txheem:

Tsim $ 15 Kev Tswj Chaw Taws Teeb ESP8266 Neeg Hlau Butler / Tsheb / Tank rau Ios thiab Android: 4 Kauj Ruam
Tsim $ 15 Kev Tswj Chaw Taws Teeb ESP8266 Neeg Hlau Butler / Tsheb / Tank rau Ios thiab Android: 4 Kauj Ruam

Video: Tsim $ 15 Kev Tswj Chaw Taws Teeb ESP8266 Neeg Hlau Butler / Tsheb / Tank rau Ios thiab Android: 4 Kauj Ruam

Video: Tsim $ 15 Kev Tswj Chaw Taws Teeb ESP8266 Neeg Hlau Butler / Tsheb / Tank rau Ios thiab Android: 4 Kauj Ruam
Video: Npau Suav li no Txhob coj mus tham qhia luag lwm tus 2024, Kaum ib hlis
Anonim
Image
Image
Tsim Blynk App
Tsim Blynk App

Koj puas ntxub taug kev mus rau chav ua noj kom khaws cov khoom noj txom ncauj? Lossis kom tau haus dej tshiab? Txhua qhov no tuaj yeem kho nrog qhov yooj yim $ 15 tus tswj chaw taws teeb.

Ua ntej peb mus ntxiv ib qho ntxiv Kuv tab tom ua haujlwm Kickstarter txoj cai tam sim no rau lub suab tswj RGB ledstrip uas ua haujlwm nrog Cortana thiab raug nqi $ 19. Nws tuaj yeem pom ntawm no:

www.kickstarter.com/projects/1538004954/co…

Hauv Cov Lus Qhia no peb yuav tsim lub chaw tswj chaw taws teeb. Nws tuaj yeem tswj hwm WiFi siv Iphone lossis Android xov tooj. Tag nrho txoj haujlwm yog ua raws ESP8266 nodeMCU pawg thawj coj thiab txhua yam tuaj yeem tsim tau rau $ 15 yog tias koj yuav los ntawm Tuam Tshoj.

Rau qhov haujlwm no peb xav tau cov hauv qab no:

1x ESP8266 pawg thawj coj saib

2x Geared DC motors nrog lub log

1x L293D lossis 2x bc547 NPN transistors

1x daim ntawv qhia khoom noj khoom haus + cov ntawv xov tooj cua

1x daim ntoo

1x lub thoob khib nyiab (lossis lwm yam uas yuav yog lub rooj hauv qib 3)

1x 360 degree tig lub log

1x roj teeb rau DC motors. Kuv siv 2s Lipo

1x5V fais fab txhab nyiaj

Txoj haujlwm no tseem muaj txiaj ntsig yog tias koj xav tsim lub tsheb tswj, tsheb thauj khoom lossis tsheb thauj mus los txij li cov khoom siv hluav taws xob yuav zoo ib yam. Tsuas yog lub hauv paus xav tau hloov pauv.

Yog li cia peb pib!

Kauj Ruam 1: Tsim Blynk App

Tsim Blynk App
Tsim Blynk App
Tsim Blynk App
Tsim Blynk App

Txhawm rau pib ua ntej peb yuav tsum rub lub app hu ua Blynk. Nws tuaj yeem pom nyob hauv ob qho AppStore zoo li hauv PlayStore. Tom qab rub tawm lub app peb yuav tsum ua cov theem hauv qab no (kos cov duab saum toj no rau kev pom pom ntawm qhov kuv tab tom ua).

1. Tsim ib tus as khauj thiab nkag mus.

2. Nias lub pob "project tshiab".

3. muab lub npe project thiab xaiv ua pawg ESP8266 thiab txuas nrog WiFi.

4. los so rau sab laug thiab ntxiv ob lub khawm zoo li hauv daim duab saum toj no.

5. nyem rau ntawm sab laug khawm thiab hloov tus pin rau GP0

6. Ua tib yam rau txoj cai khawm tab sis hloov tus pin tam sim no rau GP2

Thaum kawg peb yuav tsum tau txais daim ntawv lees paub. Nyem rau ntawm lub cim txiv ntoo nyob rau sab saum toj sab xis thiab tshawb rau daim ntawv cim npe. Nws yog txoj hlua ntev ntawm cov lej thiab cov ntawv tsis raug. Sau txoj hlua no vim tias peb xav tau nws hauv qib tom ntej.

Kauj ruam 2: Program ESP8266

Program ESP8266
Program ESP8266
Program ESP8266
Program ESP8266

Vim tias peb siv Blynk app peb tsis tas yuav siv cov lej nyuaj. Txhawm rau pib peb xav tau qhib Arduino IDE. Kuv xav tias koj twb muaj koj li Arduino IDE teeb tsa rau ESP8266 Pawg Thawj Coj thiab koj tuaj yeem xa mus rau nws. Yog tias tsis muaj kev qhia ntau hauv online ntawm yuav ua li cas.

Tsuas yog rub cov ntaub ntawv robotButler.ino los ntawm Kev Qhia thiab qhib nws hauv Arduino IDE. Ua ntej peb tuaj yeem upload nws peb yuav tsum hloov 3 qhov ntsuas:

Saib rau kab kab no:

char auth = "YourAuthToken";

Tam sim no hloov cov ntawv nruab nrab ntawm "" rau koj daim ntawv cim npe. Nov yog qhov ntev ntawm cov lej thiab cov ntawv uas koj tau sau los ntawm qib 1.

Piv txwv: char auth = "8d454db36538e4ce49516ca476186r9db";

Tam sim no nrhiav ob kab ntawm cov cai:

char ssid = "YourNetworkName";

char pass = "YourPassword";

Tam sim no hloov cov ntawv nruab nrab ntawm "" rau ssid rau lub npe ntawm koj lub tsev WiFi network rau kuv ElferinksWiFi.

Tam sim no hloov cov ntawv nruab nrab ntawm "" rau tus lej nkag mus rau tus password ntawm koj lub network WiFi hauv tsev.

Piv txwv

char ssid = "ElferinksWiFi";

char dhau = "TERHTK18R";

Tom qab qhov no koj tuaj yeem txuas ESP8266 nrog USB cable thiab nyem lub pob upload kom nyem rau ESP8266.

Kauj Ruam 3: Ua Kho Vajtse

Ua Kho Vajtse!
Ua Kho Vajtse!
Ua Kho Vajtse!
Ua Kho Vajtse!
Ua Kho Vajtse!
Ua Kho Vajtse!

Tam sim no peb muaj cov software ua tiav peb tuaj yeem pib tsim kho vajtse.

Kuv pib nrog tsim cov phiaj xwm saum toj no ntawm lub khob cij. Ob qho kev ua haujlwm ua haujlwm tab sis rau qee qhov laj thawj NPN transistors kuv tau siv bc547 hauv qhov txheej txheem thib ob tau kub heev. Tias yog vim li cas kuv thiaj txiav txim siab siv L293d lub cev tsav tsheb IC uas ua haujlwm zoo rau kuv.

Tom qab cov txheej txheem tiav peb yuav tsum tau ua kom muaj zog tag nrho. Kuv tau siv rau qhov no 2s (7.4V) lipo roj teeb rau lub zog rau lub cav thiab 5V lub txhab nyiaj fais fab rau lub zog ESP8266.

Tam sim no peb tuaj yeem pib tsim cov neeg hlau nws tus kheej.

1. Kub Kua nplaum ob lub cav dc rau ib qho ntoo.

2. Kub Khov lub log tig mus rau qhov kawg ntawm lub hauv paus uas koj siv. Hauv kuv qhov xwm txheej ib puag ncig hlau disk.

3. Kub Nplaum daim ntoo nrog DC motors rau koj lub hauv paus.

4. Tam sim no Hot Glue thwe electronics rau lub hauv paus.

Tom qab lub hauv paus tiav peb xav tau los tsim cov kab ntawv nws tus kheej. Kuv siv lub thoob khib nyiab uas kuv tau tso ib ncig. Tom qab zip khi nws mus rau lub hauv paus thiab muab ib daim ntoo tso rau saum tus neeg hlau ua tiav.

Koj tseem tuaj yeem tsim lub hauv paus sib txawv kiag li. Yog tias koj piv txwv xav tsim lub tank tswj chaw taws teeb koj tuaj yeem tsim lub hauv paus rau qhov ntawd thiab siv cov khoom siv hluav taws xob zoo ib yam li hauv qhov haujlwm no. Qhov no zoo ib yam yog tias koj xav tsim: tsheb tswj chaw taws teeb, rover lossis txhua yam uas koj tuaj yeem xav txog.

Kauj ruam 4: Cia Caij

Cia Caij!
Cia Caij!

Nrog txhua yam ua tiav peb tuaj yeem ntsaws ESP8266 rau hauv lub txhab nyiaj thiab qhib Blynk app ntawm koj lub xov tooj. Lub app yuav txuas rau tus neeg hlau thiab tam sim no koj tuaj yeem tsav nws nyob txhua qhov chaw!

Yog tias koj muaj lus nug tsis txhob ua siab deb nug kuv.

Yog tias koj nyiam txoj haujlwm no koj tuaj yeem tshawb xyuas kuv lwm cov haujlwm uas tseem yog hom IOT cov haujlwm xws li qhib qhov rooj thiab lub suab tswj lub teeb.

Pom zoo: