Cov txheej txheem:

M-Clock Miniature Multimode Clock: 11 Kauj Ruam
M-Clock Miniature Multimode Clock: 11 Kauj Ruam

Video: M-Clock Miniature Multimode Clock: 11 Kauj Ruam

Video: M-Clock Miniature Multimode Clock: 11 Kauj Ruam
Video: How to connect and set analog timer relay 2024, Hlis ntuj nqeg
Anonim
Image
Image
HHMM hom
HHMM hom

Minimalist moos? Ntau hom moos? Matrix Moos?

Nov yog ntau txoj haujlwm moos ua haujlwm raws li MSP430G2432. Nws tuaj yeem sib sau ua ke yam tsis muaj kev sib tsoo thiab yam tsawg kawg ntawm kev siv cov cuab yeej. Nrog txwv 8x8 pixels zaub daws teeb meem, 12 teev teev no qhia lub sijhawm nyob rau hauv 6 hom sib txawv. Nws ntiav cov khoom siv tsawg tshaj plaws (tsuas yog 5 txog 7 ntu) thiab cov xov hlau tsawg (4 xov hlau). Tag nrho txoj haujlwm suav nrog roj teeb tau nyob hauv 1.5 "x 2" breadboard. Ntxiv Easter qe "Tetris" zoo li game, saib cov phiaj xwm kawg.

Nta

  • Yam tsawg kawg suav suav, 5 ntu.
  • Tsawg tsawg txoj hlua, tsuas yog 4 xov tooj xav tau. Roj teeb ua haujlwm los ntawm 3V txog 3.6V.
  • Siv tus saib xyuas lub sijhawm kom khaws sijhawm, lub zog poob qis (LPM3) siv lub zog uA.
  • 32Khz siv lead ua kom khaws lub sijhawm tseeb thaum pw.
  • Khiav 1Mhz DCO ntsuas lub moos thaum ua haujlwm (tso saib lub sijhawm).
  • Nov yog 12H moos, tsis yog 24H thiab tsis muaj AM/PM qhia.
  • Easter qe thov Tetris game.

Kauj ruam 1: HHMM Hom

HHMM hom, cov teev ib txwm ntxiv rau feeb scrolling tus lej nrog cov nyuv cais Daim duab hauv qab no tsis meej li cov lej tau ntxig.

Kauj Ruam 2: Hom Thib Ob

Hom thib ob
Hom thib ob

Hom thib ob, qhia tsuas yog vib nas this

Kauj ruam 3: Tix Hom

Tix Hom
Tix Hom

Tix hom, coj matrix tau muab faib ua quadrant, lub quadrants sab saud qhia lub teev hauv bcd (binary coded decimal) qhov tseem ceeb. lawv tau sawv cev los ntawm tus lej ntawm tus lej los qhia tus lej. qhov qis qis qis qhia qhov feeb hauv bcd. piv txwv li rau 4:32 nws qhia tsis muaj dot + 4 dots ntawm ib nrab thiab 3 dots + 2 dots ntawm qis ib nrab.

Kauj ruam 4: Tsuav Hom

Tsuav hom
Tsuav hom

Dice hom, tus lej matrix tau muab faib ua ob pawg 'dices'. nrog cov khub sab sauv qhia teev los ntawm 1 - 12, qis dua ntawm cov dice qhia feeb hauv 5 feeb nce ntxiv. Txhua txhua vib nas this cov tsuav yuav tig ntawm qhov muaj peev xwm ua tau. Piv txwv, teev 4 tuaj yeem sawv cev los ntawm 0 + 4, 1 + 3, thiab 2 + 2 ua ke ntawm 1 lossis 2 dices. Hauv qab no, rau 4:32 nws qhia pom qhov txiaj ntsig siab tshaj 4 + qis 6 (5 + 1), ua haujlwm kom yog 4 teev, 6 x 5 = 30 min, nrog qhov khib 2 feeb txiav vim peb tsuas yog sawv cev qhov tseem ceeb ntawm 5 feeb ntxiv.

Kauj ruam 5: Zauv Hom

Zauv Hom
Zauv Hom

Cov lej, hom ntawv me me 3x3 tau siv los tso saib ob teev thiab feeb yam tsis tas yuav tsum tau rub tus lej. Cov feeb tus lej hloov mus rau sab laug thiab sab xis ntawm tus thib ob thiab teev tus lej (thaum nyob rau teev ntawm 1 txog 9) swb ntawm sab xis mus rau sab laug los qhia txhua txhua 10 vib nas this nce qib hauv feeb. 4:33 thiab kwv yees li 30+ vib nas this tau qhia hauv daim duab.

Kauj Ruam 6: Hom Binary

Hom Binary
Hom Binary

Hom binary (tiag tiag nws yog bcd, lossis binary coded decimal), teev, feeb thiab tus lej thib ob tau qhia ua binary dot ntawm kab sib txawv hauv cov lej coj. cov kab 0 thiab 1 (los ntawm sab laug) sawv cev rau cov lej teev, kab 2 yog khoob, kab 3 thiab 4 sawv cev rau tus lej tus lej, kab 5 tsis tau khoob, kab 6 thiab 7 sawv cev rau tus lej thib ob. Hauv qab no sawv cev rau lub sijhawm 4:34:16.

Kauj Ruam 7: Nws Ua Haujlwm Li Cas

Lub voj voos siv kab thiab kab sib tshooj sib txuas los tsav cov coj, ib kab ib zaug, qhov no muab 12.5% kev ua haujlwm thaum "teeb tsa" ntawm cov leds (8 ntawm lawv hauv txhua ntawm 8 kab) tau qhib luv luv. cov kev txwv tam sim no raug tshem tawm kom txuag tau cov khoom qub qub thiab vim peb tsis tas li tsav tsheb ib tus neeg, lawv yuav tsis raug puas tsuaj.

Kev tswj hwm (tus neeg siv cuam tshuam) kuj tau teeb tsa kom peb tsuas yog siv lub pob nyem uas yooj yim rau kev nkag mus. lub khoos phis tawj ntes lub khawm ntev nias (nias thiab tuav) rau cov ntawv qhia zaub mov tig thiab ib txwm khawm nias rau xaiv cov ntawv qhia zaub mov. Los ntawm kev tsiv tawm qhov haujlwm no los ntawm AVR mcu mus rau msp430 mcu Kuv tau ua kom nws tuaj yeem khaws lub sijhawm kom raug ntau dua. Thaum lub sijhawm tso tawm (piv txwv li coj mus rau) txoj haujlwm khiav ntawm 1Mhz DCO. MSP430 mcu muaj lub Hoobkas ntsuas qhov ntsuas qhov ntsuas. Thaum tsis tso tawm, txoj haujlwm no nkag mus rau LPM3 (hom qis-zog 3) kom txuag hluav taws xob. Ntawm LPM3 DCO lub moos tsis tuaj yeem siv thiab txoj haujlwm hloov mus siv 32Khz siv lead ua raws AClk kom khaws sijhawm.

Kauj Ruam 8: Cheeb Tsam / Qhov Chaw

Cheebtsam / Qhov
Cheebtsam / Qhov
  • MSP430G2432 (lossis lwm yam G series dip 20pin li w/ 4k+ flash)
  • 8x8 LED matrix zaub (liab xwb, qhov no yog 3V project)
  • tactile khawm, koj xav tau 3 yog tias koj xav kom Tetris game qhib
  • 32Khz moos siv lead ua
  • CR2032 lossis lwm lub roj teeb 3V

Kauj Ruam 9: Layout Breadboard

Breadboard Layout
Breadboard Layout
Breadboard Layout
Breadboard Layout
Breadboard Layout
Breadboard Layout

Lub 8x8 coj matrix muaj dot loj ntawm 1.9mm thiab yog cov cathode ntau, yog tias koj muaj hom anode ntau, koj tuaj yeem hloov ob peb kab hauv txoj cai rau kev saws. Saib cov duab txuas thiab daim duab thiab saib yog tias koj muaj txoj cai pin-outs. Nws zoo nkaus li lawv muaj ntau heev thiab yog tias koj yuav ntawm ebay cov neeg xa khoom feem ntau muaj tib tus pin-tawm txawm tias tus lej tus lej sib txawv.

Kauj ruam 10: Schematic / Sib dhos

Schematic / Sib dhos
Schematic / Sib dhos
  • Ua raws li daim ntawv qhia zaub mov thiab tso ob lub xov hlau txuas rau ntawm lub khob cij me
  • Qhov chaw MSP430G2432 mcu
  • Qhov chaw 32Khz siv lead ua
  • Muab Tactile Khawm
  • Muab lub hwj chim tso (Kuv siv CR2032 khawm ntawm tes)
  • Thaum kawg tso 8x8 coj matrix rau saum MSP430G2432

Cov peev txheej thiab cov khoom siv rau txoj haujlwm tuaj yeem rub tawm los ntawm kuv qhov chaw cia khoom github, cov ntaub ntawv xav tau yog mclock.c (qhov chaw) thiab M-Clock.hex (firmware binary)

Kauj Ruam 11: Easter Egg / Tetris Like Game

Easter Egg / Tetris Zoo li Game
Easter Egg / Tetris Zoo li Game

Nrog qhov chaw nyem ntxiv ntawm MCU, Kuv tuaj yeem nyem hauv Tetris zoo li kev ua si. Daim ntawv thov qe Easter no yog eanbled los ntawm kev tso cov khawm ntxiv / xaiv tau yooj yim hauv txoj haujlwm ntawm lub khob cij.

Nias ib qho kev ua si (sab laug lossis sab xis) cov nyees khawm thaum lub moos qhia tawm yuav pib qhov kev ua si. Kev tswj hwm kev ua si yog hla cov nyees khawm sab laug thiab sab xis kom txav cov khoom ua si kab rov tav, thiab lub moos khawm, hauv hom kev ua si, yuav ua raws li lub pob khawm tig. Tsis muaj qhov poob qis hauv qhov kev siv no. Thaum qhov kev ua si xaus (cov khoom sib dhos ua ke nce mus txog saum qab nthab), cov qhab nia (tus lej ntawm kab uas tshem tawm) yuav qhia luv luv li 2 tus lej flashing.

Pom zoo: