Cov txheej txheem:

Arduino Scoreboard Lights: 3 Kauj Ruam
Arduino Scoreboard Lights: 3 Kauj Ruam

Video: Arduino Scoreboard Lights: 3 Kauj Ruam

Video: Arduino Scoreboard Lights: 3 Kauj Ruam
Video: Mind-boggling arduino UNO project. You need to do it yourself! #arduino #electronics 2024, Hlis ntuj nqeg
Anonim
Arduino Scoreboard Teeb
Arduino Scoreboard Teeb

Nov yog ib qhov haujlwm uas kuv tau ua rau ntu ntawm cov ntawv ntaus nrig. Kuv xav tau ib yam dab tsi uas beeped thiab taws teeb. Kuv pom sai sai tias koj tuaj yeem siv cov txuj ci no rau ntau yam kis las sib txawv thiab tsis yog laj kab nkaus xwb. Qhov project ua dab tsi tiag, yog teeb 2 LEDs thiab beep rau 2 vib nas this. Cov xim nyob ntawm seb khawm twg koj thawb rau ntawm IR chaw taws teeb.

Khoom siv

Nov yog cov npe ntawm qhov sib txawv thaum ua qhov haujlwm no:

  • Arduino Nano lossis Arduino Uno (Kuv siv Nano kom txuag chaw tab sis koj tuaj yeem siv Uno ib yam nkaus.)
  • 8 LEDs
  • 8 220Ω resistors
  • Jumper xov hlau
  • IR tus txais + chaw taws teeb
  • Active Buzzer (Tsis teb los tau)
  • Daim ntawv loj loj

Kauj Ruam 1: Muab Cov Khoom Siv

Muab cov Cheebtsam
Muab cov Cheebtsam

Ua ntej, tso cov LEDs nyob rau ob qho tom ntej no ib sab hla lub khob cij (Zoo li hauv daim duab). Xyuas kom tseeb tias koj cov pins zoo nyob rau sab saud ntawm lub khob cij. Tom qab ntawd ntxiv koj 220Ω resistors uas nqa los ntawm qhov tsis zoo ntawm LEDs mus rau qhov tsis zoo sawb ntawm lub khob cij. (Saib hauv daim duab) Tom qab qhov chaw IR sensor nyob qhov twg ntawm koj lub khob cij. Thaum kawg, nrhiav qhov chaw zoo nrog ntau qhov chaw nyob ib puag ncig nws kom tso koj lub suab nrov.

Kauj Ruam 2: Txuas Nws

Hlau Nws!
Hlau Nws!
Hlau Nws!
Hlau Nws!
Hlau Nws!
Hlau Nws!
Hlau Nws!
Hlau Nws!

Tam sim no kuv yuav teev cov pawg sib txawv ntawm qhov chaw tso xov hlau. Koj kuj tuaj yeem saib hauv daim duab yog tias koj xav ua qhov ntawd.

  • Hlau cov kab zoo thiab tsis zoo rau ntawm daim phiaj los ntawm koj Arduino.
  • Hlau tus pin zoo ntawm txhua lub LEDs los ntawm qhov chaw ntawm lub khob cij.
  • Qhov no tsis meej pem los piav qhia, tab sis sire ob xim thiab txuas rau lawv, yog li koj muaj ib qho xim tso tawm. (Ua qhov no rau txhua xim)
  • Tam sim no, txuas txhua qhov kev sib txuas xim mus rau chaw nres nkoj digital ntawm Arduino.
  • Hlau tus pin zoo ntawm lub buzzer rau lub chaw nres nkoj digital ntawm Arduino thiab tus pin tsis zoo rau qhov tsis zoo sawb.
  • Hlau koj lub IR sensor mus rau qhov chaw nres nkoj digital

Tam sim no koj ua tiav!

Tsis tas li, yog tias koj xav tau koj tuaj yeem siv tinkercad koj tuaj yeem txuas xov tooj rau koj txoj haujlwm!

Kauj ruam 3: Programming

Kuv txuas cov ntaub ntawv.ino rau Arduino IDE. Muaj cov lus sau hauv txoj cai piav qhia nws ua haujlwm li cas.

Tsis tas li thaum koj ua tiav nco ntsoov txheeb xyuas kuv lub vev xaib ntawm no!

Pom zoo: