Cov txheej txheem:
- Kauj Ruam 1: Kev piav qhia Circuit
- Kauj ruam 2: PCB piav qhia
- Kauj Ruam 3: PCB
- Kauj Ruam 4: Cais Rau Rau Ib Pcb
- Kauj Ruam 5: Sib Sau Baseboard Nrog Cov Khoom Siv
- Kauj Ruam 6: Program Microcontroller
- Kauj Ruam 7: Sib sau Dice
- Kauj Ruam 8: Thov Ua Zoo Rau Qhov No
Video: Tsis Tau Lwm Qhov Ntse Dice (YASD): 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
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
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
Ntxig txuas rau eagle-files
Kauj Ruam 4: 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
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
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
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
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:
Tsis Tau Lwm Qhov Chaw Nthuav Dav Hlau, Tab sis : 6 Kauj Ruam (nrog Duab)
Tsis Tau Lwm Qhov Chaw Nthuav Dav Hlau, Tab sis …: OK, Kuv paub muaj ntau lub chaw huab cua zoo li no muaj nyob txhua qhov chaw, tab sis siv ob peb feeb los pom qhov sib txawv … Tsawg zog 2 e-ntawv qhia … tab sis 10 txawv cov ntxaij vab tshaus! ESP32 raws tus ntsuas cua thiab ntsuas kub / av noo Wifi hloov tshiab
Tsis Tau Lwm Qhov Me Me Tswj Tswj SMPS (Tsis Muaj SMD): 8 Cov Kauj Ruam
Tseem Muaj Lwm Yam Me Me Tswj Boost SMPS (Tsis Muaj SMD): Lub npe tag nrho txoj haujlwm: Tsis tau lwm lub ntiaj teb kev tswj hwm tsawg tshaj plaws rau DC rau DC hloov pauv hloov lub zog siv THT (los ntawm lub tshuab thev naus laus zis) thiab tsis muaj SMD (cov cuab yeej teeb tsa saum npoo) OK, ok, Koj tau txais kuv. Tej zaum nws tsis me dua qhov no tau tsim los ntawm Mu
Tsis Tau Lwm Qhov Chaw Huab Cua (YA.W.S.): 18 Kauj Ruam (nrog Duab)
Tsis Tau Lwm Qhov Chaw Huab Cua (Y.A.S.V.): Txoj haujlwm no yog kuv coj mus rau Qhov Chaw Nthuav Tawm Huab Cua. Mine yog raws li ESP8266, a.96 ” OLED zaub thiab BME280 ib puag ncig lub teeb sensor. Cov Chaw Huab Cua zoo li yog txoj haujlwm nrov heev. Mine sib txawv nws tus kheej los ntawm ot
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Tsis Tau Lwm Qhov Ncauj Pob Ncaws Pob: 7 Cov Kauj Ruam
Tsis Tau Lwm Tus Ntxhais Stupid Dance Pad: tsis muaj dab tsi tshwj xeeb, tsuas yog 25 phaus (11.3 kilo) ntoo usb seev cev raws li lub microsoft keyboard YASDP Tsis tau Lwm Qhov Ntxub Dance Pad