Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Txiav Ntoo
- Kauj Ruam 2: Sib dhos daim phiaj thiab ko taw
- Kauj Ruam 3: Txiav Koj Neopixel Sawb Tawm
- Kauj Ruam 4: Sib sau Neopixels
- Kauj Ruam 5: Txuas Neopixels
- Kauj Ruam 6: Xeem Matrix
- Kauj Ruam 7: Kua Daim Phiaj rau Neopixels
- Kauj Ruam 8: Soldering Voltage Regulator Board
- Kauj Ruam 9: Resistor ntawm Cov Ntaub Ntawv Hlau
- Kauj Ruam 10: Ntxiv Ntsia Hlau
- Kauj Ruam 11: Kub Nplaum Nws Txhua Qhov Ua Ke
- Kauj Ruam 12: Npaj Cov Khoom Siv Hluav Taws Xob thiab Txuas Nws
- Kauj Ruam 13: Ntxiv Micro: ntsis
- Kauj Ruam 14: Xeem Nws
Video: Micro: ntsis - LED Matrix: 14 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hauv phau ntawv qhia no kuv yuav mus dhau yuav ua li cas los tsim LED matrix rau micro: me ntsis tawm ntawm LED strips. Kuv yuav siv 4x4 matrix thiab 10x10 matrix raws li kuv tus piv txwv. Txij li thaum kuv ua haujlwm ntawm tsev kawm ntawv, qhov uas peb ua ntau lub tsev peb yuav xaus mus los ntawm ntau lub roj teeb tuav, cov khoom siv hluav taws xob thiab micro: me ntsis yog tias txhua yam yuav tsum tau tsim rau hauv txoj haujlwm. Ntawm qhov tod tes nws tsis zoo li yog tias koj tsuas yog txuas lub micro: me ntsis nrog cov sib txuas sib txuas, yog li hauv phau ntawv qhia no kuv tseem yuav qhia peb li cas tsim cov khoom kom raug coj mus siv dua.
Kuv twb tau ua phau ntawv qhia luv luv txog yuav ua haujlwm li cas neopixels, tab sis kuv yuav tso lwm cov ntawv qhia tom kawg nrog kev tsom me ntsis ntxiv txog yuav ua li cas rau txheej txheem neopixel matrix.
Khoom siv
Cov ntaub ntawv:
4 hli plywood
1 x TO220-3 tus tswj hluav taws xob
2 x 10 uF electrolytic capasitor
1 x 5 volt fais fab mov 2 A txaus rau 4x4 matrix, tab sis koj xav tau 4 A rau 10x10 matrix
3 x M3 25 bolts
12 x M3 Ceev
1 x Micro: ntsis
1 x 330 ohm resistor
1 x Ob txoj kev ntsia hlau dav hlau thaiv qhov txuas
Ib txoj hlua ntawm Micro: me ntsis sib xws neopixels. Qhov zoo tshaj 60 LED/meter. Koj yuav xav tau ntau dua ib nrab ntawm ib lub 'meter' rau 4 x 4 matrix thiab tsuas yog qis dua 2 meter rau 10 x 10 matrix.
Ob peb meters ntawm xaim. Nws yog qhov zoo yog tias koj muaj xim sib txawv
Ib qho me me ntawm cov laug cam
Me kab xev hluav taws xob
Ntoo nplaum
Kub kua nplaum
Cov Cuab Yeej:
Cuab yeej cuab yeej
Lasercutter
Wirecutter
Mem hluav
Laus txhuam
Kub kua nplaum phom
4 tus nab kuab dhia xov hlau
Kauj Ruam 1: Txiav Ntoo
Thawj zaug siv lub lasercutter los txiav ntoo. Kuv tau xa cov ntaub ntawv los txiav tawm ob qho 4x4 matrix thiab 10x10 matrix.
Kauj Ruam 2: Sib dhos daim phiaj thiab ko taw
Siv ntoo nplaum los sib dhos daim phiaj. Kuv siv tus txhuam qub los siv cov kua nplaum, tab sis koj tuaj yeem siv txhua yam. Yuav tsum paub tias ob daim phiaj sib thooj me ntsis dua li qhov seem. Cov ntawd yog daim kawg. Peb yuav muaj cov xov hlau hla mus thiab yog li muab lawv tso rau qhov kawg ntawm kab sib chaws.
Lub zeem muag ntawm daim duab yog ruam tag me ntsis. Koj yuav tsum lo rau sab nraub qaum mus rau ntu thib ob ntawm daim duab peb sab thiab tsis ntev tshaj. Sab nraub qaum yog lub xwmfab nrog 5 qhov hauv nws.
Kauj Ruam 3: Txiav Koj Neopixel Sawb Tawm
Koj xav txiav tawm neopixel sawb ntawm kab dawb. Yog tias koj tab tom ua 4x4 matrix, tom qab ntawd koj xav txiav tawm 4 kab ntawv nrog 4 neopixels ntawm nws thiab yog tias koj tab tom ua 10x10 matrix, tom qab ntawd koj xav txiav tawm 10 kab ntawv nrog 10 neopixels ntawm txhua. Cov tsev tsim khoom ua cov kab neopixel ntev, tab sis siv cov kab ntawv luv ua ke. Cov chaw soldering no yuav yog teeb meem tom kawg, yog li sim txiav cov kab hauv qhov uas koj txiav qhov twg cov chaw tsim khoom tau sib dhos ua ke. Nws yuav txhais tau tias tha koj tau nkim ob peb neopixels, tab sis nws yuav ua rau koj tom kawg ua haujlwm tau yooj yim dua.
Kauj Ruam 4: Sib sau Neopixels
Siv lub xwmfab loj tshaj plaws uas tau txiav tawm. Siv daim phiaj koj tau sib sau ua ke los kos qhov twg neopixels yuav tsum nyob ntawm nws nrog tus cwj mem. Feem ntau cov kab neopixels muaj kab xev rau lawv, yog li nws yooj yim tsuas yog kaw lawv rau hauv qhov chaw. Yog tias koj tsis yog, ces koj yuav tsum siv kua nplaum.
Nco ntsoov tias neopixels yog cov lus qhia, vim cov ntaub ntawv tsuas tuaj yeem mus ib txoj kev. Nws yog qhov tseem ceeb uas txhua lub neopixel strips mus tib txoj kev, koj tias koj muaj Din nyob rau ib sab thiab Ua ntawm lwm sab.
Kauj Ruam 5: Txuas Neopixels
Thaum txuas cov neopixels nco ntsoov tias lub zog, hauv av thiab cov ntaub ntawv yuav khiav los ntawm thawj kab ntawv mus rau kab ntawv tom ntej thiab tom qab ntawv txuas ntxiv thiab ntxiv rau.
Sawb -> Cov kab tom ntej
5v + -> 5v +
gnd -> ntw
Ua -> Din
Lub zog thiab av tuaj yeem ua ob txoj hauv kev neopixel, yog li nws tsis tseem ceeb li cas koj txuas txhua kab ntawv nyob ntawd, uas txhais tau tias koj tuaj yeem mus rau txoj kev luv, tab sis cov ntaub ntawv tuaj yeem mus ib txoj kev, yog li nco ntsoov tias koj txuas Ua rau Din.
Kauj Ruam 6: Xeem Matrix
Ua ntej peb muab daim phiaj tso rau saum neopixels, peb xav kom paub tseeb tias txhua yam ua haujlwm. Khiav mus rau ntau qhov neopixels los ntawm koj lub micro: me ntsis tuaj yeem ua luv luv nws, tab sis koj tuaj yeem ua haujlwm zoo 16 neopixels los ntawm micro: me ntsis tsis muaj lub zog sab nraud, tsuav yog tsuas yog ib qho neopixel qhib rau ib lub sijhawm. Tshaj tawm qhov kev xeem mus rau micro: me ntsis, txuas nws mus rau hauv LED matrix nrog cov xov tooj cua.
Hauv txoj kev xav uas tseem tuaj yeem ua tiav nrog 100 pixels, tab sis qhov ntawd yog qhov pheej hmoo me ntsis, hloov siv cov nab kuab txuas los txuas lub zog xa mus rau neopixel matrix thiab tom qab ntawd rub qhov kev xeem mus rau micro: me ntsis thiab txuas rau hauv av thiab cov ntaub ntawv. siv cov nab kuab.
Rau qhov 4x4 matrix
Micro: ntsis -> Neopixels
GND -> GND
3 v -> 5v +
Pin 0 -> Din
Rau 10x10 matrix
micro: ib
Micro: ntsis -> Neopixels
GND -> GND
Pin 0 -> Din
Powersupply -> Neopixels
GND -> GND
Lub zog -> 5v +
Fais fab lub micro: me ntsis thiab thawb lub pob A ob peb zaug los kuaj xyuas tias txhua daim kab xev ua haujlwm.
Kuv siv qhov program no los ntsuas 10x10 matrix.
Kuv siv qhov program no los ntsuas 4x4 matrix.
Kauj Ruam 7: Kua Daim Phiaj rau Neopixels
Piv txwv tias txhua yam ua haujlwm tam sim no koj yuav tsum tau muab cov kab sib chaws tso rau ntawm cov menyuam. Nco ntsoov tias peb xav tau ob daim nyias nyias uas koj muab tso rau ntawm txhua qhov kawg kom npog ob sab qhov twg koj tau muab soldered los yog lwm yam koj yuav tsis tuaj yeem tau txais daim phiaj rau qib kom raug. Yog tias koj muaj ib lub chaw tsim khoom lag luam uas tsis tau muab tso rau qhov kawg, tom qab ntawd koj yuav pom tias nws tsis yooj yim sua kom tau daim phiaj rau qib, yog li zom ib lub qhov me me hauv kab sib chaws uas lub Hoobkas tuaj yeem haum tau.
Tom qab koj tau kaw cov kab sib chaws rau cov phaj neopixel, tso qee yam hnyav rau saum nws thiab tso nws kom qhuav thaum nyob hauv qhov ntsuas.
Nco ntsoov tias cov kua nplaum ntoo yog cov coj ua kom txog thaum nws qhuav, yog li tsis txhob txuas daim phiaj matrix rau lub zog, ua ntej koj paub tseeb tias nws qhuav lawm.
Kauj Ruam 8: Soldering Voltage Regulator Board
Tam sim no peb tab tom yuav laug lub rooj tswj hwm qhov hluav taws xob. Koj tuaj yeem pom kuv daim duab rau qhov kev sib tw zaum kawg hauv daim duab saum toj no, tab sis nco ntsoov tias qee qhov kev sib txuas yuav ua nrog cov ntsia hlau thiab tsis siv cov khoom siv.
Cov ceg hauv To220-3 tau tso me ntsis txawv. Koj muaj gnd rau sab laug, lub zog rau sab xis thiab 3.3 V tawm hauv nruab nrab. Peb xav kom muab lub tshuab hluav taws xob tso rau nruab nrab ntawm qhov nruab nrab thiab 3.3 V kom ruaj khov lub zog rau micro: me ntsis thiab betwen gnd thiab 5 volt txhawm rau tswj lub zog rau neopixels.
Tom qab ntawd koj xav kom muab cov neopixel matrix rau Vin thiab GND.
Neopixel -> To220-3
5 v + -> Vin
gnd -> ntw
Tom qab ntawd koj xav kom xaim xov hlau mus rau nruab nrab txhais ceg. Cov xaim ntawd yuav yog rau micro: me ntsis.
Tom qab ntawd koj xav kom muab xaim txuas ntxiv rau Vin ntawm sab xis. Lub xov tooj ntawd yuav rov qab mus rau lub hwj chim.
Thaum kawg koj xav muab ob txoj hlua txuas ntxiv rau gnd. Ib lub xaim yuav mus rau lub zog hluav taws xob thiab lwm lub xaim yuav mus rau micro; me ntsis.
Kauj Ruam 9: Resistor ntawm Cov Ntaub Ntawv Hlau
Raws li adafruits neopixel qhia koj yuav tsum ib txwm tso 300+ ohm resistor ntawm cov ntaub ntawv xov hlau mus rau thawj neopixel. Yog li peb tau siv lub 330 ohm resistor rau cov ntaub ntawv xov hlau thiab txuas tus xov hlau tshiab rau lwm qhov kawg ntawm tus tiv thaiv.
Tom qab ntawd txhawm rau tiv thaiv cov kab hluav taws xob luv peb npog cov laug thiab cov tshuaj tiv thaiv hauv kab xev hluav taws xob.
Kauj Ruam 10: Ntxiv Ntsia Hlau
Tam sim no coj ib qho ntawm M3 cov ntsia hlau, qhwv cov xov gnd koj xav txuas rau lub micro: me ntsis ncig nws thiab khaws nws nyob hauv qhov chaw nrog ib qho ntawm cov txiv ntoo. Ua tib yam rau cov ntaub ntawv xaim thiab 3.3 V xaim.
Tom qab ntawd muab cov ntsia hlau hla lub qhov. Gnd dhau mus rau sab laug feem ntau qhov, 3.3 V hla qhov thib ob mus rau sab laug thiab cov ntaub ntawv hla mus rau sab xis feem ntau. Siv ob lub txiv ntoo ntawm txhua tus kom lawv nyob hauv qhov chaw. Peb siv ob qho los ntawm ib qho, vim tias peb kuj yuav tsum tau vreat qee qhov deb rau thaum peb txuas micro: me ntsis.
Kauj Ruam 11: Kub Nplaum Nws Txhua Qhov Ua Ke
Peb tam sim no kub kua nplaum lub davhlau ya nyob twg txuas rau sab, tom qab ntawd peb kub kua nplaum lub ntsuas hluav taws xob tswj qhov hluav taws xob nyob rau qhov kawg peb kub kua nplaum taw thiab lub neopixel board ua ke.
Nco ntsoov tias muaj ob txoj hauv kev sib txawv uas koj tuaj yeem txuas cov neopixels. koj tuaj yeem txuas lawv kom cov kab txaij mus los ntawm ib sab lossis nce thiab nqis. Yog tias neopixels nce thiab nqis ces nws yuav yooj yim dua los ua cov yeeb yaj kiab uas nce thiab nqis thiab yog tias neopixels mus ntawm ib sab mus rau ib sab, tom qab ntawd nws yuav yooj yim dua los ua cov duab uas mus los ntawm ib sab. Ntawm no 4x4 matrix yuav nce thiab nqis, thaum 10x10 matrix mus los ntawm ib sab.
Kauj Ruam 12: Npaj Cov Khoom Siv Hluav Taws Xob thiab Txuas Nws
Txiav qhov kawg ntawm cov khoom siv hluav taws xob cable thiab nthuav tawm cov xov hlau. Tom qab ntawd ntswj nws rau hauv cov ntsia hlau dav hlau. Nco ntsoov txuas lub zog rau lub zog thiab hauv av rau hauv av.
Kauj Ruam 13: Ntxiv Micro: ntsis
Ua haujlwm rau koj micro: ntsis thiab tom qab ntawd ntsia nws.
Kauj Ruam 14: Xeem Nws
Tam sim no txuas lub neopixel matrix rau lub zog thiab ntsuas lub matrix. Tom qab ntawd koj tuaj yeem ntxiv koj tus kheej cov ntaub ntawv tsis txaus ntseeg rau saum.
Pom zoo:
Arduino Nano-MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Tutorial: 4 Kauj Ruam
Arduino Nano-MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Servo Motors Siv Moto: ntsis Nrog Micro: ntsis: Ib txoj hauv kev txuas ntxiv kev ua haujlwm ntawm micro: ntsis yog siv lub rooj tsav xwm hu ua moto: ntsis los ntawm SparkFun Electronics (kwv yees li $ 15-20). Nws zoo li nyuaj thiab muaj ntau yam ntxwv, tab sis nws tsis nyuaj rau kev ua haujlwm servo motors los ntawm nws. Moto: me ntsis tso cai rau koj
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Python Qhia: 4 Kauj Ruam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Python Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Java Qhia: 4 Kauj Ruam
Raspberry Pi MMA8452Q 3-Axis 12-ntsis/8-ntsis Digital Accelerometer Java Tutorial: MMA8452Q yog tus ntse, tsis muaj zog, peb-axis, muaj peev xwm, micromachined accelerometer nrog 12 qhov kev daws teeb meem. Cov neeg siv yooj yim programmable xaiv tau muab nrog kev pab ntawm kev ua haujlwm hauv lub ntsuas qhov ntsuas, teeb tsa tau rau ob qho kev cuam tshuam
Kev ntsuas lub teeb thiab xim Nrog Pimoroni Enviro: ntsis rau Micro: ntsis: 5 Kauj Ruam
Kev ntsuas lub teeb thiab xim Nrog Pimoroni Enviro: me ntsis rau Micro: me ntsis: Kuv tau ua haujlwm ntawm qee lub cuab yeej uas tso cai ntsuas lub teeb thiab xim yav dhau los thiab koj yuav pom ntau txog qhov kev xav tom qab kev ntsuas ntsuas cov lus qhia ntawm no thiab ntawm no.Pimoroni muaj tsis ntev los no tso tawm enviro: me ntsis, ntxiv rau