Cov txheej txheem:

Arduino LED Music: 6 Kauj Ruam
Arduino LED Music: 6 Kauj Ruam

Video: Arduino LED Music: 6 Kauj Ruam

Video: Arduino LED Music: 6 Kauj Ruam
Video: Amazing arduino project 2024, Kaum ib hlis
Anonim
Image
Image
Kauj Ruam 1: Npaj rau Koj Cov Khoom
Kauj Ruam 1: Npaj rau Koj Cov Khoom

Nov yog kuv qhov haujlwm Arduino. Nws yog VU 'meter', qhov twg LEDs ci rau lub suab, hauv qhov tseeb dua los hais yog lub suab paj nruag. Nws suav nrog lub suab ntsuas lub rooj tsavxwm thiab 10 qhov sib txawv xim LEDs uas piav txog lub ntsuas. Kuv kuj ntxiv Photoresistance rau kuv qhov project kom nws zoo dua. Muaj lub teeb ci xiav LED nyob rau qhov kawg ntawm daim vis dis aus no uas yog tswj los ntawm tus kheej. Qhov no yog hom sensor uas pom tias lub teeb yuav tsum qhib lossis tua.

Hauv kuv qhov vis dis aus qhia saum toj no, cov LEDs ci rau lub suab ntawm Shawn Mendes zaj nkauj "Kho koj zoo dua".

Auj, los ntawm txoj kev, VU meter yog lub ntsuas qhov ntsuas qhov ntsuas feem ntau sawv cev los ntawm rab koob thiab ntsuas ntsuas lossis nrog LEDs. Tau kawg, tom kawg zoo li txias dua! VU ntsuas tau paub ntau dua rau lawv qhov kev xav pom, nrog LED teeb pom kev zoo rau lub suab nkauj!

Kuv qhov project Arduino los ntawm:

Khoom siv

  • Arduino 101/ Arduino Uno/ Arduino Leonardo x1
  • Lub Suab Ntes Board x1
  • 11 daim ntawm 5mm LEDs (koj cov xim xaiv)
  • 100Ω Resistor x11
  • Breadboard x1 (nyob ntawm seb koj tau siv li cas)
  • Jumper Wires (ntau)
  • Kev tiv thaiv x 1
  • 10k Ω Resistor x1 (xiav)

Kauj Ruam 1: Kauj Ruam 1: Npaj rau Koj Cov Khoom

  1. Arduino 101/ Arduino Uno/ Arduino Leonardo x1
  2. Lub Suab Ntes Board x1
  3. 11 daim ntawm 5mm LEDs (koj cov xim xaiv)
  4. 100Ω Resistor x11
  5. Breadboard x1 (nyob ntawm seb koj tau siv li cas)
  6. Jumper Wires (ntau)
  7. Kev tiv thaiv x 1
  8. 10kΩ Resistor x1 (xiav)

Kauj Ruam 2: Kauj Ruam 2: Tsim Koj Daim Npav Breadboard

Kauj Ruam 2: Tsim Koj Daim Duab Breadboard
Kauj Ruam 2: Tsim Koj Daim Duab Breadboard

Kuv txiav txim siab xaj kuv cov LEDs ntawm tib lub yob kom pom tseeb thiab pom tseeb. Kuv pib ntawm sab laug mus rau sab xis, los ntawm liab mus rau ntsuab. (Kuv tsis suav cov LED xiav vim tias nws yog rau Photoresistance.) Siv cov xim liab, daj, ntsuab, thiab xiav rau kuv qhov haujlwm, nws zoo li yog qhov ntxim nyiam dua. Kuv txhawb koj kom tsim koj tus kheej cov qauv uas haum rau koj tus kheej kev muaj tswv yim zoo!

Kauj Ruam 3: Kauj Ruam 3: Tsim Kho Vajtse

Kauj Ruam 3: Tsim Kho Vajtse
Kauj Ruam 3: Tsim Kho Vajtse

Rau cov LEDs:

Txuas txhua qhov anodes (aka tus pin zoo) ntawm txhua tus LEDs rau 100Ω resistor. Txuas tag nrho cov cathodes (aka pins tsis zoo) ntawm txhua tus LEDs rau hauv av tsheb nqaj hlau ntawm lub khob cij. Tom qab ntawd, txuas txoj kab tsheb hauv av no mus rau GND tus pin ntawm Arduino board. Txuas qhov pub dawb kawg ntawm txhua tus tiv thaiv pib los ntawm qhov qis tshaj LED mus rau tus pin 2 txog 11 hauv kev nce zuj zus.

Rau Pawg Tswj Xyuas Lub Suab:

Txuas GND tus pin ntawm lub tshuab ntsuas lub suab mus rau GND tus pin ntawm Arduino board. Txuas tus VCC tus pin ntawm lub tshuab ntsuas lub suab mus rau 3.3V tus pin ntawm Arduino board. Txuas lub Hnab Ntawv tus lej ntawm lub suab ntsuas lub rooj rau A0 tus pin ntawm Arduino board.

Rau Photoresistance:

Photoresistance tsis muaj qhov zoo thiab tsis zoo. Yog li nws tsis muaj teeb meem sab twg txuas mus rau qhov chaw twg. Txuas ib sab ntawm Photoresistance mus rau anodes. Txuas lwm sab rau 10kΩ resistor thiab Analog 1. Txuas cov cathodes rau lwm sab ntawm 10kΩ resistor. Thiab qhov ntawd yog nws!

Kauj Ruam 4: Kauj Ruam 4: Txheeb Xyuas Koj Lub Ntim thiab Kev Tshaj Tawm

Kauj Ruam 4: Txheeb Xyuas Koj Ntim thiab Kev Tshaj Tawm
Kauj Ruam 4: Txheeb Xyuas Koj Ntim thiab Kev Tshaj Tawm
Kauj Ruam 4: Txheeb Xyuas Koj Ntim thiab Kev Tshaj Tawm
Kauj Ruam 4: Txheeb Xyuas Koj Ntim thiab Kev Tshaj Tawm

Qhov no tsuas yog siv rau koj xwb. Thawj daim duab yog kuv lub suab, thiab daim duab thib ob yog kuv lub Photoresistance sensor. (XWB YUAV TSUM XAUS!)

Kauj Ruam 5: Kauj Ruam 5: Pib Koj Li Coding

Nov yog kuv tus lej (Tsuas yog ib qho piv txwv)

Nyem qhov no:

Kauj Ruam 6: Kauj Ruam Rau: Ua Tiav

Ua si qee cov nkauj, cov uas hloov pauv ntau yuav ua rau pom kev zoo nkauj dua. Nco ntsoov tua lub teeb thiab saib cov nkauj! Muaj ntau zaj nkauj uas ua tau zoo heev, muaj kev lom zem!

Pom zoo: