Cov txheej txheem:

WiFi Tswj Unicorn Cap? Nrog RGB Teeb: 5 Kauj Ruam (nrog Duab)
WiFi Tswj Unicorn Cap? Nrog RGB Teeb: 5 Kauj Ruam (nrog Duab)

Video: WiFi Tswj Unicorn Cap? Nrog RGB Teeb: 5 Kauj Ruam (nrog Duab)

Video: WiFi Tswj Unicorn Cap? Nrog RGB Teeb: 5 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image
WiFi Tswj Unicorn Cap? Nrog RGB Teeb
WiFi Tswj Unicorn Cap? Nrog RGB Teeb

Nyob zoo sawv daws.

Kuv tus me tau nudging kuv, ib pliag, hais txog nthuav wearable DIYs cuam tshuam nrog cov unicorns. Yog li, kuv tau khawb kuv lub taub hau thiab txiav txim siab los tsim qee yam txawv txawv thiab nrog peev nyiaj tsawg heev.

Txoj haujlwm no tsis xav tau app los tswj nws, nws tuaj yeem tswj hwm los ntawm kev siv cov cuab yeej twg uas muaj lub web browser muaj. Nws kuj tseem tuaj yeem ua haujlwm hauv 2 hom, raws li ib leeg thiab ib feem ntawm tsev WiFi network.

Lub vev xaib muaj ntau txoj haujlwm hais txog lub kaus mom uas muaj lub raj mis uas tsis muaj lub raj nrog tsim hauv LEDs, tab sis ntau ntawm lawv yog qhov nyuaj, lossis siv cov khoom ntiag tug uas tsis yog pheej yig. Nco ntsoov txhua yam ntawm cov npe saum toj no, Kuv tau teeb tsa pob nyiaj siv tsawg dua 5 USD rau nws.

Yog li, cia peb mus txuas ntxiv.

Khoom siv

• ESP12 series, tuaj yeem yuav ntawm aliexpress (1USD)

• ams1117 3.3v, zoo li qhov no (0.2 USD/thooj)

• 16 LEDs ntawm ws2811 x 60 pixels/m LED teeb sawb, siv qhov no, nws ua haujlwm zoo los ntawm 3.3v (1.6 USD rau 16 pixels)

• lub roj teeb Li-Ion tiaj tus, tuaj yeem siv los ntawm lub xov tooj ntawm tes qub (zoo li kuv tau ua)

• tiaj tus nyem hloov

• qee cov xov hlau

• Cov khoom siv xaws

• Cov hlau txuas nrog cov khoom siv

• lub kaus mom baseball

• 10 cm ntawm Velcro daim kab xev (xaiv tau)

• kub yaj phom nrog kua nplaum

• jig uas yuav tso cai rau koj los teeb tsa ESP yam tsis tas yuav siv cov laug, Kuv siv Wemos D1 raws tus programmer

• 3D tshuab luam ntawv

Kauj Ruam 1: Qauv Sau

Nov yog ob peb tus qauv luam tawm. Rau qhov laj thawj nyab xeeb kuv tau luam tawm lub suab raj los ntawm TPU yas. yog li nws mos thiab yoog raws. lub hau tuaj yeem luam tawm nrog cov yas nyiam, xws li PLA, ABS lossis PETG

Kauj ruam 2: Software

Software
Software
Software
Software
Software
Software

Kev kos duab rau cov lus qhia no tuaj yeem rub tawm los ntawm kuv GitHub

Ib feem ntawm software yog qhov zoo sib xws rau txoj haujlwm yav dhau los uas kuv tau siv, nrog ntau qhov zoo, zoo li kev siv tus kheej (WiFi AP) hom nrog kev ua haujlwm tsis zoo. Tsis tas yuav hais ntau txog software thiab luam tib cov ntaub ntawv, nws tau piav qhia ntxaws hauv cov lus qhia no tsim los ntawm kuv. Kho vajtse ib feem tseem ceeb dua thiab yuav tsum tau piav qhia, yog li cia peb tsom mus rau nws hauv cov ntsiab lus.

Peb yuav tsum rub tawm thiab teeb tsa Arduino IDE, ua tsaug rau Steve Quinn, uas twb tau tsim cov lus qhia ntxaws ntawm kev ua qhov no hauv nws Cov Lus Qhia, yog li tsis tas yuav tsum ntaus txhua yam ntawd.

Thaum koj rub tawm daim duab - qhib nws hauv Arduino IDE.

Nrhiav qhov "#define NUM_LEDS 8" kab thiab teeb tus lej pixels sib npaug rau qhov ntev ntawm kab txaij LED (hauv peb qhov xwm txheej nws yog 8, hloov yog tias koj yuav siv tus lej sib txawv). Qhib Secrets.h tab hauv Arduino IDE thiab hloov tus password '11223344' cov ntaub ntawv raws li koj xaiv. Txuag thiab xa cov duab kos mus rau ESP pawg thawj coj saib. Siv "ESP 8266 Sketch Data Upload" ntawv qhia zaub mov thiab xa lwm cov ntaub ntawv los ntawm daim duab mus rau SPIFS.

Txog AP (sawv ib leeg) hom koj yuav tsum nrhiav WiFi Network hu ua "Unicorn + numbers" thiab txuas rau nws los ntawm kev siv tus lej zais uas koj tau teev hauv "Secrets.h" cov ntaub ntawv. Tom qab ua tiav no - txuas rau Horn los ntawm kev ntaus https://192.168.4.1 hauv koj tus browser. Ib nplooj ntawv yuav tau ntim nrog ntau txoj kev xaiv tswj.

Txuas cov LEDs thiab tshawb xyuas tias txhua yam ua haujlwm tau zoo thiab tshem tawm ESP los ntawm jig.

Kauj ruam 3: Electronics

Electronics
Electronics
Electronics
Electronics
Electronics
Electronics

Siv lub roj teeb thiab txuas 2 lub xov hlau nrog lub txuas thiab lub zog khawm. Cov chaw soldering tuaj yeem raug cais nrog cov kua nplaum kub. Qhov no yuav ua rau peb muaj peev xwm tshem tawm thiab them lub roj teeb.

Nqa ESP pawg thawj coj nrog rub tawm software, lo lub zog tswj hwm rau sab nraub qaum ntawm nws nrog daim kab xev ob tog thiab ua kom tiav cov thaiv. Siv cov duab ua siv.

Nco tseg: Cov ntaub ntawv tus pin yuav tsum tau muab muag rau GPIO4 cov zis.

Kauj Ruam 4: Sib dhos Horn

Sib dhos Horn
Sib dhos Horn
Sib dhos Horn
Sib dhos Horn
Sib dhos Horn
Sib dhos Horn
Sib dhos Horn
Sib dhos Horn

Nqa cov ntawv luam tawm. Mount lub LED kab txaij rau lub hau ntswj, zoo li qhia hauv daim duab txuas.

Nco tseg: Thov siv daim kab xev nyias zaj duab xis nruab nrab ntawm kab txaij, nws yuav cais cov neeg ua haujlwm ntawm sab nraub qaum ntawm LED kab txaij kom tsis txhob luv luv.

Ntxig lub hau nrog cov nplaum LEDs thiab lo nws nrog rab phom kub kub thiab nws ua tiav.

Kauj Ruam 5: Ua Kom tiav Lub Rooj Sib Tham

Tiav Lub Rooj Sib Tham
Tiav Lub Rooj Sib Tham
Tiav Lub Rooj Sib Tham
Tiav Lub Rooj Sib Tham
Tiav Lub Rooj Sib Tham
Tiav Lub Rooj Sib Tham

Siv lub tshuab raj, nrhiav txoj hlua khi ntawm lub hau sab xub ntiag, nthuav txoj hlua khi nrog awl thiab xov cov xov hlau los ntawm lub qhov. Rub cov xov hlau sab hauv lub hau. Xaws lub tshuab raj mus rau lub hau los ntawm kev siv cov coj tshwj xeeb nyob rau hauv qab ntawm lub raj. Qhwv ESP pawg thawj coj nrog daim kab xev hluav taws xob kom tsis txhob muaj hluav taws xob. Nias lub roj teeb thiab khawm rau lub hau los ntawm sab hauv qhov Velcro thov, saib cov duab rau kev siv. Txhim kho cov xov hlau nrog xaws xov rau lub hau.

Tam sim no nws ua tiav.

Ua tsaug rau kev nyeem ntawv thiab ua tsaug rau kuv tus poj niam zoo nkauj uas nws tau pab hauv kev kaw video.

Pom zoo: