Cov txheej txheem:

Arduino 7 Segment Clock: 4 Kauj Ruam
Arduino 7 Segment Clock: 4 Kauj Ruam

Video: Arduino 7 Segment Clock: 4 Kauj Ruam

Video: Arduino 7 Segment Clock: 4 Kauj Ruam
Video: 4 Digit 7 segment display using Arduino 2024, Kaum ib hlis
Anonim
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos
Arduino 7 Segment Moos

Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua Arduino 7 ntu ntu.

txawm tias qhov tseeb nqus!

yog li kuv tsuas yog ua qhov no rau lub cajmeem thiab kev lom zem.

yog tias koj xav ua lub moos loj koj tuaj yeem siv rtc module uas yuav khaws cov ntaub ntawv teev tseg.

koj tuaj yeem siv premade 4 xya-ntu tso saib yog tias koj tsis xis nyob nrog txoj hlua yooj yim uas tuaj yeem txo qis txoj hauv kev xoob kev sib txuas thiab tso tawm tsis raug.

ib lub laub khawm yog kom nce teev thiab lwm tus yog kom nce feeb los ntawm ib qho.

Khoom siv

Cov qhob cij

Arduino (kuv nano)

4 xya-ntu tso saib

2 laub khawm

2 ua led

4 ib-Kohm resistor

ib qho tam sim no txwv resistor (220ohm)

qee qhov txuas xov hlau

Kauj Ruam 1: Multiplexing 4 Xya-ntu Zaub

Multiplexing 4 Xya-ntu Zaub
Multiplexing 4 Xya-ntu Zaub
Multiplexing 4 Xya-ntu Zaub
Multiplexing 4 Xya-ntu Zaub

txuas txhua tus pin sib xws ntawm txhua 7-seg rau ib leeg kom sib npaug ntawm cov zaub hauv qhov kev txiav txim muab hauv cov duab saum toj no.

Kauj Ruam 2: Txuas 7 Segment Display rau Arduino

Image
Image

Txuas txhua lub davhlau ya nyob twg ntawm 7-ntu tso saib rau tus lej digital ntawm Arduino raws li cov phiaj xwm no.

Ib tus lej pin 2

B - tus pin 3

C -tus lej pin 4

D -tus pin 5

E - tus pin 6

F -tus pin 7

G -tus pin 8

DP -tus lej pin 9.

Txuas txhua tus pin rau digital pin ntawm Arduino los ntawm 1K ohm resistor

D1 - tus lej pin 10

D2 - tus lej pin 11

D3 -digital tus pin 12

D4 - tus pin 13

Kauj Ruam 3: Txuas Ob Sab Coj thiab Kho Khawm

Code
Code

Hauv av ib lub dav hlau ntawm laub-khawm thiab cathode ntawm LED.

Txuas lub davhlau ya nyob twg mus rau A0 thiab A1 feem.

LED anode rau A3.

Kauj ruam 4: Code

Rub tawm 7 ntu tso saib lub tsev qiv ntawv ua ntej los ntawm qhov txuas hauv qab no los ntawm Github thiab rho tawm nws mus rau hauv Arduino ide cov tsev qiv ntawv nplaub tshev

xya-ntu tsev qiv ntawv

upload code rau koj Arduino

koj tuaj yeem hloov txoj cai raws li koj tus kheej.

Pom zoo: