Cov txheej txheem:

Yuav Ua Li Cas Ua Arduino Digital Clock: 5 Kauj Ruam
Yuav Ua Li Cas Ua Arduino Digital Clock: 5 Kauj Ruam

Video: Yuav Ua Li Cas Ua Arduino Digital Clock: 5 Kauj Ruam

Video: Yuav Ua Li Cas Ua Arduino Digital Clock: 5 Kauj Ruam
Video: How I Made this Electric Car that can go Anywhere 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yuav Ua Li Cas Ua Arduino Digital Clock
Yuav Ua Li Cas Ua Arduino Digital Clock

Cov moos digital yog ib qho kev tsim muaj txiaj ntsig zoo hauv kev tshawb fawb.

Koj puas tau xav tsis thoob "Yuav ua li cas los ua koj tus kheej lub moos digital, ib yam li hauv cov yeeb yaj kiab!" ????

Zoo kuv kuj tau siv, kuv thaum yau hauv npau suav los tsim kuv tus kheej lub moos digital.. yog li kuv tsim ib qho rau kuv tus kheej …

Thiab kuv yuav qhia koj, Yuav ua li cas koj tuaj yeem tsim lub moos digital zoo nrog qhov yooj yim me me thiab cov khoom me me txhua yam los ntawm koj tus kheej….

Kuv tau siv 4 7 ntu ntu sib xyaw anode zaub los tso saib cov lej, 3 SPDT hloov pauv, uas kuv tau sib nrug los ntawm tus nas qub, qee qhov xov hlau thiab arduino. peb tuaj yeem teeb tsa lub sijhawm tuav tus yuam sij hloov pauv thiab nias lub feeb lossis teev kom hloov lub feeb lossis teev rau qhov peb xav tau..!

Yog li Cia peb pib …!

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Ntawm no Cov Cheeb Tsam uas koj yuav Xav Tau:

1. Ib Arduino uno.

2. 4 7 ntu ntu qhia txog anode (yog tias koj muaj 4 tus lej xya ntu, tsis txhob txhawj xeeb txog kev sib txuas ib yam rau ob qho tib si).

koj tuaj yeem yuav lawv los ntawm snapdeal, lawv zoo heev! kuv xav kom lawv los ntawm lub xaib.

3. 3 spdt Hloov (uas kuv scavenged ntawm tus qub nas).

4. qee cov xov hlau thiab cov xov hlau jumper (ib tus twg yuav ua!).

5. Ib lub khob cij.

6. 4 1kohm resistors.

Kauj Ruam 2: Xaim Cov Lus Qhia hauv Breadboard

Xaim Cov Lus Qhia hauv Breadboard!
Xaim Cov Lus Qhia hauv Breadboard!
Xaim Cov Lus Qhia hauv Breadboard!
Xaim Cov Lus Qhia hauv Breadboard!

Ua qhov sib txuas raws li qhia hauv daim duab saum toj no.. nws yooj yim heev.!

Saib xyuas kev sib txuas, vim tias muaj ntau cov xov hlau uas koj yuav ua rau tsis meej pem.

Remmenber Txhua a, b, c, d, e, f, g, dot ntu ntawm 4 cov lus sib txuas ua ke…. thiab com ntawm txhua cov khoom piv txwv li 3 thiab 8 tau txuas nrog ua ke nrog cov neeg tawm tsam …

Tsis txhob txhawj !!, maj mam maj mam, thiab ua siab ntev, koj tuaj yeem ua tau.

Kauj Ruam 3: Ntxiv cov Resistors thiab Cov Yuam Sij

Ntxiv cov Resistors thiab Cov Yuam Sij
Ntxiv cov Resistors thiab Cov Yuam Sij
Ntxiv cov resistors thiab cov yuam sij
Ntxiv cov resistors thiab cov yuam sij

Txuas 1kohm resistor nrog txhua com ntawm cov lus … raws li qhia hauv daim duab..!

Ntxiv cov Spdt hloov lossis yog tias koj tau thawb ntawm cov nyees khawm uas yuav zoo heev!…

Kauj ruam 4: Txuas mus rau Arduino

Txuas mus rau Arduino
Txuas mus rau Arduino
Txuas mus rau Arduino
Txuas mus rau Arduino

Tam sim no cov kev sib txuas tau ua tiav rau cov zaub thiab cov hloov pauv… tam sim no lub sijhawm yog los txuas lawv rau lub hlwb..

nws yog ib qho yooj yim..

Rau ntu pins!

a pin 2

b pin 3

c pin 4

d pin 5

e pin 6

f pin 7

g pin 8

dot pin 9

Rau cov zaub pins

zaub 1 rau tus pin 10

tso saib 2 rau tus pin 11

zaub 3 rau tus pin 12

dispaly 4 rau tus pin 13

tam sim no rau cov yuam sij

qhov tseem ceeb 1 uas yog cov hloov kho…

qhov tseem ceeb 2 thiab qhov tseem ceeb 3 yog teev hloov pauv thiab hloov pauv feeb.

peb yuav tsum tuav lub kho qhov tseem ceeb 1 thiab nias lub siab xav hloov lub teev lossis feeb..!

saib daim duab saum toj no rau kev txuas rau cov yuam sij.. peb tau siv cov pins analog thiab siv lawv ua cov lej nkag digital … yog qhov tseeb peb tuaj yeem siv lawv li digital i/o pins ib yam nkaus..

Kauj Ruam 5: Ntxiv Txoj Cai !!

Ntxiv Txoj Cai !!!!
Ntxiv Txoj Cai !!!!

Tam sim no qhov txias tshaj plaws… sau thiab ntxiv cov cai rau arduino….

Kuv tau txuas cov cai thiab cov ntaub ntawv lub tsev qiv ntawv lub sijhawm.. rau suav lub sijhawm thiab nthuav tawm nws….

Hauv cov cai teev teev () ua haujlwm qhia peb teev, thiab feeb () ua haujlwm feeb, txij li lub sijhawm peb tau hloov pauv ntawm lub rooj tsavxwm. lub sijhawm ploj tuag thaum lub zog rau lub rooj tsavxwm raug txiav.. thiab nws pib dua txij li 00:00 txhua lub sijhawm…

Tsis tas li kuv tau txuas nrog 12 teev txheej txheem code ib yam nkaus. Nws tsuas yog siv hourFormat12 () ua haujlwm kom tau txais 12 teev hom ntawv.

Los ntawm lub neej ntawd Lub Sijhawm qiv ntawv rov qab los 24 teev sijhawm.

Nco tseg:

Thov ntxiv Daim Ntawv Teev Sijhawm hauv Time.zip, hauv koj phau ntawv Arduino cov tsev qiv ntawv

piv txwv li hauv kuv qhov system:

C: / Program Files (x86) Arduino / libraries

Puas xav hloov pauv cov cai rau koj cov kev xav tau …

Muaj kev lom zem ua nws…

ceeb toom: Kuv tau hloov kho cov ntaub ntawv Time.zip raws li nws tau tsis pom zoo hauv cov kho tshiab ntawm Arduino IDE.

Pom zoo: