Cov txheej txheem:

Arduino Traffic Light Controller Siv RBG Led - 4-Txoj Kev: 3 Kauj Ruam
Arduino Traffic Light Controller Siv RBG Led - 4-Txoj Kev: 3 Kauj Ruam

Video: Arduino Traffic Light Controller Siv RBG Led - 4-Txoj Kev: 3 Kauj Ruam

Video: Arduino Traffic Light Controller Siv RBG Led - 4-Txoj Kev: 3 Kauj Ruam
Video: Online Programmable Arduino Individually Addressable LED strip 2024, Lub Xya hli ntuj
Anonim
Arduino Traffic Light Controller Siv RBG Led | 4-Txoj Kev
Arduino Traffic Light Controller Siv RBG Led | 4-Txoj Kev

Hauv kab ntawv no, koj yuav kawm paub yuav ua li cas thiaj ua tau Arduino teeb pom kev zoo tswj. Tus tswj lub teeb tsheb no yuav siv los tswj kev khiav tsheb. Cov no tuaj yeem siv rau thaj chaw muaj tsheb loj kom tsis txhob muaj tsheb sib tsoo lossis raug xwm txheej.

Txoj haujlwm no ua tiav los muab tswv yim rau koj tias kev tswj lub teeb pom kev zoo ua haujlwm li cas. Qhov no tsis yog lub sijhawm tswj lub teeb pom kev zoo. Yog li thaum pib, lub teeb liab ntawm lub teeb liab 1 thiab lub teeb liab ntawm lwm lub cim yuav ci kom muab sijhawm rau lub tsheb ntawm lub teeb liab 1 kom dhau. Tom qab 5 vib nas this, lub teeb daj ntawm lub teeb liab 1 yuav taws kom pom qhov pom tias lub teeb liab ntawm lub teeb liab 1 tab tom yuav los txog thiab tseem yuav qhia qhov qhia rau lub tsheb ntawm lub teeb liab 2 tias lub teeb ntsuab yuav txog lub teeb. Yog li tom qab 2 vib nas this, lub teeb liab ntawm lub teeb liab 1 yuav tuaj thiab lub teeb ntsuab ntawm lub teeb liab yuav los txhais lub tsheb ntawm lub teeb liab 1 yuav tsum nres thiab tsheb ntawm lub teeb liab 2 tuaj yeem txav mus. Ib yam li ntawd, lub teeb pom kev khiav tsheb yuav ua haujlwm rau teeb liab 3, teeb liab 4 thiab lub kaw lus yuav txuas ntxiv mus.

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
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

1. Arduino Uno

2. RGB coj*4

3. Cov qhob cij

4. Resistor*12 (220 ohms)

Kauj Ruam 2: Daim Duab Circuit:

Daim duab kos duab
Daim duab kos duab

Muaj tag nrho 4 RGB LEDs siv hauv txoj haujlwm no. Txhua lub teeb liab muaj 1 RGB coj (Liab, Xiav thiab Ntsuab) txuas nrog nws los ntawm 220-ohm resistors. Siv cov xim sib xyaw ua ke Kuv tau ua xim daj rau lub teeb liab.

Cov resistors tau siv los txwv qhov tam sim no uas yuav dhau los ntawm LEDs. Yog tias koj yuav tsis siv cov tshuaj tiv thaiv ces cov LEDs yuav kub hnyiab vim ntau dhau.

Kauj ruam 3: Code:

Txoj Cai
Txoj Cai

Txog kev qiv nyiaj, thov ua raws li kuv tus lej hauv qab no. Ua tsaug

Yog xav paub ntau cov phiaj xwm txuas nrog kuv ntawm:

Youtube: https://www.youtube.com/channel/UCTS10_CRYJhT-vb9 …

Facebook nplooj ntawv:

Instagram:

Pom zoo: