Cov txheej txheem:

Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]: 3 Kauj Ruam
Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]: 3 Kauj Ruam

Video: Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]: 3 Kauj Ruam

Video: Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]: 3 Kauj Ruam
Video: ආසාවට චුට්ටයි පැගුවෙ 🙆 පොලිසිය වට කර ගත්තා #srilanka #lamborghini #topspeed #fastestcars 2024, Kaum ib hlis
Anonim
Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]
Arduino Traffic Light Project [Nrog Cov Neeg Taug Kev Hla]

Yog tias koj tab tom nrhiav qee yam yooj yim, yooj yim thiab tib lub sijhawm koj xav ua rau txhua tus nyiam nrog koj li Arduino ces txoj kev teeb pom kev zoo yog tej zaum qhov kev xaiv zoo tshaj tshwj xeeb tshaj yog thaum koj yog tus pib hauv ntiaj teb Arduino.

Peb yuav tsum xub pom yuav ua li cas thiaj ua tau yooj yim teeb pom kev zoo lub tshuab tom qab ntawd ua kom nws nthuav ntau ntxiv qhov muab cov neeg hla kev hla thiab. Cov ntawv tshaj tawm no yuav npog cov khoom xav tau, ib qib zuj zus thiab cov cai kawg uas yuav tsum tau muab tso rau ntawm Ardunio kom ua txhua yam haujlwm.

Yog li cia pib!

Kauj Ruam 1: Cov Khoom Yuav Tsum Tau

Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau
Yam Khoom Yuav Tsum Tau

Yog tias pom zoo kom koj siv cov npe hauv qab no tsuas yog rau txoj haujlwm no kom ua tiav.

Arduino:

1 x 10k-ohm resistor:

1 x hloov khawm:

6 x 220-ohm resistors:

Daim ntawv qhia zaub mov:

Txuas cov xov hlau:

Liab, daj thiab ntsuab LEDs:

Kauj Ruam 2: Lub Teeb Pom Kev Zoo Ua Haujlwm Li Cas?

Hauv txoj haujlwm no peb yuav simulating cov teeb pom kev zoo ib yam hauv lub neej tiag. Liab LED yuav hloov ON rau 15 vib nas this tom qab daj thiab Ntsuab. Tom qab ntawd Ntsuab yuav tig tawm thiab daj yuav hloov ON rau ob peb feeb tom qab RED dua thiab lub voj voog mus.

Tam sim no yog tias peb suav nrog tus neeg taug kev hla tus yam ntxwv, teeb liab teeb yuav tsum ua haujlwm rau RED LED thaum twg ib tus neeg thawb khawm hla zoo li hauv lub neej tiag tiag. Yog li tsis txhob hloov lub teeb txhua 15 vib nas this, lub teeb yuav hloov tsuas yog thaum lub pob qhib.

Tam sim no cia kawm paub yuav ua li cas tso txhua yam ua ke

Kauj Ruam 3: Cov Kauj Ruam Ua Raws

Cov kauj ruam ua raws
Cov kauj ruam ua raws
Cov kauj ruam ua raws
Cov kauj ruam ua raws

1. Ua ntej cia ua lub Circuit Court rau cov teeb pom kev zoo ib yam yam tsis muaj neeg hla kev hla kev. Nco ntsoov ua raws daim duab qhia chaw raws caij nyoog txij li qhov program tau tsim raws li.

2. Tam sim no koj tau txais thawj ib nrab ntawm qhov chaw, cia peb ntxiv tus neeg hla kev hla nrog qhov ntxiv me ntsis ntxiv rau daim duab qhia chaw uas twb muaj lawm.

3. Ua tus lej Arduino uas tau tsim rau txoj haujlwm no. Koj tuaj yeem pom cov cai hauv qhov txuas no:

4. Bingo! koj txhua tus tau teeb tsa los ntsuas koj lub teeb pom kev nrog cov neeg taug kev hla.

Pom zoo: