Cov txheej txheem:

LightBox Music Visualizer: 5 Kauj Ruam (nrog Duab)
LightBox Music Visualizer: 5 Kauj Ruam (nrog Duab)

Video: LightBox Music Visualizer: 5 Kauj Ruam (nrog Duab)

Video: LightBox Music Visualizer: 5 Kauj Ruam (nrog Duab)
Video: Issa - Pictures | The LightBox 2024, Hlis ntuj nqeg
Anonim
Image
Image
LightBox Music Visualizer
LightBox Music Visualizer
LightBox Music Visualizer
LightBox Music Visualizer
LightBox Music Visualizer
LightBox Music Visualizer

Lub LightBox siv koj lub xov tooj lossis ntsiav tshuaj lub microphone tsim los txheeb xyuas cov nkauj los tsim cov qauv teeb pom kev zoo uas phim cov nkauj. Tsuas yog pib lub app, tso koj lub xov tooj lossis ntsiav tshuaj nyob qhov twg ze ntawm lub suab, thiab koj lub npov yuav pom lub suab hauv lub sijhawm tiag. Lub LightBox kuj tseem tuaj yeem siv lub teeb pom kev zoo ib puag ncig.

Muaj kev lom zem !!!

Kauj Ruam 1: Sau Cov Khoom

Koj yuav xav tau cov ntaub ntawv hauv qab no:

  • 1 m ntawm ntoo lath 4 x 0.5 cm (rau thav duab)
  • 1 m ntawm ntoo lath 1.2 x 0.5 cm (rau pem hauv ntej)
  • 15 cm ntawm cov neeg ua haujlwm ntoo ntoo 0.8 x 0.8 cm
  • 1 x ntoo phaj 22 x 18 x 0.3 cm (rau phaj tom qab)
  • 1 x mis dawb acrylic iav phaj 22 x 18 x 0.3 cm (rau phaj pem hauv ntej)
  • 1 x RGB LED sawb, hom WS2812B, 5 Volt, 1 m ntev, nrog 60 LEDs
  • 1 x ESP8266 tus qauv. Kuv siv Adafruit Huzzah, tab sis koj tuaj yeem siv tus qauv sib txawv.
  • 1 x 5.5 x 2.1 DC chim jack
  • Hlau (txawv xim)
  • Qee cov kab xev velcro

Cov cuab yeej koj yuav xav tau:

  • Ntoo pom
  • Miter lub thawv
  • Ntoo kua nplaum
  • Soldering hlau

Kauj ruam 2: Tsim lub Box

Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv
Tsim lub Thawv

Ncej

Ua ntej, siv lub thawv miter txiav lub lath rau tus ncej. Txiav cov ntawv nrog lub kaum sab xis 45 °, yog li koj tuaj yeem haum lawv ua ke los tsim cov txheej sab nrauv (saib cov duab). Koj yuav xav tau ob daim ntev 23 cm (rau saum thiab hauv qab) thiab ob daim ntev 19 cm (rau sab laug thiab sab xis). Qhov ntev hais txog ntug ntev dua.

Tswv yim: Yog tias koj txiav daim hauv qhov kev txiav txim uas cov npoo yuav muab tso ua ke (piv txwv li, thawj daim saum toj, tom qab ntawv yog txoj cai, tom qab ntawv hauv qab, tom qab ntawv sab laug), koj ua kom ntseeg tau tias cov npoo yuav haum zoo.

Tam sim no, lo rau daim rau lub thav duab ua ke. Nco ntsoov tias koj tuaj yeem haum daim iav iav acrylic hauv lub npov ntawm ib sab thiab phaj tom qab ntawm lwm sab. Tsis txhob txhawj xeeb yog tias muaj qhov khoob me me - qhov khoob ntawm sab xub ntiag yuav npog los ntawm ciam teb thiab sab nraub qaum yuav tsis pom.

Pem Hauv Ntej Phaj

Tom ntej no, txiav cov ntoo ntoo plaub fab ua plaub daim, txhua qhov ntev 3 cm. Haum cov iav iav acrylic hauv lub thawv, kom nws yaug nrog lub hauv ntej. Muab cov ntoo ntawm cov ntoo txua ntoo tso rau hauv cov ces kaum ntawm lub thawv thiab rau sab tom qab ntawm cov phaj acrylic. Nco ntsoov tias koj tsis siv kua nplaum ntau dhau, yog li tsis muaj kua nplaum nkag mus rau acrylic tshwj tsis yog qhov uas nws tau lo rau ntawm cov ntoo.

Ciam teb

Siv lub thawv miter rov txiav lub lath rau ciam teb. Txiav lawv nrog lub kaum sab xis 45 ° (saib duab). Ib zaug ntxiv koj yuav xav tau ob daim ntawm qhov ntev 23 cm thiab ob daim ntawm qhov ntev 19 cm (qhov ntev dua hais txog qhov ntev dua).

Muab cov khoom tso rau ntawm ciam teb ua ke thiab lo cov ciam teb rau ntawm xub ntiag ntawm lub npov. Ib zaug ntxiv, ceev faj tias tsis muaj kua nplaum nchuav rau ntawm acrylic.

Kauj ruam 3: Nruab Firmware ntawm Tus Tswj

Mus rau koj tus Thawj Saib Xyuas Tsev Kawm Ntawv Arduino thiab xyuas kom tseeb tias lub tsev qiv ntawv FastLED tau teeb tsa. Nws yuav siv los ntawm cov firmware.

Rub lub firmware rau koj ESP8266 los ntawm Github.

Siv Arduino IDE txhawm rau rub cov firmware rau koj li ESP8266 module.

Nco tseg ntawm kev siv cov lej sib txawv ntawm LEDs: Kuv ua lub LightBox nrog cov hlua LED ntawm 60 LEDs. Tab sis koj tuaj yeem siv ntau LEDs raws li koj nyiam. Tsuas yog qhov koj yuav tsum tau ua yog hloov pauv NUM_ROWS thiab NUM_COLUMNS qhov ruaj khov hauv cov firmware. Lub app yuav hloov kho tus lej LEDs uas koj tau hais tseg. Txoj hauv kev no koj tuaj yeem tsim LightBoxes loj lossis me, ib yam li koj nyiam.

Kauj Ruam 4: Tsim Lub Phaj Tom Qab

Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj
Tsim Sab Phaj

Hauv cov kauj ruam no, peb yuav txiav cov hlua LED rau hauv cov kab me me, muab lawv txuas ua ke nrog qee qhov xaim, thiab muab lo rau lawv rau tom qab phaj los ua kab sib chaws. Qhov tshwm sim yuav tsum zoo li qhia hauv cov duab.

Ceev faj: Muaj cov xub me me luam tawm ntawm LED sawb. Cov xub no qhia qhov kev taw qhia uas cov ntaub ntawv teeb liab tau nthuav tawm. Koj yuav tsum tau muab cov kua nplaum tso rau hauv thiab ua kom zoo li cov kab uas koj tuaj yeem ua raws cov xub pib ntawm cov xaim uas tau txuas nrog tus pin ntawm ESP8266 tus qauv, raws cov kab txaij, txhua txoj hauv kev mus rau qhov kawg ntawm kab kawg.

Txiav cov hlua LED rau hauv rau daim kab xev nrog 10 LEDs txhua. LED sawb muaj cov cim uas nws tuaj yeem txiav thiab muag dua. Ntsuas qhov loj ntawm koj tus qauv ESP8266. Siv tus xaum xaum los cim qhov twg txhua kab txaij yuav tsum mus rau tom qab phaj. Qhov sib nrug nruab nrab ntawm cov kab ntawv yuav tsum sib npaug thiab koj yuav tsum tawm ntawm tus ciam teb dav kom tso ESP8266 tus qauv nyob ntawd yam tsis tau npog ib qho ntawm LEDs.

Tom ntej no, lo cov kab txaij rau sab nraub qaum. Tshem tawm koj cov hlau txuas, qee cov xaim, thiab txuas cov hlua LED ua ke. Cov kab ntawv muaj peb kab: +5V, GND, thiab DO. Nco ntsoov tias koj ib txwm txuas cov kab sib txuam. Siv xov hlau ntawm cov xim sib txawv kom tsis txhob ua yuam kev.

Laum ib lub qhov rau DC chim jack rau hauv qab phaj. Kuv siv qee cov kua nplaum kub los ua kua nplaum rau lub phaj.

Txuas tus +5V thiab kab GND ntawm kab LED coj mus rau qhov sib txuas ntawm lub tog raj kheej. Yog tias koj tsis paub tias lub davhlau ya nyob twg zoo thiab qhov tsis zoo, ntsaws rau hauv 5V lub zog siv thiab siv lub ntsuas ntsuas kom paub seb qhov twg yog qhov twg.

Txuas 5V thiab GND txuas ntawm koj tus ESP8266 module mus rau qhov sib txuas ntawm lub tog raj kheej. Txuas tus pin 5 ntawm ESP8266 tus qauv rau cov ntaub ntawv kab ntawm LED sawb. Koj tuaj yeem siv cov jumper cables, yog tias koj xav rov qab siv tus qauv tom qab, lossis muab cov hlua txuas rau cov txuas ntawm tus qauv ncaj qha.

Kaw cov ESP8266 tus qauv rau sab nraub qaum lossis siv qee daim kab xev nplaum los txuas nws.

Kauj ruam 5: Muaj Kev Lom Zem

Muaj Kev Lom Zem!
Muaj Kev Lom Zem!
Muaj Kev Lom Zem!
Muaj Kev Lom Zem!
Muaj Kev Lom Zem!
Muaj Kev Lom Zem!

Nws yog lub sijhawm rub tawm lub app los ntawm Google Play Store. Nws yog dawb, tau kawg!

Txuas koj lub LightBox. Nws yuav tsum tig xiav thiab koj yuav tsum tuaj yeem pom WiFi network hu ua "lightbox" ntawm koj lub xov tooj lossis ntsiav tshuaj. Yog tias lub thawv tig liab thaum koj xub ntsaws nws, koj yuav tsum rov pib dua koj li ESP8266 tus qauv EEPROM. Ua qhov no los ntawm kev txuas tus pin 4 ntawm tus qauv rau GND li ib pliag. Lub thawv yuav tsum rov pib dua thiab tam sim no tig xiav.

Txuas mus rau "lub teeb" WiFi network (password: "lightbox12345") nrog koj lub xov tooj lossis ntsiav tshuaj. Pib lub LightBox app. Lub app cia li txuas rau LightBox.

Hauv cov ntawv qhia zaub mov teeb tsa, koj tuaj yeem teeb tsa LightBox los txuas rau koj tus kheej lub network WiFi es tsis txhob tsim nws tus kheej. Txoj kev no koj tsis tas yuav hloov mus rau lwm lub network WiFi thaum koj xav siv koj lub npov.

Siv Tus Xaiv Xim kom pom kev rau koj chav nyob hauv cov xim uas haum rau koj qhov kev xav, lossis siv Lub Tshuab Ntsuas Suab kom tig cov nkauj los ua qauv zoo nkauj ntawm cov xim.

Tsis txhob ua siab deb nug hauv ntu lus yog tias koj muaj lus nug.

Muaj kev lom zem!

Hloov tshiab:

  • 06/03/17: Kuv ntxiv qee cov duab ze ntawm qhov thaiv ntawm ESP8266 module.
  • 06/19/17: Kuv tab tom txhim kho lub app thiab cov firmware. Kuv ntxiv lub lim uas ua rau pom lub suab zoo. Muaj qhov tsawg dua qhov muag thiab pom qhov muag zoo dua. Kuv kuj ntxiv qhov muaj peev xwm teeb tsa tus naj npawb ntawm kab LED thiab kab hauv cov firmware. Lub app cia li yoog raws tus lej teeb tsa ntawm LEDs. Txoj hauv kev no koj tuaj yeem tsim koj lub LightBox nrog ntau lossis tsawg dua LEDs dua li kuv tau ua thiab nws yuav ua haujlwm nrog lub app.
Kev Sib Tw Tsis Sib Tau
Kev Sib Tw Tsis Sib Tau
Kev Sib Tw Tsis Sib Tau
Kev Sib Tw Tsis Sib Tau

Khiav Tawm Hauv Qhov Tsis Sib Tw Sib Tw

Pom zoo: