Cov txheej txheem:

7 Segment Display With Arduino: 3 Cov Kauj Ruam
7 Segment Display With Arduino: 3 Cov Kauj Ruam

Video: 7 Segment Display With Arduino: 3 Cov Kauj Ruam

Video: 7 Segment Display With Arduino: 3 Cov Kauj Ruam
Video: SEGMENT DISPLAY ARDUINO tutorial | seven SEGMENT DISPLAY ARDUINO UNO [code and circuit diagram] 2024, Hlis ntuj nqeg
Anonim
Image
Image

Koj yuav pom cov cai thiab daim duab kos rau ob qho tib si cathode thiab ib qho anode xya ntu ntu qhia hauv kab lus no.

7 ntu qhia tsis zoo li niaj hnub no txaus rau koj, tab sis lawv yog txoj hauv kev zoo tshaj plaws los tso saib cov lej. Lawv siv tau yooj yim, siv tus nqi tau zoo thiab nyeem tau zoo, ob qho tib si hauv qhov tsis pom kev zoo thiab nyob hauv tshav ntuj.

Hauv qhov haujlwm no, peb yuav tso saib tus lej los ntawm 0 txog 9 vim nws yog ib qho 7 ntu qhia peb tuaj yeem tso saib ib tus lej xwb.

Cov Cheeb Tsam Yuav Tsum Tau

  1. Arduino -
  2. 7 ntu tso saib -
  3. Breadboard -
  4. jumper xov hlau -
  5. 8 X resistors ntawm 220 ohms -

Kev tiv thaiv yog qhov tseem ceeb los thov txwv tsis pub cov zaub tuaj yeem hlawv tom qab ob peb feeb.

Kauj Ruam 1: Circuit Schematic ntawm Common Cathode

Circuit Schematic ntawm Hom Cathode
Circuit Schematic ntawm Hom Cathode

Pin 12 - -> TERMINAL OF 7 SEG

Pin 11 - -> b TERMINAL OF 7 SEG

Pin 10 - -> dp TERMINAL OF 7 SEG

Pin 9 - -> c TERMINAL OF 7 SEG

Pin 8 - -> d TERMINAL OF 7 SEG

Pin 7 - -> e TERMINAL OF 7 SEG

Pin 6 - -> g TERMINAL OF 7 SEG

Pin 5 - -> f TERMINAL OF 7 SEG

GND - -> - TERMINAL OF 7 SEG

Kauj Ruam 2: Circuit Schematic ntawm Hom Anode

Circuit Schematic ntawm Hom Anode
Circuit Schematic ntawm Hom Anode

Pin 12 - -> TERMINAL OF 7 SEG

Pin 11 - -> b TERMINAL OF 7 SEG

Pin 10 - -> dp TERMINAL OF 7 SEG

Pin 9 - -> c TERMINAL OF 7 SEG

Pin 8 - -> d TERMINAL OF 7 SEG

Pin 7 - -> e TERMINAL OF 7 SEG

Pin 6 - -> g TERMINAL OF 7 SEG

Pin 5 - -> f TERMINAL OF 7 SEG

5V - -> - TERMINAL OF 7 SEG

Kauj Ruam 3: Arduino Code

Cov cai rau cov anode sib txawv yog qhov sib txawv ntawm cov cathode 7 ntu ntu

Pom zoo: