Cov txheej txheem:

WiFi Tswj Christmas Kho Kom Zoo Nkauj Lub Teeb Qhov Rai: 4 Kauj Ruam
WiFi Tswj Christmas Kho Kom Zoo Nkauj Lub Teeb Qhov Rai: 4 Kauj Ruam

Video: WiFi Tswj Christmas Kho Kom Zoo Nkauj Lub Teeb Qhov Rai: 4 Kauj Ruam

Video: WiFi Tswj Christmas Kho Kom Zoo Nkauj Lub Teeb Qhov Rai: 4 Kauj Ruam
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
Image
Image
WiFi Tswj Christmas Christmas Teeb Qhov Rooj Kho Kom Zoo Nkauj
WiFi Tswj Christmas Christmas Teeb Qhov Rooj Kho Kom Zoo Nkauj

Tswj lub teeb ci LED los ntawm koj lub xov tooj lossis PC - ntau qhov lom zem Christmas themed teeb qauv.

Khoom siv

1. ESP12e dev board: Aliexpress: https://s.click.aliexpress.com/e/EOP1yvis - ESP8266 txoj kev txhim kho pawg thawj coj, nrog cov roj teeb pob thiab cov ntawv ua ntej soldered. Qhov no los nrog RGB LED, thiab txawm tias lub teeb pom kev zoo. Yuav ob yog tias koj nyiam! Txoj haujlwm no tuaj yeem hloov kho tau yooj yim rau ib qho ESP8266 pawg thawj coj, xws li kuv nyiam D1 Mini. Kuv siv qhov no ntawm no vim tias tsis muaj qhov xav tau soldering, thiab nws los nrog lub roj teeb pob.

2. Arduino Uno: Aliexpress: https://s.click.aliexpress.com/e/O3ReneKM - qhov no yog ib qho uas tshem tau Atmega328P nti, siv rau kev teeb tsa ESP8266 dev board.

3. USB cable rau Uno: Aliexpress:

4. Jumper cables txuas txhua yam - tsis muaj qhov txuas rau txoj haujlwm no! Aliexpress: https://s.click.aliexpress.com/e/O3ReneKM - xaiv txiv neej rau txiv neej/poj niam thiab lwm yam. LED Sawb kev twb kev txuas

5. WS2812 LED Sawb: Aliexpress: https://s.click.aliexpress.com/e/O3ReneKM - Xaiv koj cov version. Kuv xaiv 5m, 150 LED's, IP30 (tsis tiv thaiv dej) thiab PCB dawb

6. AA roj teeb x 3

Kauj ruam 1: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Saib daim duab qhia chaw.

*thov nco tseg: Kuv tsis tuaj yeem tuav lub luag haujlwm rau ib qho kev tswj hwm me me los yog LED sawb. Txoj haujlwm no ua haujlwm rau kuv, qhov ntawd ntau npaum li kuv tuaj yeem hais, txawm li cas los xij kuv tsis tas yuav tso nws tseg thaum kuv tawm hauv tsev. Nws tau pom zoo los ntawm ntau lub rooj sib tham Arduino kom muaj tsawg kawg yog 1000 uF capacitor nruab nrab ntawm 5v thiab GND (ua ntej LED sawb) thiab tseem muaj 500 Ohm resistor ua ntej Cov Ntaub Ntawv kab. Thov saib https://learn.adafruit.com/adafruit-neopixel-uberguide/powering-neopixels rau qee cov lus qhia ntxiv.

Kauj ruam 2: Programming

Tau txais koj tus lej Arduino ntawm no: https://github.com/tomjuggler/esp8266-fastled-web…-tus lej no tsis yog kuv li, kuv tsuas yog yoog nws kom ua haujlwm tawm ntawm lub thawv rau kuv LED sawb, thiab tseem sawv ib leeg los ntawm default tsis tas yuav tsum muaj lub router.

Yog tias koj tsis tau ua li ntawd, tau txais ESP8266 addon rau Arduino IDE. Cov addon thiab cov lus qhia nyob ntawm no:

1. Xyuas kom txhua yam txuas nrog (tshwj tsis yog rau LED Sawb lub hwj huam kab (kab xaim daj), 2 lub program programming hom pins yuav tsum tau luv ua ke ua ntej tso lub hwj chim. Pawg thawj coj los nrog lub hau me me los ua qhov no.

2. Lub zog ntawm lub rooj tsavxwm (Kuv ntxiv qhov hloov pauv rau kuv, nws tsis tuaj nrog ib qho, koj tuaj yeem rub ib lub roj teeb thiab tso nws rov qab los rau lub zog.)

3. Txuas lub USB cable los ntawm Arduino rau koj lub khoos phis tawj - Arduino Uno's Atmega328 nti yuav tsum tau muab tshem tawm ua ntej (koj tseem tuaj yeem siv USB rau Serial adapter rau program hloov).

4. Xaiv 'Generic ESP8266 Module' ua koj pawg thawj coj, hauv Arduino IDE. Kuj tseem xaiv 4m nrog 1m Spiff. Txheeb xyuas koj li kev sib txuas tam sim no, Cov Cuab Yeej -> Chaw Nres Nkoj.

5. Upload daim duab

6. Hloov lub rooj tsavxwm tawm thiab rov ua dua (nrog cov txheej txheem hom pins tseem luv)

7. Tshaj tawm Spiffs (cov ntaub ntawv xav tau rau lub web server thiab lwm yam), Cov Cuab Yeej -> 'ESP8266 Sketch Data Upload'

8. Tshem tawm 2 txoj haujlwm hom pins, txuas cov xim daj LED Sawb 5v xaim rau 5v (Kuv ua kuv li nyob nruab nrab ntawm + lub davhlau ya nyob twg thiab lub roj teeb, saib daim duab hauv qab no)

9. Hwj chim rau

10. Tam sim no koj yuav tsum txuas rau WiFi Access Point, siv PC lossis Xov Tooj Ntawm Tes. AP yuav tsum tshwm raws li ESP - qee yam lossis lwm yam. Thaum txuas nrog, ntaus '192.168.4.1' rau hauv qhov chaw nyob bar. Nov yog ESP8266 qhov chaw nyob web server tsis raug.

11. Qhov ntawd yog, koj yuav tsum muaj peev xwm siv lub web app los tswj koj lub teeb!

Kauj ruam 3: Ua tiav

Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav
Tiav tiav

Thaum cov lej tau nkag mus koj yuav tsum muaj peev xwm tshem tawm cov xov hluav taws xob thiab Arduino UNO. Tam sim no tsuas yog dai koj lub teeb nyob ib ncig ntawm lub qhov rais (Kuv dai kuv ib puag ncig ntawm cov npoo sab saud, tom qab cov kab hlau rhuav uas ua rau muaj txiaj ntsig zoo). Tsis tas li, tej zaum muab lub rooj tsavxwm thiab roj teeb tso rau hauv lub thawv kom zoo, lossis txawm tias hloov lub roj teeb nrog lub hwj chim (Kuv tuaj yeem ua qhov no rau kuv tus kheej tom qab).

Kauj Ruam 4: Zoo Siab Christmas Txhua Tus

Qhov kuv pom zoo tshaj plaws txog txoj haujlwm no yog tus nqi ntawm kev sib koom ua haujlwm ntawm no. ESP nti tau teeb tsa hauv C, uas cuam tshuam nrog JavaScript ua haujlwm los ntawm lub vev xaib sab hauv, thiab khiav hauv qhov browser. HTML kuj tseem koom nrog - saib sab hauv cov ntaub ntawv ntawm Arduino kos duab koj tus kheej yog tias koj xav tau. Nws yog qhov kev kawm zoo nrog qee qhov kev lom zem tiag tiag rau lub teeb, thiab kuv zoo siab rau Jason Coon rau kev sib qhia nws ntawm GitHub.

Koj tuaj yeem pom qhov no thiab ntau qhov haujlwm hluav taws xob ntawm kuv lub vev xaib: circusscientist.com

Pom zoo: