Cov txheej txheem:

Neopixel Tester: 4 Kauj Ruam
Neopixel Tester: 4 Kauj Ruam

Video: Neopixel Tester: 4 Kauj Ruam

Video: Neopixel Tester: 4 Kauj Ruam
Video: Знакогенератор на Neopixel & Troyka Slot | проект выходного дня | Arduino projects ws2812b 2024, Kaum ib hlis
Anonim
Neopixel Tester
Neopixel Tester

Koj tuaj yeem tsim ib qhov haujlwm uas siv Neopixel LED's lossis muaj qee qhov hauv koj lub thawv ntim khoom uas koj xav tshuaj xyuas lawv ua haujlwm. Kuv muaj qhov xav tau tib yam tab sis ntau dua tos kom txog thaum txoj haujlwm tau ua tiav los nrhiav qhov teeb meem, Kuv xav kom ntseeg tau tias lawv tau ua haujlwm thaum lub sijhawm tsim cov txheej txheem raws li kuv tau txhais tes siv ntau lub LED

Raws li qhov tshwm sim kuv tau tsim cov kev ntsuas ua haujlwm yooj yim hauv qab no, siv nrog WS2812/SK6812 LED's (cov npe khoom 5V tab sis yuav ua haujlwm ntawm 3V), tab sis tuaj yeem siv los tshuaj xyuas lwm yam kev hloov pauv uas tsim nyog.

Raws li txoj haujlwm kuv tab tom tsim tau siv Microbit, 3V kev ua haujlwm yog qhov zoo tshaj plaws vim tias lawv tuaj yeem tsav ncaj qha yam tsis xav tau qhov hluav taws xob siab dua lossis qib hloov pauv.

Muaj cov zis tam sim no raug rau Microbit version yog V1 (90mA)/V2 (270mA)

Txoj haujlwm no tau txheeb xyuas nrog ob qho Microbit hloov pauv tab sis tsuas yog siab tshaj ntawm 81.5mA.

Khoom siv:

Microbit V1 lossis V2

1000uF/(6.3V yam tsawg kawg nkaus) Electrolytic Capacitor

470R resistor

WS2812/SK6812 LEDs

Jumpers M/F.

Pawg Thawj Coj (xaiv tau)

SIL ncaj los yog txoj cai kaum tus pin headers

Kauj Ruam 1: Tsim Kom Tau

Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim
Yuav Tsum Tsim

Kev tsim qauv yuav tsum muaj peev xwm ntsuas ntau lub LED hauv txoj hlua ntawm 1 txog 25 qhov siab tshaj plaws.

Ntxiv rau tus naj npawb ntawm LED hloov pauv ntawm cov xim thawj ntawm Liab, Ntsuab thiab Xiav thiab hloov kho qhov ci tau xav tau.

25 yog qhov xwm txheej phem tshaj plaws rau txhua qhov LED teeb, txawm hais tias siv 13 yuav yog qhov siab tshaj plaws yog li tam sim no cov paj tau ntau yuav muaj.

Qhov phem tshaj tam sim no 20mA *25 = 500mA (ib xim tsuas yog ib qho LED ntawm qhov ci tshaj plaws), uas yog ntau dua li qhov tso tawm ntau tshaj tam sim no los ntawm Microbit. Thiaj li, qhov teeb pom kev zoo tsim nyog yuav tsum tau ua kom ntseeg tau tias Microbit tsis muaj kev nyuab siab.

Cov lus qhia ntxaws ntxiv ntawm Neopixel cov tseev kom muaj tuaj yeem pom ntawm no.

Nrog tam sim no ntws 80% ntawm 90mA = 81mA rau 25 LED's = 3.24mA /LED.

Hauv theem no kev ntsuas tau ntsuas ntawm qhov tso tawm tam sim no piv rau qhov teeb pom kev zoo rau txhua xim kom txiav txim siab tias puas muaj peev xwm txaus los ntsuas 25 (WS2812/SK6812), LED ib txhij.

Cov naj npawb siab tshaj plaws ntawm LED uas tuaj yeem tsav yog cuam tshuam nrog xim, Ntsuab thiab Xiav muaj qhov xav tau tam sim no. Txawm li cas los xij, Liab yog ob zaug tam sim no ntawm Ntsuab lossis Xiav.

Qhov ci ci ntawm 160 rau Liab muab 81.5mA thiab txaus siab rau qhov xwm txheej phem tshaj plaws xav tau.

Ob Ntsuab lossis Xiav tuaj yeem teeb tsa qhov ci ntawm 255 thiab tseem qis dua 81.5mA.

Raws li nws tau teeb tsa teeb ci ntawm 10 thiab ~ 0.5mA/LED tau ci txaus rau txoj haujlwm, qhia tias 100+ Neopixel LED's tuaj yeem tuaj yeem tsav los ntawm Microbit ntawm qhov ci ntawm 10.

Zoo thaum lub sijhawm tshaj tawm thawj qhov Qhia Kuv tsis muaj LED txaus tab sis txij thaum ntawd los kuv tau tswj hwm los ntsuas 60 LED Neopixel hlua siv tag nrho peb xim yam tsis muaj teeb meem.

Kuv yuav ntsuas txoj hlua ntev dua thaum kuv tau txais ib qho.

Kauj ruam 2: Software

Software
Software

Daim ntawv thov tau tsim los siv MakeCode Blocks

Kauj ruam 3: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Kho vajtse suav nrog Microbit, thiab cov khoom pom zoo, lub peev txheej tso dej (1000uF/6V3 min, electrolytic), txuas ntawm V+ & 0V thiab tus tiv thaiv (470R), txuas nrog hauv kab nrog cov ntaub ntawv kab txuas ntawm thawj LED.

Lub capacitor thiab cov tiv thaiv tau teeb tsa ntawm kab txaij kom yooj yim rau yav tom ntej los ua ke thiab qhov tsim nyog txuas rau cov hlua LED kom raug sim yuav xav tau.

Qhov tshwj xeeb Neopixel LED's tau siv tau teeb tsa ua ntej rau cov neeg nqa khoom uas tsis muaj cov hlau lead thiab xav tau kev sib txuas kom raug muag kom qhib kev tswj hwm. Cov kab hauv kab hauv kab taub hau, ncaj lossis kaum sab xis ntawm tus kheej lossis ua ke tsim kev sib txuas ntxiv nrog rau cov xov hlau.

Siv SIL pins thiab F/F jumpers tso cai cov hlua tsim los ntawm ntsaws rau hauv LED raws li xav tau.

Kauj ruam 4: Kev ua haujlwm

Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm
Kev ua haujlwm

Nco tseg: **** Lub MakeCode Block simulator tsis qhia kev tiv thaiv Circuit. Txawm li cas los xij, qhov no yuav tsum suav nrog hauv Circuit tiag. ***

Kev ua haujlwm thiab hom teeb tsa yog ntawm A & B cov nyees khawm.

Nias A+B xaiv hom. (Mn)

M0 = Pab kom xaiv tus lej ntawm LED hauv txoj hlua.

Khawm A = (+Sn) uas ua kom cov hlua suav ntxiv. (Ntau tshaj 25)

Khawm B = (-Sn) uas txo cov hlua suav. (Yam tsawg kawg 0)

M1 = Pab kom xim thiab ci ci

Khawm A = Xim Liab, Ntsuab, Xiav thiab tawm

Khawm B = Brightness (0 txog 250) hauv cov qib 10.

Plug thiab hloov rau.

Thaum hloov ntawm qhov tso tawm yog xiam oob qhab los tiv thaiv kev puas tsuaj rau ob qho tib si Microbit thiab LED

Nias A+B txhawm rau xaiv hom M0 tom qab ntawd nias A rau S1, txhua qhov ua tiav nias ntawm A nce ntxiv thiab B txo qis S. Siv A thiab B los teeb tus lej ntawm LED hauv txoj hlua.

Nias A+B kom xaiv hom M1.

Tom qab ntawv nias A kom xaiv xim Liab, Ntsuab, Xiav lossis Tawm.

Nias B kom nce qhov ci ci ntawm 10 txog 250 hauv cov kauj ruam ntawm 10.

Hom thiab kev xaiv raug pom ntawm Microbit zaub.

Pom zoo: