Cov txheej txheem:

Tsis Yog Crap Clock: 4 Kauj Ruam
Tsis Yog Crap Clock: 4 Kauj Ruam

Video: Tsis Yog Crap Clock: 4 Kauj Ruam

Video: Tsis Yog Crap Clock: 4 Kauj Ruam
Video: Tau kev seev vim ruam tsis deev. 9/28/2017 2024, Kaum ib hlis
Anonim
Tsis Yog Crap Clock
Tsis Yog Crap Clock
Tsis Yog Crap Clock
Tsis Yog Crap Clock
Tsis Yog Crap Clock
Tsis Yog Crap Clock

Los ntawm davidjwattsdavidjwatts.com Ua raws ntau los ntawm tus sau:

PiBot: Xam Pi nrog Arduino Uno
PiBot: Xam Pi nrog Arduino Uno
PiBot: Xam Pi nrog Arduino Uno
PiBot: Xam Pi nrog Arduino Uno

Ua ntej, vim li cas thiaj hu nws ua Crap Clock? Zoo, nws txo qis kev cia siab nrog kev cia siab ntawm lawv ntau dua:-) Kuv dag qhov tseeb, lub moos sawv cev rau ntau qhov kuv ua tsis tiav thiab ua tiav hauv kev ntsuas sib npaug. Kev sawv cev ntawm lub cev tsis zoo hauv cov khoom siv hluav taws xob.

Qhov thib ob, qhov no tsis yog ib qho yuav ua li cas thiaj ua rau 'tshaj' ntau qhov xav txog ntawm kev xaiv tsim thiab txhua yam ntaub ntawv uas koj xav tau mus txog kev tsim koj tus kheej.

Lub Crap Clock yog lub moos khiav los ntawm ATMEGA328 uas tsav 82 LEDs ntawm 74HC595 tsav kab thiab TLC5940 poob dej tam sim no hla kab. Raws li DS3231 khaws lub sijhawm thiab tuaj yeem ua haujlwm txuas nrog lub roj teeb lub davhlau ya nyob twg. Lub moos muaj ob peb 'qauv' los saib lub sijhawm, hnub tim, xyoo, kub thiab tom qab ntawd coj los teeb tsa lub sijhawm thiab hnub tim nrog ob lub khawm. Cov LEDs tuaj yeem tsaus nrog TLC5940 thiab lub vib nas this tso saib (Pink LEDs saum toj no) tuaj yeem siv los tso saib cov ntawv sau ib puag ncig nrog rau hom uas lub moos nyob hauv.

Muaj ob peb yam uas kuv tsis tau siv lossis tau tshem tawm ntawm PCB zoo li Li-ion roj teeb them, kuv tau ua qhov no txhawm rau txo tus nqi ntawm cov khoom thiab vim tias DS3231 yeej tsuas yog siv me me tam sim no. Tseem muaj cov pins rau inbuilt DS3231 lub tswb INT/SQW tus pin thiab tus lej nrov nrov los ntawm ATMEGA. Tus Pin 10 tau tawg tawm rau kev siv dav thiab tseem muaj tus pin zoo sib xws muaj rau cov yam ntxwv zoo li LDR los hloov qhov ci ci raws qhov pom kev ib puag ncig.

Kuv muab tso ua ke cov npe ntawm txhua qhov yeeb yaj kiab uas kuv tuaj yeem nco tau tham txog lossis tsim Crap Clock.

Kauj Ruam 1: Kauj Ruam 1: PCB thiab Schematic

Kauj Ruam 1: PCB thiab Schematic
Kauj Ruam 1: PCB thiab Schematic
Kauj Ruam 1: PCB thiab Schematic
Kauj Ruam 1: PCB thiab Schematic

PCB txheej txheem thiab txheej txheem tau tsim hauv Dav dawb hau, nws siv sijhawm loooong;-) tab sis nws kuj tseem lom zem heev thiab qhia kuv ntau yam txog kev tsim. Tsis txhob txhawj xeeb tseem muaj ntau qhov yuam kev yog tias txhua txhua qhov haujlwm kuv tau ua, suav nrog txhua qhov uas kuv tsis paub txog hauv qhov no.

Kuv xav kom lub moos muaj lub vijtsam matrix thiab rau nws txhua qhov muaj nyob ntawm ib lub rooj tsavxwm yog li kuv tau teeb tsa tsim lub rooj sib tham puag ncig kom ua raws lub moos sib piv. Yog…. uas tsis tau lo, nws yog qhov tsis zoo rau txoj kev ncig thiab xav tau ntau lab (tej zaum ntau pua) ntawm LEDs. Tom ntej no kuv txiav txim siab los ua tus qauv matrix siv cov LEDs, thaum xub thawj txhua tus tau tsav nrog cov npe hloov pauv (Tus saib xyuas 74HC595) tab sis kuv txiav txim siab thaum kawg tias tus paub TLC5940 LED tsav tsheb yuav zoo heev rau qhov tam sim no los ntawm cov LEDs thiab muab qhov txaus feature PWM dimming.

Nov yog Daim Ntawv Nqi Khoom:

1 x 16 MHz siv lead ua SM49

82 x 0603 LEDs (Zoo nkauj npaum li koj nyiam xim)

1 x Mini USB Hom B (Tsis xav tau, nws tsuas yog rau lub zog uas tau tawg mus rau tus pin lawm)

7 x 100nf 0805 capacitors

9 x 10k 0805 resistors

2 x 10uf 0805 capacitors (Tsis tas yuav tsum tau ua siab ncaj thiab 0805 yog kim)

5 x 1k 0805 resistors

1 x 2k 0805 resistors

5x2n3906 TSO 23

2 x 22pf 1206 resistors

16 x 470 ohm 0805 resistors

1 x 74 HC595D SO16

1 x ATMEGA328P-AU

1 x DS3231 SO16W

2 x SMD tactile hloov DTSM-3

1 x TLC5940PWP

Kauj Ruam 2: Kauj Ruam 2: Crap Code

Kauj ruam 2: Crap Code
Kauj ruam 2: Crap Code

Cov cai yog npau suav phem me ntsis, nws muab tawm tias lub moos nrog lub homebrew matrix zaub tsis yooj yim txawm tias thaum koj siv ob peb lub tsev qiv ntawv.

Nws tsis yog txoj cai zoo kawg, nws yog crap code. Tab sis nws tau ua haujlwm thiab hloov pauv tau yooj yim, Kuv tsis muaj lub tswv yim yuav ua lub tsev qiv ntawv li cas qhov no yog qhov ua rau lub tsheb ciav hlau tawg tag. Ha ha, tab sis ua siab ncaj Kuv tab tom ua haujlwm txhawm rau txhim kho kuv tus lej kom zoo dua thiab kawm paub yuav tsim kuv lub tsev qiv ntawv li cas.

Nws tau sau rau hauv Arduino IDE thiab siv qee lub tsev qiv ntawv (Shifter.h, MD_DS3231.h thiab Tlc5940.h) tsim los ntawm cov neeg nyob deb dua ntse hais tias I. Koj yuav tsum tau xa qhov no nrog tus programmer, Kuv siv Arduino li ISP thiab nqes nws mus rau qhov pib dua, 11, 12, 13 tus pin ntawm lub rooj tsavxwm.

Cov nyees khawm:

Muaj ob lub khawm, lawv muaj ntau txoj haujlwm nyob ntawm hom uas lub moos nyob hauv. Koj tuaj yeem siv lawv los hloov hom zaub rau pem hauv ntej thiab rov qab, dhau Lub Sijhawm, Hnub, Xyoo, Kub thiab tom qab ntawd teeb tsa lub sijhawm.

Kauj Ruam 3: Kauj Ruam 3: Crap Case

"thau khoom =" tub nkeeg "kuv tuaj yeem hais, nws yog qhov me ntsis tab sis kuv nyiam nrog nws. Qhov hloov tshiab ntawm PCB tsim tsis muaj cov xov hlau zoo nkauj;-) Cov uas kuv ua tiav yog ua raws kuv cov laug cam.

Xav tias dawb los rhuav nws sib nrug, remix nws thiab siv ib feem twg uas koj pom muaj txiaj ntsig. Kuv tau txais kev pab los ntawm cov neeg los ntawm YouTube zej zog rau tag nrho qhov ntev ntawm txoj haujlwm no yog li nws yog txhua tus neeg thaum kawg.

Pom zoo: