Cov txheej txheem:

12-Teev Sij Hawm Digital Siv Arduino: 3 Kauj Ruam
12-Teev Sij Hawm Digital Siv Arduino: 3 Kauj Ruam

Video: 12-Teev Sij Hawm Digital Siv Arduino: 3 Kauj Ruam

Video: 12-Teev Sij Hawm Digital Siv Arduino: 3 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
12-Teev Sij Hawm Digital Siv Arduino
12-Teev Sij Hawm Digital Siv Arduino

Nov yog cov phiaj xwm ua mov ci uas siv Atmel Atmega 2560 (Arduino Mega) thiab 16x2 LCD Screen los ua 12-teev digital moos tsis tas yuav xav tau cov khoom siv ntxiv. Peb tseem tuaj yeem teeb tsa thiab hloov kho lub sijhawm nrog kev pab ntawm ob lub laub khawm.

Tag nrho cov Circuit Court yog siv los ntawm +5V thiab +3.3V ntawm Arduino Mega. Cov lej txuas kuj tseem tuaj yeem hloov kho rau lwm yam khoom Arduino.

Kauj ruam 1: Yuav tsum tau ua

Cov hauv qab no yuav tsum ua kom tiav txoj haujlwm no:

1- Arduino Mega lossis Arduino UNO

2- Potentiometer (piv txwv li 5K)

3- LCD 16x2

4- Ob Laub Khawm

Kauj Ruam 2: Pin-outs & thaiv

Pin-outs & Txuas
Pin-outs & Txuas

Tus Pin-outs & Kev thaiv ntawm Arduino Mega lossis Arduino UNO thiab lwm yam khoom siv txuas ntxiv nrog cov kauj ruam no thiab tseem muab cov hauv qab no:

============= Arduino => LCD

=============

+5V => VDD lossis VCC

GND => VSS

8 => TSI

GND => RW

9 => EJ

4 => D4

5 => D5

6 => D6

7 => Txd7

+3.3V => AW

GND => KA

====================

Arduino => Potentiometer

====================

+5V => 1st pin

GND => pin 3

====================

Potentiometer || Cov LCD

====================

Pin 2 => Vo

=> Koj tuaj yeem teeb qhov sib piv siv Potentiometer

====================

Arduino => Khawm Khawm 1

====================

+5V => 1st pin

10 => Pin 2

====================

Arduino => Khawm Khawm 2

====================

+5V => 1st pin

11 => Pin 2

Kauj ruam 3: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Tshaj tawm cov cai rau Arduino Mega lossis Arduino UNO. Tom qab xa cov cai mus rau Arduino, koj yuav tau txais koj li ntawm 12-teev Digital Clock ntawm 16x2 LCD Screen txuas nrog Arduino. Cov ntaub ntawv Arduino.ino kuj tau txuas nrog cov kauj ruam no.

Tom qab ntawd, koj yuav tsum teeb tsa lub sijhawm siv ob lub khawm Push txuas nrog Arduino.

Pom zoo: