Cov txheej txheem:

Tsis Tau Lwm Qhov Ntse Dice (YASD): 8 Kauj Ruam
Tsis Tau Lwm Qhov Ntse Dice (YASD): 8 Kauj Ruam

Video: Tsis Tau Lwm Qhov Ntse Dice (YASD): 8 Kauj Ruam

Video: Tsis Tau Lwm Qhov Ntse Dice (YASD): 8 Kauj Ruam
Video: Zaj dub - xaiv tsis tau los ua koj tug -nkauj tawm tshiab 2022 2024, Kaum ib hlis
Anonim
Tsis Tau Lwm Qhov Ntse Dice (YASD)
Tsis Tau Lwm Qhov Ntse Dice (YASD)

YASD yog dab tsi?

Lwm lub tswb hluav taws xob tshiab nrog cov ntse nta? Yog thiab tsis yog.

Yog - YASD siv LEDs los tso saib cov lej uas tsim tawm hauv cov style tsuav.

Tsis yog - YASD tsis yog nws tus kheej ua cov khoom tiav. Nws yuav tsum theej tawm qhov twg thev naus laus zis thev naus laus zis thev naus laus zis tuaj yeem ua tau.

Nta

Microcontroller tswj kev tsim khoom thiab tso saib cov lej tsis raug ntawm ib qho LED array hauv cov style tsuav

Lub Circuit Court muaj tus accelerometer. Qhov ntsuas no ua haujlwm ua lub luag haujlwm rau tsim cov lej tsis raug. Cov dice tsis tau muab dov ntxiv, ib qho yooj yim kais ntawm cov tsuav lossis lub rooj tsim tus lej tsis raug

YASD yog siv los ntawm CR2032 coincell

YASD kuj tseem tuaj yeem teeb tsa nrog lub ntsuas hluav taws xob. Piv txwv li, koj tuaj yeem tig YASD rov qab thaum hloov nws. YASD lees paub qhov no nrog kev pab ntawm lub ntsuas ntsuas thiab hloov mus rau lwm txoj haujlwm

Muaj ob txoj kev ua haujlwm:

Lub zog txuag hom. Qhov tsim tus lej tau tshwm sim rau 3 vib nas this hauv lub suab ntsais muag. Tom qab ntawd cov zaub ntawm tus lej ntawm LED teeb tawm mus

Hom Fancy. Ib qho kev ua yeeb yaj kiab tau tshwm ntawm LED array. Tus lej tsis raug tsim tawm yog tom qab pom zoo li qub rau 5 vib nas this. Tom qab ntawd cov zaub ntawm tus lej ntawm LED teeb tawm mus

Kauj Ruam 1: Kev piav qhia Circuit

Lub Circuit Court muaj cov khoom siv:

Fais fab mov

Ib txheej txheem xov tooj ntawm tes CR2032 tau siv los cawm lub zog hluav taws xob tuaj yeem hloov/qhib los ntawm tus swb swb.

Microcontroller

Lub microcontroller yog ATTiny84A los ntawm Microchip/Atmel. ATTiny84A muaj Picopower lub zog txuag hom thiab yog li ntawd haum rau roj teeb ua haujlwm.

Accelerometer

LIS3DH los ntawm ST Microelectronics. LIS3DH kuj tseem muaj lub zog txuag hluav taws xob qis tshaj plaws. LIS3DH los nyob rau hauv me me hneev taw. Txhawm rau kom tsis txhob muaj teeb meem ntawm kev siv tshuaj yaj yeeb kuv tau xaiv lub breakoutboard los txais yuav lub accerlerometer rau hauv Circuit Court.

LED zaub

LED zaub suav nrog xya LEDs teeb tsa raws li lub tsuav. Cov resistors series tau teeb tsa rau LED tam sim no ntawm kwv yees. 2mA ua.

Kev siv hluav taws xob tag nrho ntawm Circuit Court yog kwv yees. 16mA thaum khiav nrog 6 leds qhib. Nyob rau hauv hom powerdown (tsis muaj leds qhib, microcontroller tsaug zog) tag nrho kev siv hluav taws xob tsawg dua 1mA. Tus naj npawb siab kawg ntawm "dice rolling" cycles yuav tsum txiav txim siab.

Kauj ruam 2: PCB piav qhia

PCB piav qhia
PCB piav qhia

Cov ntawv luam tawm Circuit Board muaj cov ntawv luam tawm Circuit board tiav, uas tau muab faib ua rau rau tus neeg luam tawm Circuit board los ntawm milling:

Baseboard nrog fais fab mov, microcontroller thiab accelerometer

LED zaub matrix

Sab phab ntsa I - IV

Kauj Ruam 3: PCB

PCB
PCB
PCB
PCB

Ntxig txuas rau eagle-files

Kauj Ruam 4: Cais Rau Rau Ib Pcb

Cais Rau Rau Ib Pcb
Cais Rau Rau Ib Pcb

Nrog tus kws txiav plaub ntug cais rau rau ib pcb.

Siv ib daim ntawv tshem tawm cov seem ntawm cov milling. Tag nrho cov npoo ntawm daim phiaj hluav taws xob luam tawm yuav tsum yog du tsis li lub pcb yuav tsis haum ua ke.

Kauj Ruam 5: Sib Sau Baseboard Nrog Cov Khoom Siv

Sib sau Baseboard Nrog Cov Khoom Siv
Sib sau Baseboard Nrog Cov Khoom Siv

Lauj kaub ntawm cov khoom. Pib nrog lub capacitor. Tom qab ntawd muab tus tes hloov qhov thiab lub microcontroller. LIS3DH breakout board ua raws li hauv qab no. Hauv kuv qhov teeb tsa kuv siv lub qhov (socket) txuas rau LIS3DH breakout board kom tshem nws yooj yim. Thaum kawg cov laug ntawm lub roj teeb.

Kauj Ruam 6: Program Microcontroller

Qhov program Microcontroller
Qhov program Microcontroller

Txhawm rau program microcontroller koj xav tau tus programmer tsim nyog. Kuv siv AVR ISP mkII. Lwm tus programmer los ntawm Atmel yuav tsum ua haujlwm. Muab cov xov hlau txuas raws li daim duab.

ISP header pin-> YaSD tus pin

VTG / VCC-> VCC

GND-> GND

MOSI-> MOSI

MISO-> MISO

SCK-> SCK

RESET-> RESET

Tom qab ntawd teeb tsa lub microcontroller nrog cov ntawv hex. Tom qab kev teeb tsa software, lub fuses yuav tsum tau teeb tsa. Koj tuaj yeem tawm yuav luag txhua yam ntawm lawv tsis hloov pauv. Tsuas yog fuse "LOW. CKDIV8" yuav tsum yog neeg xiam oob khab.

Tshem tawm cov xov hlau rau lub cajmeem.

Kauj Ruam 7: Sib sau Dice

Sib sau ua ke
Sib sau ua ke

Solder baseboard nrog sab vaj huam sib luag II. Xyuas kom tseeb tias lub hauv paus puag ncig yog nyob ib puag ncig. Kuv teeb ob lub pcb rau lub kaum sab xis thiab muab lawv tso rau. Lwm yam khoom xws li bookends ua haujlwm ib yam nkaus. Lub pcb tau cim nrog cov tsiaj ntawv ntawm nplooj ntawv uas koom ua ke. Raws li koj tuaj yeem pom hauv daim duab, sab A tau muab txuas rau sab A. Tsis txhob txhuam txhua daim ntaub ntawm ib sab. Tsuas yog solder ib lossis ob daim ntaub xwv kom koj muaj peev xwm rov muag lawv dua hauv rooj plaub qhov tsuav tsis sib luag txhua.

Mus nrog lub vaj huam sib luag sab I. Tam sim no lub tsuav yuav tsum muaj U-puab (lub hauv paus thiab ob sab-daim phiaj.

Tom ntej solder tus coj zaub rau ob sab-panels. Leds yuav tsum nyob saum;-)

Ua qee qhov kev kho yog hais tias cov tsuav tsis sib npaug ntawm txhua qhov ces muab tag nrho cov pawm ntawm txhua sab.

Tam sim no koj tuaj yeem tso rau hauv qhov sib npaug thiab hais rau ntawm tsuav. Muaj kev lom zem!

Ceev faj! Ua ntej yuav laug qhov kawg ntawm lub vaj huam sib luag III, xyuas kom tseeb tias txhua yam khoom siv tau muab pov thiab muab tso kom raug

Kauj Ruam 8: Thov Ua Zoo Rau Qhov No

Thov Them Nyiaj Rau Qhov No!
Thov Them Nyiaj Rau Qhov No!

Kev tsim dua tshiab yuav tsum muaj qee qhov kev paub thiab kev txawj tshwj xeeb tshaj yog thaum siv lub tshuab ua haujlwm thiab tsim lub microcontroller.

Kev siv cov khoom siv me me no yuav tsum muaj qee qhov kev paub hauv kev siv tshuaj thiab qhov chaw tsim khoom tsim nyog. Yog li ntawd kuv txiav txim siab siv LIS3DH breakoutboard kom tsis txhob siv LIS3DH ncaj qha mus rau PCB. Nrog lub pob me me ntawm LIS3DH qhov no yog qhov tsis yooj yim sua ua nrog lub chaw nres tsheb soldering. Soldering pcbs rau ib leeg tsis yooj yim ib yam

Yog tias koj teeb tsa qee qhov fuses hauv lub microcontroller qhov tsis raug nws yog cib

Cov duab ib txwm qhia version 0.1 ntawm PCB (tshwj tsis yog duab qhia pom cov txheej txheem txheej txheem). Nov yog thawj daim ntawv luam tawm ntawm lub rooj tsavxwm uas tau tsim tawm. Nws muaj qee yam uas xav tau los txhim kho. Yog li kuv txiav txim siab los tsim qhov tshiab. Cov chaw cia khoom ntawm github muaj qhov hloov tshiab kawg

Daim duab qhia thawj daim ntawv mockup kuv tau ua ua ntej kuv xaj pcb.

Pom zoo: