Cov txheej txheem:

DIY Qhia Qhov Kub ntawm LCD Screen Siv Arduino: 10 Kauj Ruam
DIY Qhia Qhov Kub ntawm LCD Screen Siv Arduino: 10 Kauj Ruam

Video: DIY Qhia Qhov Kub ntawm LCD Screen Siv Arduino: 10 Kauj Ruam

Video: DIY Qhia Qhov Kub ntawm LCD Screen Siv Arduino: 10 Kauj Ruam
Video: Casio G-Shock Mudmaster против Gulfmaster | G Shock GWG-1000 Mudmaster против G Shock GW... 2024, Kaum ib hlis
Anonim
Image
Image

Hauv txoj haujlwm no, peb tab tom ua ib qho kev siv hluav taws xob siv qee yam khoom xws li Arduino, ntsuas qhov ntsuas kub, thiab lwm yam. Hauv qhov Circuit no qhov kev kawm yuav raug saib tsis tu ncua ntawm LCD, muaj 100 milliseconds ncua ntawm qhov pom ntawm qib tshiab ntawm LCD thiab koj tuaj yeem kho lub sijhawm ntawd hauv cov cai, thiab thaum qhov ntsuas kub nce mus txog qhov tshwj xeeb lub teeb ntawm RGB LED yuav raug hloov mus rau ib qho ntawm cov xim liab, ntsuab, xiav, lub teeb xiav, ntshav lossis daj.

Kev txuas xov tooj ntawm lub Circuit Court yuav siv sijhawm kwv yees li 30 feeb, yog li nws tsis nyuaj rau ua. Thiab cov lej yuav siv sijhawm kwv yees li 10 feeb los ua kom tiav. Rau kev sim koj lub Circuit koj tuaj yeem siv tinakercad kom ntseeg tau tias lub Circuit Court uas koj tau ua yog raug. Qhov ntsuas kub yuav yog lub luag haujlwm xa qhov ntsuas kub tam sim no rau lub microcontroller, hauv qhov no, microcontroller yog Arduino, qhov ntsuas kub ntsuas pom qhov sib txawv tshwm sim thiab nws yog qib ntawm huab cua thiab nws yog analog ces nws qib ntawd mus rau qhov hluav taws xob, vim tias nws yog cov lus uas cov khoos phis tawj feem ntau nkag siab, thiab tom qab ntawd hloov pauv qhov sib piv qhov ntsuas hluav taws xob mus rau cov nkauj ib leeg vim tias microcontroller yog digital thiab huab cua yog digital yog li peb xav tau qee yam los hloov qhov teeb liab analog mus rau hauv digital los ua microcontroller muaj peev xwm nyeem nws. Lub LCD yuav yog lub luag haujlwm saib qhov ntsuas kub hauv ob qho tib si Celsius thiab Fahrenheit.

Khoom siv

Cheebtsam:

Cov qhob cij

Cov neeg dhia

Arduino Ib

5V DC qhov chaw

4x tiv

RGB LED

. • • 5V DC qhov chaw.

LCD npo 16*2

10 Kiloohms Potentiometer

LM35 ntsuas kub

Kauj Ruam 1: Npaj Txhua Yam Yuav Tsum Tau Ua

Kauj Ruam 2: Hlau Cov Pins no mus rau Cathode ntawm Breadboard. (gnd, RW thiab LED). Faj seeb: Hlau tus Pin LED uas Nyob Ntawm Ntug Nws thiab Ib Qhov Ntxiv Rau Nws, Yuav Siv Sai

Hlau Cov Pins no rau Anode ntawm Breadboard. (VCC thiab LED Pin Ib Tus Ua Ntej Kawg Pin + Resistor)
Hlau Cov Pins no rau Anode ntawm Breadboard. (VCC thiab LED Pin Ib Tus Ua Ntej Kawg Pin + Resistor)

Kauj Ruam 3: Hlau Cov Pins no mus rau Anode ntawm Breadboard. (VCC thiab LED Pin Ib Tus Ua Ntej Kawg Pin + Resistor)

Tseem ceeb: thov, ua tsis hnov qab tso lub resistor hauv * series txuas * nrog tus pin LED ntawm lub vijtsam LED kom tsis ua rau lub vijtsam LED puas.

Kauj ruam 4:

Duab
Duab

Hlau tus pin RS rau "12" tus pin ntawm Arduino. Hlau RW tus pin rau "11" tus pin ntawm Arduino. Hlau DB4 tus pin rau “5” tus pin ntawm Arduino. Hlau DB5 tus pin rau "4" tus pin ntawm Arduino. Hlau DB6 tus pin rau “3” tus pin ntawm Arduino. Hlau DB7 tus pin rau tus "2" tus pin ntawm Arduino.

Kauj ruam 5:

Duab
Duab

Hlau Liab tus pin liab ntawm RGB LED mus rau “8” tus pin ntawm Arduino. Hlau xaim tus PIN xiav ntawm RGB LED mus rau "9" tus pin ntawm Arduino.

Hlau Ntsuab tus pin ntsuab ntawm RGB LED mus rau “10” tus pin ntawm Arduino. Hlau tus cathode tus pin ntawm RGB LED rau cathode tus pin ntawm lub khob cij. Tsis txhob hnov qab muab tus tiv thaiv rau txhua tus pin ntawm RGB coj tshwj tsis yog tus pin cathode.

Kauj Ruam 6: Hlau Thawj Tus Pin ntawm Potentiometer rau Cathode ntawm Breadboard, Hlau Thib Peb Tus Pin ntawm Potentiometer mus rau Anode ntawm Breadboard thiab Hlau Thib Ob Tus Pin ntawm Potentiometer rau VD Pin ntawm LED Screen

Hlau Thawj Tus Pin ntawm Potentiometer mus rau Cathode ntawm Breadboard, Hlau Tus Thib Peb Tus Pin ntawm Potentiometer mus rau Anode ntawm Breadboard thiab Hlau Thib Ob Tus Pin ntawm Potentiometer rau VD Pin ntawm LED Screen
Hlau Thawj Tus Pin ntawm Potentiometer mus rau Cathode ntawm Breadboard, Hlau Tus Thib Peb Tus Pin ntawm Potentiometer mus rau Anode ntawm Breadboard thiab Hlau Thib Ob Tus Pin ntawm Potentiometer rau VD Pin ntawm LED Screen

Kauj Ruam 7: Hlau Txoj Cai Pin ntawm Qhov Kub Kub Sensor mus rau Cathode ntawm Breadboard, Hlau Sab laug Pin mus rau Anode ntawm Breadboard thiab Hlau Nruab Nrab Pin rau A0 ntawm Arduino

Hlau Txoj Cai Tus Pin ntawm Qhov Kub Kub Sensor mus rau Cathode ntawm Breadboard, Hlau Sab laug Pin mus rau Anode ntawm Breadboard thiab Hlau Nruab Nrab Tus Pin rau A0 ntawm Arduino
Hlau Txoj Cai Tus Pin ntawm Qhov Kub Kub Sensor mus rau Cathode ntawm Breadboard, Hlau Sab laug Pin mus rau Anode ntawm Breadboard thiab Hlau Nruab Nrab Tus Pin rau A0 ntawm Arduino

Kauj ruam 8:

Duab
Duab

Hlau 5V tus pin ntawm Arduino mus rau qhov anode ntawm lub khob cij thiab xaim GND ntawm Arduino mus rau cathode ntawm lub khob cij.

Potentiometer mus rau cathode ntawm lub khob cij, xaim tus pin thib peb ntawm Potentiometer mus rau qhov anode ntawm lub khob cij thiab xaim tus pin thib ob ntawm Potentiometer rau VD tus pin ntawm LED npo.

Pom zoo: