Cov txheej txheem:

7 Segment Display Array: 6 Cov Kauj Ruam (nrog Duab)
7 Segment Display Array: 6 Cov Kauj Ruam (nrog Duab)

Video: 7 Segment Display Array: 6 Cov Kauj Ruam (nrog Duab)

Video: 7 Segment Display Array: 6 Cov Kauj Ruam (nrog Duab)
Video: What's The Longest Word You Can Write With Seven-Segment Displays? 2024, Kaum ib hlis
Anonim
7 Segment Display Array
7 Segment Display Array

Kuv tau tsim cov khoom coj ua los ntawm 144 7 ntu ntu qhia tswj los ntawm arduino nano. The segments are controlled by 18 MAX7219 ic's which can control up to 64 individual leds or 8 7 ntu lus qhia. Cov kab ntawv muaj 144 cov lus qhia ua rau txhua tus ntawm 8 tus neeg leds yog li cov array muaj tag nrho ntawm 1152 leds koj tuaj yeem tswj tau.

Kauj Ruam 1: Tau Koj Cov Cheeb Tsam

1 x Arduino Nano

1 x PCB

144 x Common Cathode 7 ntu 1 tus lej qhia

18 x MAX7219

18 x 10uf Capacitor (0603)

18 x 100nf Capacitor (0603)

19 x 12k Resistor (0603)

1 x Poj niam Micro usb

42 x Poj niam lub taub hau

1 x Me RTC (yeem)

1 x 2A Powersupply

Kauj Ruam 2: Txiav Koj Li PCB

Ntawm no koj tuaj yeem rub tawm Gerber cov ntaub ntawv rau PCB ntawm cov zaub. Tshaj tawm lawv los ntawm https://jlcpcb.com/quote#/ lossis lwm lub khw tsim khoom kom xaj lawv.

Kauj Ruam 3: Muab Tshuaj Txhuam Txhuam

Solder cov Cheebtsam
Solder cov Cheebtsam

Muab tag nrho cov khoom tso rau hauv PCB raws li qhia hauv kab lus. Yog tias koj muaj kev paub me me lossis tsis muaj kev paub hauv SMD soldering Kuv xav kom koj saib cov lus qhia no ntawm SMD soldering ua ntej.

Yog tias koj yuav siv cov zaub los ua lub moos txuas lub taub hau ntawm Tiny RTC ntawm sab ntawm lub roj teeb.

Kauj Ruam 4: Zaub Raws Li Lub Sijhawm

Zaub Raws Li Lub Sijhawm
Zaub Raws Li Lub Sijhawm

Thaum koj ua tiav qhov muag tag nrho cov khoom rub tawm cov cai thiab xa nws mus rau arduino ua ntej muab tso rau hauv cov zaub. Yog tias koj xav tso saib qee yam kev cai tau saib ntawm Kauj Ruam 5.

Kauj Ruam 5: Ua Txoj Cai Cai

Ua Txoj Cai Cai
Ua Txoj Cai Cai
Ua Txoj Cai Cai
Ua Txoj Cai Cai

Yog tias koj xav qhia qee yam kev cai koj yuav tsum tau sau nws los ntawm txhais tes. Hauv qhov piv txwv tus lej sib txawv ntu aka pixels tau qhia hauv bytes nrog txhua qhov me me ib ntu: 0bDP-A-B-C-D-E-F-G xws li 0b01011011 yuav qhia 5.

Tus qauv piv txwv muaj 3 txoj hauv kev sib txawv los qhia cov pixels. Thawj txoj hauv kev yog siv putPixel (x, y, byte); ua haujlwm los hloov ib lub pixel ntawm cov zaub ntawm qhov chaw x, y (0, 0 yog sab saum toj sab laug 5, 23 yog sab xis hauv qab).

Qhov thib ob yog siv cov addPixel (x, y, byte); muaj nuj nqi nws ua haujlwm yuav luag zoo ib yam li putPixel () ua haujlwm tab sis hloov pauv lub pixel nws ntxiv cov pixel rau qhov qub.

Txoj kev kawg yog siv fillPixel (x1, y1, x2, y2, byte); kev ua haujlwm kom puv lub duab plaub los ntawm x1, y1 rau x2, y2 nrog tib lub pixels.

Kauj Ruam 6: Koj Ua Tiav lawm

Nrog koj zoo siab ua tiav! Tam sim no koj tuaj yeem tsim cov phiaj xwm raws li koj nyiam nws. Thiab yog tias koj ua cov zaub tsis txhob hnov qab qhia nws:)

Pom zoo: