Cov txheej txheem:

ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim: 18 Cov Kauj Ruam (nrog Duab)
ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim: 18 Cov Kauj Ruam (nrog Duab)

Video: ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim: 18 Cov Kauj Ruam (nrog Duab)

Video: ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim: 18 Cov Kauj Ruam (nrog Duab)
Video: УРОК ПО MICROPYTHON | ЗАПУСКАЕМ ВЕБ СЕРВЕР НА ESP8266 #micropython #python #esp8266 2024, Hlis ntuj nqeg
Anonim
ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim
ESP8266 Neeg Hlau Tsheb Ua Haujlwm Nrog ESP8266 Yooj Yim

Kuv yog tus kws qhia ntawv hauv tsev kawm theem nrab thiab tseem yog Robotic Club Advisor. Kuv tau nrhiav txoj hauv kev muaj txiaj ntsig zoo kom tau txais cov neeg hlau hauv kuv txhais tes. Nrog tus nqi qis ntawm ESP8266 cov laug cam, Kuv tau muaj peev xwm los tsim lub tsheb neeg hlau tsis siv neeg rau qis dua $ 20. Nrog Lego Mindstorm Cov Khoom siv raug nqi $ 300, Cov khoom siv MakeBlock raug nqi txog $ 100, qhov no sawv cev rau kev txuag nyiaj ntau uas tso cai rau kuv kom muaj cov tub ntxhais kawm ntau dua koom nrog peb cov kev sib tw neeg hlau. Txhawm rau txhawm rau sib tw nrog lwm tus neeg hlau, Kuv paub tias lwm lub ntsuas hluav taws xob xav tau xws li Ultrasonic nrug deb deb raws li kab hauv qab cov ntsuas ntsuas … ob zaug ntau li ntau tau.

Peb cov tub ntxhais kawm txhua tus siv chromebooks thiab nrog kev sib tsoo ntawm lub vev xaib Codebender dawb, cov neeg hlau arduino tau muab tso me ntsis ntawm kev mus txog. Kuv paub tias create.arduino.cc muaj kev daws teeb meem, tab sis nrog nyiaj tsawg, kuv tau nrhiav lwm txoj hauv kev dawb.

Siv ESP8266 nrog Pawg Tsav Tsheb Tsav Tsheb, tam sim no kuv tuaj yeem tswj lub tsheb neeg hlau ntawm wifi. Siv ESP8266 Basic koj tam sim no tuaj yeem hloov kho koj cov haujlwm kuj ntawm wifi. Txhua yam no tuaj yeem ua tiav hauv qhov browser ntawm tus tub ntxhais kawm chromebooks.

Thaum ESP8266 Basic yuav tsis tso cai rau koj siv cov ntsuas ntsuas zoo ib yam, (Yooj yim qeeb dhau los nyeem qee qhov ntawm cov ntsuas no) Kuv vam tias yuav tsim thiab ua haujlwm program arduino sensor modules uas cuam tshuam nrog ESP8266 cov qauv yooj yim kom cov neeg hlau tswj tau tuaj yeem ua haujlwm tau yooj yim siv cov arduinos uas kuv tau npaj ua ntej nrog paub lub luag haujlwm. Qhov no tsuas yog ntxiv txog $ 5- $ 10 rau tus nqi ntawm cov neeg hlau (txawm li cas los xij, kuv twb muaj ntau lub rooj sib tham arduino uas kuv tuaj yeem siv rau lub hom phiaj no.)

Kauj Ruam 1: Yuav ib lub ESP8266 Cov Khoom Siv Hauv Tsheb lossis Yuav ESP8266/Cov Khoom Siv Tsav Tsheb

Tog twg los yuav ESP8266 Cov Khoom Siv Hauv Tsheb lossis Yuav ESP8266/Cov Khoom Siv Tsav Tsheb
Tog twg los yuav ESP8266 Cov Khoom Siv Hauv Tsheb lossis Yuav ESP8266/Cov Khoom Siv Tsav Tsheb

Txuas rau ESP8266/Cov Khoom Siv Tsav Tsheb:

www.ebay.com/itm/ESP8266-CP2102-Developmen…

Txuas rau ESP8266 Cov Khoom Siv Ntse Tsheb:

www.ebay.com/itm/222735537832?ssPageName=STRK:MESELX:IT&_trksid=p3984.m1558.l2649

Yog tias koj mus rau esp8266/cov khoom siv tsav tsheb thiab xav tau DIY, tom qab ntawd koj yuav xav tau lub cav:

www.ebay.com/itm/2Pcs-Smart-Robot-Car-Plas…

Kuv siv lub rooj ua npuas dub ua los ntawm Dollar tsob ntoo rau kuv lub tsheb neeg hlau vim kuv twb muaj lub cav thiab ESP8266/Cov Tsav Tsheb Tsav Tsheb.

Kauj Ruam 2: Cov Hluav Taws Xob Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas mus rau Tsav Tsav Tsav Tsheb

Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb
Cov Cuab Yeej Siv Hluav Taws Xob rau Cov Tsav Tsheb … Tom qab ntawd Txuas rau Lub Rooj Tsav Xwm Tsav Tsheb

Kuv siv 4 xaim txiv neej-poj niam dhia uas kuv txiav ib nrab. Txoj kev no, tom qab koj txuas cov xov hlau rau lub cav thiab lub rooj tsav tsheb, txhua yam koj yuav tsum tau ua yog txuas tus txiv neej kawg nrog poj niam kawg rau kev sib txuas zaum kawg. Qhov no kuj ua rau cov xov hluav taws xob yooj yim dua me ntsis, tab sis tsis tsim nyog, koj tuaj yeem siv 4 xov hlau (2 rau txhua lub cav) txhawm rau txuas lub cav rau lub nkoj.

Koj yuav tsum tau txuas cov xov hlau mus rau lub cav kom koj tuaj yeem txuas cov motors mus rau pawg tsav tsheb.

Kuv siv cov kua nplaum kub los khaws cov xov hlau nyob hauv qhov chaw raws li daim ntawv ntawm kev ntxhov siab.

Kauj Ruam 3: Muab Koj Lub Tsheb…

Yog tias koj yuav cov khoom siv hauv tsheb, tom qab ntawv sib sau ua ke raws li cov lus qhia tsis zoo … tab sis nws tsis nyuaj, piav qhia tus kheej zoo nkauj.

Kauj Ruam 4: Muab Ua Ke Koj Lub Tsheb … Mus Ntxiv

Tso Ua Ke Koj Lub Tsheb … Mus Ntxiv
Tso Ua Ke Koj Lub Tsheb … Mus Ntxiv

Yog tias koj mus DIY, nws yuav nrawm dua me ntsis, yog tias koj siv zip txuas / kua nplaum kub / os lossis ntim kab xev kom sib sau ua ke li koj tau ua rau kuv.

Txuas cov cav/log sib dhos rau lub chassis thiab cov xov hlau txuas rau tus tsav tsheb.

Kauj Ruam 5: Ua Txhua Qhov Kev Sib Txuas

Ua Txhua Qhov Kev Sib Txuas
Ua Txhua Qhov Kev Sib Txuas

Tam sim no, koj yuav tsum txuas lub cav thiab cov xov hluav taws xob rau lub rooj tsav tsheb. Koj kuj tseem yuav tau ntsaws ESP8266 rau tus tsav tsheb. Thaum txhua yam txuas nrog thiab nyab xeeb, siv micro USB qaum los ntsaws rau hauv koj lub computer.

Txuas lub zog los ntawm roj teeb pob rau hauv av (dub) thiab Vin (liab).

Kev sib txuas xov hlau los ntawm ib lub cav mus rau a+ thiab a-, txuas lwm lub cav hlau mus rau b+ thiab b-.

Txuas Vin rau Vm nrog lub jumper.

Kauj Ruam 6: Rub ESP Flasher

Yeej 64 Version

github.com/nodemcu/nodemcu-flasher/raw/mas…

Yeej 32 Version

github.com/nodemcu/nodemcu-flasher/raw/mas…

Kauj Ruam 7: Rub tawm ESP8266 Basic Firmware

github.com/esp8266/Basic/raw/NewWebSockets…

Thov nco ntsoov phau ntawv teev npe uas koj rub tawm rau….

Kauj Ruam 8: Khiav ESP Flasher

Khiav ESP Flasher
Khiav ESP Flasher

Khiav ESP8266Flasher.exe

tom qab ntawd nyem teeb tsa thiab tom qab ntawd nyem rau iav kom xaiv firmware

Kauj ruam 9:

Duab
Duab

Nrhiav binary siv rau ESP8266 Firmware Basic hauv rub npe.

Kauj ruam 10:

Duab
Duab

Yuav tsum tau hu: ESP8266Basic.cpp.bin Thaum koj thauj khoom no, xyuas kom tseeb tias koj tuaj yeem pom com chaw nres nkoj uas koj ESP8266 txuas nrog, tom qab ntawd nyem FLASH. (Kuv rub tawm nws ob zaug … yog vim li cas kuv muaj ob daim ntawv …)

Kauj ruam 11:

Duab
Duab

Kauj Ruam 12: Flash ESP8266 Basic Firmware

Flash ESP8266 Basic Firmware
Flash ESP8266 Basic Firmware

Kauj Ruam 13: Tshem Tawm Los Ntawm PC thiab Qhib Lub Hwj Chim Roj Teeb …

Thaum lub khoos phis tawj raug rub, tshem tawm ntawm PC thiab xyuas kom lub roj teeb tau zaum kom raug. Siv lub laub khawm hloov kom tig rau ntawm lub rooj tsavxwm.

Kauj Ruam 14: Txuas rau Ntaus Ntawv Los Ntawm Khoos Phis Tawj Ntawm WIFI

Txuas mus rau Ntaus los ntawm Khoos phis tawj ntawm WIFI
Txuas mus rau Ntaus los ntawm Khoos phis tawj ntawm WIFI
Txuas rau Ntaus Los Ntawm Khoos Phis Tawj Ntawm WIFI
Txuas rau Ntaus Los Ntawm Khoos Phis Tawj Ntawm WIFI

Nrhiav OPEN Access point nrog ESP hauv lub npe. Txuas mus rau qhov chaw nkag. Tsis muaj tus password yuav tsum tsim nyog.

Thaum txuas nrog, ntaus: https://192.168.4.1 rau hauv qhov browser txuas rau koj tus neeg hlau.

Koj tuaj yeem nrhiav cov ntaub ntawv hais txog ESP8266 Basic ntawm

Rub tawm ESP8266 Robot Car program los ntawm https://esp8266robot.nmmaker.net lossis los ntawm qhov txuas hauv qab no:

drive.google.com/uc?id=1hfqrZ9HyEDvtkkCuW9s5TgWGAJUvWkIE&export=download

Kauj Ruam 15: Teeb Esp8266 kom nkag mus rau koj li Wifi

Teeb Esp8266 kom nkag mus rau koj li Wifi
Teeb Esp8266 kom nkag mus rau koj li Wifi

Nyem rau ntawm Chaw, tom qab ntawd ntxiv koj cov ntaub ntawv wifi. thaum ua tiav, nyem txuag, tom qab ntawv nyem dua.

Kauj ruam 16: Upload ESP_Robot.bas

Upload ESP_Robot.bas
Upload ESP_Robot.bas
Upload ESP_Robot.bas
Upload ESP_Robot.bas

Rub tawm ESP_Basic los ntawm txhaj:

drive.google.com/uc?id=1hfqrZ9HyEDvtkkCuW9s5TgWGAJUvWkIE&export=download

Nyem rau ntawm File Manager thiab qhib ESP_Robot.bas kom koj tuaj yeem xa nws mus rau koj lub rooj tsavxwm. Xwb, koj tuaj yeem tsim cov ntawv hauv notepad thiab luam thiab muab tso rau hauv cov ntawv thiab khaws cia rau hauv koj lub computer. (Kuv tau pom tias qee zaum, thaum kuv theej thiab muab tso rau hauv tus khoos phis tawj rau ESP Basic, cov cim ntxiv tshwm ua rau tsis raug.)

luas = 0

[sab saum toj]

luam tawm "nrawm" slider nrawm, 0, 1024 luam ntawv khawm "rau pem hauv ntej", [rau pem hauv ntej] luam ntawv khawm "sab laug", [sab laug] khawm "sab xis", [sab xis] luam ntawv khawm "rov qab", [rov qab] luam ntawv khawm "nres", [nres] luam ntawv khawm "Tawm", [getMeOutOfHere] tos

[tsum tsum]

io (pwo, 5, 0) io (pwo, 4, 0) io (po, 0, 1) io (po, 2, 1) tos

[rau pem hauv ntej]

io (pwo, 5, speed) io (pwo, 4, speed) io (po, 0, 1) io (po, 2, 1) tos

[rov qab]

io (pwo, 5, speed) io (pwo, 4, speed) io (po, 0, 0) io (po, 2, 0) tos

[txoj cai]

io (pwo, 5, speed) io (pwo, 4, speed) io (po, 0, 1) io (po, 2, 0) tos

[sab laug]

io (pwo, 5, speed) io (pwo, 4, speed) io (po, 0, 0) io (po, 2, 1) tos

[getMeOutOfHere]

kawg

Kauj Ruam 17: Thaum Koj Ua Qhov ntawd, Nyem rau ESP_Robot.bas thiab Tom qab ntawd Nyem rau EDIT Tom qab ntawd nyem RUN

Thaum Koj Ua Qhov ntawd, Nyem rau ESP_Robot.bas thiab Tom qab ntawd Nyem rau EDIT Tom qab ntawd nyem RUN
Thaum Koj Ua Qhov ntawd, Nyem rau ESP_Robot.bas thiab Tom qab ntawd Nyem rau EDIT Tom qab ntawd nyem RUN
Thaum Koj Ua Qhov ntawd, Nyem rau ESP_Robot.bas thiab Tom qab ntawd Nyem rau EDIT Tom qab ntawd nyem RUN
Thaum Koj Ua Qhov ntawd, Nyem rau ESP_Robot.bas thiab Tom qab ntawd Nyem rau EDIT Tom qab ntawd nyem RUN

Kauj Ruam 18: Kho Kom Ceev, Tom Qab Muaj Kev Lom Zem

Pom zoo: