Cov txheej txheem:

P10 DMD Zaub Nrog Arduino thiab RTC DS3231: 4 Cov Kauj Ruam (nrog Duab)
P10 DMD Zaub Nrog Arduino thiab RTC DS3231: 4 Cov Kauj Ruam (nrog Duab)

Video: P10 DMD Zaub Nrog Arduino thiab RTC DS3231: 4 Cov Kauj Ruam (nrog Duab)

Video: P10 DMD Zaub Nrog Arduino thiab RTC DS3231: 4 Cov Kauj Ruam (nrog Duab)
Video: Hmong Christian - Special Song for Victory Hmong Alliance Grand Opening 2024, Kaum ib hlis
Anonim
P10 DMD Zaub Nrog Arduino thiab RTC DS3231
P10 DMD Zaub Nrog Arduino thiab RTC DS3231

P10 cov lus qhia yog ib qho ntawm cov teev matrix LEDs. P10 coj yog feem ntau hu ua Dot Matrix Display lossis DMD zaub. Nws yog ua raws cov npe hloov pauv, feem ntau 74595 cov npe hloov pauv tau siv. Lawv tuaj yeem raug rho tawm nrog ntau tus lej ntawm cov laug cam zoo sib xws. Muaj ntau qhov ntau thiab tsawg thiab xim LED, peb yuav siv ntawm no 32*16 yam. Peb tuaj yeem tso saib cov ntawv ntxig tau, cov ntawv zoo nkauj nrog ntau qhov ntau thiab tsawg. Qhov zoo tshaj plaws txog lawv yog qhov lawv tuaj yeem cuam tshuam nrog txhua tus qauv microcontroller yam tsis tas yuav muaj cov txheej txheem tshwj xeeb kev sib txuas lus.we yuav siv arduino los siv nws. Peb yuav siv nws los tsim cov ntawv nrog rau lub sijhawm tam sim no thiab hnub tim.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

1. P10 zaub nrog 16 Tus Pin FRC txuas kab hlau txuas

2. arduino (uno/mega/nano/pro mini)

3 tx3231

4. txiv neej thiab poj niam lub taub hau

5. veroboard thiab cov khoom siv sib txuas

6. jumpers (tsuas yog xav tau rau kev sim thawj zaug)

7. 5v 1A fais fab mov

Kauj Ruam 2: Nkag Siab Circuit thiab Txheej Txheem

To taub Circuit Court thiab Txheej Txheem
To taub Circuit Court thiab Txheej Txheem

Nyob rau sab nraum qab ntawm P10 pawg thawj coj saib, muaj ob pawg ntawm cov chaw nres nkoj. Qhov cov ntaub ntawv nkag thiab tawm chaw nres nkoj rau cascading. DS3231 yog lub sijhawm tiag tiag (RTC). Nws yog siv los qhia hnub thiab sijhawm.

Daim duab kab hluav taws xob txuas nrog ntawm no. Tsis txhob siv 5v 1a cov khoom siv sab nrauv tam sim no. Lub zog arduino tuaj yeem tso koj lub teeb pom kev (dim lub teeb) kom txaus rau kev sim.

DS3231 siv I2C kev sib txuas lus raws tu qauv. Txuas tus CR2302 lub roj teeb rau hauv nws qhov chaw thiab txuas nws i2c tus pin nrog arduino i2c. Yog tias koj tshiab rau tus qauv no txheeb xyuas qhov txuas hauv qab no:

howtomechatronics.com/tutorials/arduino/ar…

Tam sim no ua raws daim duab hluav taws xob thiab txuas cov dhia los ntawm P10 pawg thawj coj mus rau arduino. Qhov kev sib txuas no yuav tsum tau ua kom pom tseeb ntawm qhov chaw nres nkoj nkag ntawm P10.

16 tus pin FRC txuas-1 kab xov txuas tau siv rau ob qho tib si nkag thiab tawm chaw nres nkoj uas tuaj yeem siv tau tom qab, tom qab koj tau ua tiav qhov kawg ntawm veroboard Circuit Court.

Kauj Ruam 3: Tso Cai thiab Xeem

Uploading Code thiab Xeem
Uploading Code thiab Xeem
Uploading Code thiab Xeem
Uploading Code thiab Xeem

Rub cov lej txuas hauv qab no. Nws zoo nkauj npaum li piav qhia tus kheej. Cov tsev qiv ntawv txuas tau muab ntawm no.

github.com/freetronics/DMD

www.arduinolibraries.info/libraries/dmd2

Kuv yuav qhia koj kom nruab ob qho, vim ob qho tib si muaj ntau yam tshwj xeeb.

Koj tuaj yeem xa ib qho ntawm cov lej txuas ntawm no. Tsis tas li koj tuaj yeem xav siv ib qho piv txwv piv txwv uas tsim los.

Sau nws los qhia koj tus kheej cov ntawv thiab xav tau teeb tsa font. Tso nws.

Koj yuav tsum pom qhov koj xav tau tso tawm ntawm qhov screen

Kauj Ruam 4: Ua tiav

Image
Image
Kawg
Kawg
Kawg
Kawg

Yog tias txhua yam ua haujlwm tau zoo ces muab txhua yam tso rau ntawm veroboard thiab muab tshuaj txhuam rau lawv. Siv poj niam lub taub hau los tso rau arduino thiab ds3231, yog li koj tuaj yeem ntsaws tawm rov siv nws yav tom ntej rau lwm lub hom phiaj.

Tom qab ntawd siv txiv neej lub taub hau los ua tus txuas rau FRC ribbon cable ntawm p10 zaub (chaw nres nkoj nkag). Tam sim no sim nrog txuas ntxiv ntawm multimeter yog tias txhua qhov kev sib txuas tau ua kom raug. Yog tias tam sim no rov txuas lub zog nrog usb kom pom tias nws qhia cov ntawv yuav tsum tau yog tias ok ces tshem tawm usb thiab tam sim no txuas sab nraud 5v 1a fais fab mov rau nws. Tam sim no nws yuav tsum ci ntsa iab. Yog li zoo siab nrog koj tam sim no zoo mus nrog koj cov zaub thiab muab tso rau qhov chaw deb kom pom nws.

Pom zoo: