Cov txheej txheem:

Disco Drink Coaster: 4 Kauj Ruam (nrog Duab)
Disco Drink Coaster: 4 Kauj Ruam (nrog Duab)

Video: Disco Drink Coaster: 4 Kauj Ruam (nrog Duab)

Video: Disco Drink Coaster: 4 Kauj Ruam (nrog Duab)
Video: What happened when I fall #surf #surfing #athlete #waves #surfers #skate #wsl #fit 2024, Hlis ntuj nqeg
Anonim
Disco Haus Dej Coaster
Disco Haus Dej Coaster
Disco Haus Dej Coaster
Disco Haus Dej Coaster

Txawm hais tias peb tsuas yog nyob sab nraum Cambridge hauv tebchaws Askiv, kuv tus poj niam raug kev quav yeeb quav tshuaj rau txhua yam hauv Las Vegas. Nws tau ze li rau lub hlis txij li peb mus ntsib zaum kawg, thiab nws tab tom xav txog lub teeb ci thiab cocktails. Ob peb yam ua rau haus zoo dua li qee lub teeb xim nyob ib puag ncig. Ua ntej ceeb toom rau qhov ua rau kuv tus poj niam tsis txaus siab, Kuv txiav txim siab los txhawb nws los ntawm kev ua kom muaj suab paj nruag, ci ntsa iab cov dej haus coaster. Qhov no nws nyob hauv qab gin thiab tonic: Thiab ntawm no nws yog, tsis muaj iav, tso saib cov kiv cua khov nab kuab galactic. Cov coaster tuaj yeem tsav los ntawm ib lub PC nrog qhov chaw nres nkoj txuas thiab yuav tso tawm ib qho 10 los ntawm 10-pixel video uas koj xav tau.

Kauj Ruam 1: Yuav Qee Qhov

Koj yuav xav tau:

30 1K 0805 resistors (R1 - R30) 30 MBTA42 NPN transistors (Q1 - Q30) 10 100 Ohm 0805 resistors (R31 - R40) 10 FMMT717 PNP transistors (Q31 - Q40) 5 74HC594 SOIC hloov npe (IC1 - IC5) 4 100nF 1206 capacitors (C1-C4) thiab thaum kawg: 100 TB5-V120-FLUX-RGB8000 RGB LEDs (LED00-LED99) Cov LEDs tuaj yeem nyuaj rau tuav ntawm tus nqi tsim nyog; eBay yog ib zaug ntxiv tus phooj ywg ntawm tus kws tshaj lij hluav taws xob.

Kauj Ruam 2: Ua thiab sib dhos PCB

Ua thiab sib sau ua ke PCB
Ua thiab sib sau ua ke PCB
Ua thiab sib sau ua ke PCB
Ua thiab sib sau ua ke PCB

Tsim tawm ib lossis ntau PCBs siv daim ntawv Gerber uas txuas nrog thiab cov ntawv laum. Yuav tsum muaj txheej txheem PTH ob tog, yog li nws yog qhov zoo tshaj plaws los siv ib qho ntawm ntau yam ntim me me kev tshaj lij kev lag luam PCB; Kuv tau pom PCB Cov Tsheb ciav hlau hauv UK los ntseeg tau zoo.

Sib sau ua ke lub rooj tsavxwm, ua tib zoo saib xyuas thaum siv cov khoom sib xyaw saum npoo av. Kuv pom qhov no yog qhov raug ntawm qhov txwv ntawm kuv qhov kev txawj ntse. Nco ntsoov tias muaj ob hom sib txawv ntawm SOT-23 transistor, thiab ob hom 0805 resistor ntawm lub rooj tsavxwm. Saib rau hauv qab txheej txheej kom pom cov npe tivthaiv (R23 thiab lwm yam) thiab siv qhov no kom phim rau cov npe hauv ntu 1. Thaum koj ua tiav, koj lub rooj sib tham yuav tsum zoo li qhov no.

Kauj Ruam 3: Tsav Pawg Thawj Coj

Qhov no yog qhov nyuaj me ntsis. Koj yuav tsum tau siv qee yam (tej zaum yog lub microcontroller) los tsav lub rooj tsav xwm hauv txoj hauv kev uas tsim cov duab. Txuas lub zog thiab cov ntaub ntawv txuas rau lub txuas hauv qab hauv qab ntawm pawg thawj coj saib. Pom los ntawm saum toj no, peb suav rau tus lej pins:

1 2 3 4 5 6 Cov cim sib xws yog: 1. XVOLTS - tsav hluav taws xob rau LEDs. Txuas mus rau 4V cov khoom siv tam sim no txwv. 2. SERIAL_CLOCK - hloov cov ntaub ntawv los ntawm SERIAL_DATA ntawm ntug kev mus tau zoo. 3. SERIAL_LATCH - latch 40 khoom los ntawm kev hloov npe rau LED tswj ntawm qhov zoo -mus ntug. 4. GROUND - thaj av. 5. 5VOLTS - muab hluav taws xob rau kev tswj hluav taws xob. Txuas rau 5V khoom. 6. SERIAL_DATA - cov ntaub ntawv tawm tswv yim rau kev hloov npe. Txhawm rau tshuaj xyuas cov zaub, moos 10 4-ntsis tus lej rau hauv kev hloov pauv npe. Txhawm rau moos me ntsis: - nqa SERIAL_CLOCK qis - hloov kho SERIAL_DATA - nqa SERIAL_CLOCK siab Ib zaug 40 cov khoom tau teev nyob rau hauv, SERIAL_LATCH teeb liab tuaj yeem nqa siab los hloov lawv mus rau LED tswj Circuitry. Txhua tus lej 4 me me xaiv ua rau cov liab, ntsuab thiab xiav LEDs hauv ib kab, thiab xaiv ua tsis taus txhua LEDs hauv ib kab. Yog li yog tias peb teev hauv kab: 0011 0100 0111 … RGCB RGCB RGCB Qhov no teeb tsa tag nrho cov LEDs hauv kab 0 rau xiav, tag nrho cov LEDs hauv kab 1 rau ntsuab thiab tag nrho cov LEDS hauv kab 2 rau cyan (ntsuab + xiav). Nws xiam tag nrho cov LEDs hauv kab 0 thiab 2. Los ntawm kev nrawm nrawm hauv ntau qhov sib txuas ua ke ntawm qhov muaj txiaj ntsig (feem ntau tsuas yog 1 ntawm 10 kab ntawv-ua haujlwm tsis zoo me ntsis), peb tuaj yeem luam theej tawm cov kab los tsim cov duab, thiab siv mem tes-dav kev hloov kho kom muab ntau yam ntawm qhov pom tseeb. Cov ntawv txuas txuas tuaj yeem siv nrog Atmel ATmega644 los tsim cov cim xav tau hauv kev teb rau cov lus nkag los ntawm lub PC lossis Mac.

Kauj Ruam 4: Lus Ceeb Toom thiab Lus Qhia

Ob peb lo lus ceeb toom. Cov niaj hnub LEDs tuaj yeem ci heev tiag tiag. Koj tuaj yeem yuav ua rau koj tus kheej zoo nkauj heev los ntawm kev hu lawv mus rau qhov ua kom muaj zog thiab tsis quav ntsej koj qhov kev xav rov mus, yog li tsis txhob. Tsis tas li, thaum debugging koj lub firmware nws yog ib qho yooj yim los tso tseg txoj kev luam theej thiab hlawv cov LEDs uas muaj nqi. Siv qhov tsim nyog tam sim no-txwv lub rooj zaum fais fab tuag, nrog tam sim no hu rov qab mus rau ob peb kaum kaum milliamps kom tsis txhob muaj qhov tshwm sim no.

Pom zoo: