Cov txheej txheem:

Animation Coffee Table: 9 Kauj Ruam (nrog Duab)
Animation Coffee Table: 9 Kauj Ruam (nrog Duab)

Video: Animation Coffee Table: 9 Kauj Ruam (nrog Duab)

Video: Animation Coffee Table: 9 Kauj Ruam (nrog Duab)
Video: Koj mus ua neej zoo li cas lawm 11/16/2018 2024, Kaum ib hlis
Anonim
Animation Coffee Table
Animation Coffee Table

Muaj ntau ntau cov lus qhia zoo txog yuav ua li cas los sib tham cov rooj kas fes nrog LED matrices, thiab kuv tau txais kev tshoov siab thiab cov lus qhia los ntawm qee qhov ntawm lawv. Qhov no yog qhov yooj yim, pheej yig thiab feem ntau ntawm txhua qhov nws tau txhais los txhawb kev muaj tswv yim: nrog tsuas yog ob lub nyees khawm, koj tuaj yeem tsim cov duab kos rau nws!

Peb muaj IKEA LACK cov lus nrog cov hniav, yuav ib qho tshiab, tawm hauv qhov qub kom rov qab siv dua hauv ib qhov haujlwm. Sab saum toj yog 55x55x5cm, thiab nws hollow, nrog tsuas yog pawg thawj coj saib nyias nyob rau sab saum toj thiab hauv qab uas yooj yim los txiav nrog lub thawv txiav. Ob sab muaj zog dua, ua los ntawm ~ 1cm hardboard. Nws tau ntim nrog cov duab los qhia hauv cov qauv ntoo, uas yooj yim tshem tawm.

Lub khw muag khoom kho vajtse hauv zos muaj 50x50cm plexiglass hauv ntau qhov tuab, xim thiab pob tshab. 4mm dawb -opaque yog pob tshab txaus, thiab tus nqi tsim nyog (4.50EUR - tseem yog tus nqi loj tshaj plaws ntawm txoj haujlwm!)

Hloov chaw ntawm tus kheej qhov chaw nyob LEDs, Kuv siv cov npaj muaj MAX7219 nti. Qhov siab tshaj plaws tam sim no raws li cov ntawv teev tseg yog 320mA tag nrho, yog li 5mA ib LED. Me ntsis hauv qab no 20mA nominal rau 5mm dawb LEDs, tab sis ci txaus rau lub hom phiaj no.

Siv tsuas yog 2 khawm cov neeg siv tuaj yeem tsim lossis hloov kho cov duab. Arduino muaj 1kB ntawm EPROM nco, yog li haum 128 cov duab ntawm 8x8 khoom. Qhov chaw txaus kom khaws 15 cov duab ntawm 1-15 thav duab txhua.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov Ntaub Ntawv Yuav Tsum Tau
Cov Ntaub Ntawv Yuav Tsum Tau

Ikea Tsis muaj rooj

50x50cm opaque plexiglass, 4mm tuab

~ 0.5 square meter ntawm cov duab los qhia. Lub rooj ruaj khov 3-txheej uas siv los ntim cov rooj tog zaum yog qhov zoo tshaj plaws.

Xim dawb

Arduino Nano tsis muaj tus pin headers

USB-A txiv neej txuas

Lub txhab nyiaj USB me me

MAX 7219 IB

24-pin IC qhov (lossis 3 8-tus pin nyob)

20kOhm trimmer potentiometer

64 dawb 5mm LEDs. Hom phiaj diffused, tab sis meej tseem zoo.

~ 10m ntawm cov xaim xaim (lossis lwm yam hlau cais tawm)

2 lub sijhawm thawb-khawm, 16mm vaj huam sib luag-mount

1 loj electrolytic capacitor (~ 1000muF)

1 ceramic capacitor (~ 1muF)

2 ceramic capacitors (~ 0.1muF)

1 lub kaum sab xis rau/tawm hloov (10x15mm nkoj rocker)

Ib daim ntawv loj 5x7cm

4 lub kaum pob los txwv kev txav ntawm LED vaj huam sib luag

2 40-tus pin ib kab kab taub hau: 1 tus txiv neej thiab ib tug poj niam

2m ntawm txoj hlua txuas txuas

3 JST txuas txiv neej-poj niam khub nrog 10cm ua

4 me me ntoo ntsia hlau

Kauj Ruam 2: Tsim LED Vaj Huam Sib Luag

Tsim Vaj Huam Sib Luag LED
Tsim Vaj Huam Sib Luag LED
Tsim Vaj Huam Sib Luag LED
Tsim Vaj Huam Sib Luag LED
Tsim Vaj Huam Sib Luag LED
Tsim Vaj Huam Sib Luag LED

Kos ib daim phiaj ntawm 8x8 squares ntawm 5x5 cm ntawm daim duab los qhia. Kuj kos kab pheeb ces kaum, kom lub hauv paus nrhiav tau yooj yim. Txiav nws tawm tab sis tawm qhov chaw ntxiv ntawm 1cm ncig ciam teb. Kuv daim ntawv duab tsis loj txaus yog li kuv tau tsim nws los ntawm ob ntu thiab siv cellotape los txuas lawv

Punch qhov nyob hauv nruab nrab ntawm txhua lub xwmfab thiab lo 5mm LED hla nws. Khoov tus pin LED nrog lub kaum sab xis 90 degree ntawm cov cathodes thiab anodes. Txuas tag nrho cov cathodes ntawm kab ua ke thiab txhua qhov anodes ntawm ib kab. Kuv siv cov xaim xaim thiab tsuas yog hlawv cov txheej nrog cov hlau yaj.

Txiav ib daim 16-tus pin tawm ntawm tus poj niam tus pin header thiab lo nws rau nruab nrab ntawm ib sab. Siv tag nrho 16 txoj kab xaim rau tus pin: anodes ntawm ib sab, cathodes mus rau lwm sab. Kuaj tias txhua lub LEDs ci thaum ua lub zog ua ke ntawm cathode thiab anode nrog 5V hauv koob nrog 1kOhm resistor.

Txiav 9 daim kab xev ntawm 30x40.5cm los xij txiav ntau dua 3cm daim kab xev uas tom qab ntawd txiav mus rau 72 daim duab plaub ntawm 4.5x3cm. Nrog cov kua nplaum kub, teeb cov kab ntawv thiab tom qab ntawd cov duab plaub los tsim me ntsis 'lub thawv' nyob ib puag ncig txhua qhov LED. Xim sab hauv ntawm txhua 'lub thawv' dawb kom pom kev zoo dua.

Kauj Ruam 3: Tsim Pawg Tswj

Tsim Pawg Tswj Xyuas
Tsim Pawg Tswj Xyuas
Tsim Pawg Tswj Xyuas
Tsim Pawg Tswj Xyuas
Tsim Pawg Tswj Xyuas
Tsim Pawg Tswj Xyuas

Cov khoom siv ntawm pawg tswj hwm yooj yim haum rau ib nrab ntawm 5x7cm pawg thawj coj ua qauv. Solder nws ua ke raws li cov duab thiab daim duab qhia. Nco ntsoov tias qhov kev txiav txim ntawm kab (tus lej) thiab kab (ntu) ntawm MAX7219 tsis yog nyob rau hauv kev txiav txim, tab sis qhov yooj yim kho hauv software.

Cov capacitors yog rau lim lub zog, lub lauj kaub los tswj qhov kev siv. Muaj 5-tus pin txiv neej lub taub hau nrog khoov pins txuas nrog Arduino.

Kauj Ruam 4: Hloov Kho Cov Lus

Hloov Kho Rooj
Hloov Kho Rooj
Hloov Kho Rooj
Hloov Kho Rooj
Hloov Kho Rooj
Hloov Kho Rooj

Txiav ib lub xwm fab ntawm 48x48cm tawm sab saum toj ntawm lub rooj. Cov khoom siv yog mos txaus tias nws tuaj yeem txiav nrog lub thawv txiav siv lub zog quab yuam. Tshem tawm cov zib ntab sau. Laum lossis xuas ob lub qhov los ntawm ib sab ntawm lub rooj rau ob lub khawm. Ua ib lub qhov rau lub khawm rau/tawm ntawm sab hauv qab. Kua nplaum cov ces kaum kom txwv kev txav ntawm LED vaj huam sib luag. Kuv khaws ib lub thawv nrog cov ntaub ntawv ntim khoom tsis xwm yeem thiab muaj tshwm sim los ntawm cov rooj tog yas tiv thaiv daim uas tsuas xav tau kev txiav me ntsis. Koj tseem tuaj yeem ua cov no los ntawm cov duab los qhia.

Kauj Ruam 5: Npaj thiab Mount Cov Hloov

Npaj thiab Mount Cov Hloov
Npaj thiab Mount Cov Hloov

Solder 0.1muF ceramic capacitor hla cov neeg ntawm txhua lub khawm. Ua ke nrog kev rub tawm sab hauv 20-50kOhm resistor ntawm Arduino, qhov no yuav muab kev tiv thaiv kev tiv thaiv nrog lub sijhawm tsis tu ncua ntawm tau = RC = 2-5ms. Muab tus poj niam JST txuas rau lub laub khawm thiab qhib/tua. Mount cov keyboards ntawm lub rooj.

Kauj Ruam 6: Npaj Arduino Nano

Npaj Arduino Nano
Npaj Arduino Nano
Npaj Arduino Nano
Npaj Arduino Nano

Solder 5 tso tseg cov xov hlau, tus txiv neej JST txuas thiab USB txiv neej txuas rau Arduino raws li cov lus qhia thiab daim duab. Solder tus poj niam 5-pin tus pin lub taub hau rau cov xov hlau tso tseg (lossis txuas ncaj qha mus rau pawg tswj hwm).

Rub tawm qhov teeb tsa SetEEPROM.ino mus rau Arduino Nano. Qhov no tso 15 cov duab kos rau hauv EEPROM. Thaum lawv tau tshaj tawm (siv sijhawm ~ 2s), LED 13 yuav ci. Tam sim no rub tawm Daim Duab AnimationTable.ino.

NB: xyov cov ntaub ntawv.ino tsis kam upload. Kuv renamed lawv nrog.txt thiab nws yog lawm. Yog li tom qab rub tawm, hloov qhov txuas ntxiv rov qab mus rau.ino

Kauj Ruam 7: Muab Txhua Yam Ua Ke

Image
Image
Muab Txhua Yam Ua Ke
Muab Txhua Yam Ua Ke
Muab Txhua Yam Ua Ke
Muab Txhua Yam Ua Ke
Muab Txhua Yam Ua Ke
Muab Txhua Yam Ua Ke

Txuas Arduino mus rau pawg tswj hwm, cov hloov pauv thiab lub txhab nyiaj. Qee Velcro ntawm lub txhab nyiaj tau zoo tshaj plaws kom nws nyob hauv qhov chaw. Txuas lub vaj huam sib luag mus rau pawg tswj hwm thiab muab tso rau hauv lub rooj. Hloov mus kom pom nws lub teeb ci: ua ntej pib ib qho kev ua yeeb yaj kiab, txhua LEDs tuaj thiab tawm mus. Tom qab ntawd nws qhia thawj qhov kev ua yeeb yaj kiab, uas yog daim duab zoo li qub ntawm pawg thawj coj saib chess. Npog nrog lub plexiglass thiab kos yog tias lub teeb pom kev hauv txhua lub pixel yog homogeneous. Yog tias tsis yog, npog lub LED nrog daim me me ntawm cov ntaub so ntswg. Punch qhov nyob hauv plaub lub ces kaum ntawm lub plexiglass thiab ntsia hlau rau lub rooj.

Kauj Ruam 8: Yuav Ua Li Cas Tsim Animations

Image
Image

Daim duab kos tso cai tsim thiab rov ua dua cov duab ua haujlwm siv tsuas yog ob lub khawm: 'kho kom raug' thiab 'ua si'.

Thaum pib, nws qhia nws thawj qhov kev ua yeeb yaj kiab, uas tsis yog qhov kev ua yeeb yaj kiab tiag tiag vim tias nws suav nrog ib daim duab nkaus xwb (pawg chess). Yog tias koj thawb 'ua si', nws yuav mus rau qhov ua yeeb yaj kiab tom ntej. Muaj 16 nyob rau hauv tag nrho: 15 qhov ua yeeb yaj kiab ntawm 1-15 thav ntawv, ntxiv rau 1 uas ua si txhua ntawm lawv hauv ib ntu.

Yog tias koj thawb 'kho', lub thav duab yuav khov thiab tus cursor txav hla lub vijtsam. Thaum twg koj thawb 'kho dua', lub pixel ntawm txoj haujlwm tus cursor yuav thim rov qab. Nias 'ua si' dua kom pom qhov tshwm sim thiab txav mus rau lwm tus ncej. Cov kev hloov pauv tau khaws cia hauv lub sijhawm tiag tiag hauv EEPROM, yog li lawv yuav nyob hauv kev nco txawm tias thaum tua tawm.

Kauj Ruam 9: Cov Nyiaj Tau Los: Tsab Ntawv Tshaj Tawm los Txheeb Xyuas Software

Yog tias koj tsuas yog xav sim ua tus tsim cov tsiaj ntawv me me lossis hauv qhov haujlwm sib txawv, koj tuaj yeem ua nws nrog daim ntawv pov thawj tiv thaiv, 8x8 LED matrix nrog MAX7219 module txuas thiab ob lub khawm, ib yam li hauv daim duab. Kev txiav txim siab ntawm kab thiab kab ntawv tsis xav tau ntxiv, yog li tawm lus kab 64-65 thiab kab tsis pom zoo 68-69.

Pom zoo: