Cov txheej txheem:

Arduino Traffic Light: 8 Kauj Ruam (nrog Duab)
Arduino Traffic Light: 8 Kauj Ruam (nrog Duab)

Video: Arduino Traffic Light: 8 Kauj Ruam (nrog Duab)

Video: Arduino Traffic Light: 8 Kauj Ruam (nrog Duab)
Video: How to make Arduino Traffic Lights | Traffic signal | Fair Electro 2024, Kaum ib hlis
Anonim
Image
Image

Txoj haujlwm no tau ua nrog 5mm LEDs thiab Led Mounting Hardware T1-3/4 Clear Standard kom pom tau zoo dua, thiab yog li siv 3 LEDs los qhia cais nws cov xim Liab, Daj & Ntsuab raws li.

Kauj Ruam 1: Nqi Khoom

Schematic
Schematic

Koj yuav xav tau dab tsi:

15 hli Liab LED

15 hli Yelow LED

15 hli Ntsuab LED

3 Led Mounting Hardware T1-3/4 Clear Standard

1 Arduino Nano

1 Lub thawv yas ntawm 3.2 "X 1.6" x 0.8"

1 USB-A rau USB-mini Cable

Soldering hlau

Dov yob

Laum teb

Laum cov khoom ntawm 1/4 "& 1/2"

Kauj ruam 2: Schematic

Saib cov phiaj xwm kom koj tuaj yeem ua haujlwm zoo. Txheeb xyuas tias koj yuav tsum txuas Liab LED rau tus pin 2, Daj LED rau tus pin 7 thiab LED ntsuab rau tus pin 12 los ntawm Arduino nano feem thaum sib txuas ib leeg cathodes ntawm LEDs thiab kev sib txuas sib xws ntawm cov mus rau GND.

Kauj Ruam 3: Pib Txoj Haujlwm

Pib Txoj Haujlwm
Pib Txoj Haujlwm
Pib Txoj Haujlwm
Pib Txoj Haujlwm
Pib Txoj Haujlwm
Pib Txoj Haujlwm

Siv lub laum me ntsis ntawm 1/4 "kom koj tuaj yeem tsim lub vaj huam sib luag pem hauv ntej ntawm koj txoj haujlwm los ntawm kev ua peb qhov. Koj tseem yuav tau siv lub laum me ntsis ntawm 1/2" los ua lub qhov uas hla dhau USB-A rau USB-mini cable.

Kauj Ruam 4: Txhim Kho LED Mounting Hardwares

Txhim kho LED Mounting Hardwares
Txhim kho LED Mounting Hardwares
Txhim kho LED Mounting Hardwares
Txhim kho LED Mounting Hardwares

Mount lub LED Mounting Hardwares los ntawm kev tso lawv rau hauv 1/4 qhov ua yav dhau los.

Kauj Ruam 5: Txhim Kho Cov LEDs

Txhim kho cov LEDs
Txhim kho cov LEDs
Txhim kho cov LEDs
Txhim kho cov LEDs
Txhim kho cov LEDs
Txhim kho cov LEDs

Ntxig cov LEDs rau hauv LED Mounting Hardwares, thiab txuas cov cathodes ib leeg ntawm LEDs.

Kauj Ruam 6: Tso Arduino Nano

Tso Arduino Nano
Tso Arduino Nano
Tso Arduino Nano
Tso Arduino Nano
Tso Arduino Nano
Tso Arduino Nano

Muab Arduino nano tso rau hauv koj lub thawv thiab ntsaws rau hauv USB-min txuas. Tom ntej no, ntxig rau hauv nws cov kab txuas ntxiv ntawm LEDs. Tam sim no, nws yog lub sijhawm zoo kom koj tuaj yeem xa cov cai los ntawm www.pastebin.com lub vev xaib. Tom qab ntawd mus rau:

Kauj Ruam 7: Koom nrog LEDs nrog Arduino Nano

Koom nrog LEDs nrog Arduino Nano
Koom nrog LEDs nrog Arduino Nano
Koom nrog LEDs nrog Arduino Nano
Koom nrog LEDs nrog Arduino Nano
Koom nrog LEDs nrog Arduino Nano
Koom nrog LEDs nrog Arduino Nano

Muab cov xov hlau tso rau yav dhau los tso rau hauv Arduino nano thiab txiav qhov tshaj.

Kauj Ruam 8: Txaus Siab Rau Koj Qhov Project

Txaus siab rau koj qhov Project
Txaus siab rau koj qhov Project
Txaus siab rau koj qhov Project
Txaus siab rau koj qhov Project
Txaus siab rau koj qhov Project
Txaus siab rau koj qhov Project

Kaw koj lub thawv yas los ntawm kev siv cov ntsia hlau suav nrog hauv lub thawv ntawv thiab txuas mus ntsaws rau hauv lub khoos phis tawj.

Pom zoo: