Cov txheej txheem:

LED Neopixel Sawb Volume Analyzer: 4 Cov Kauj Ruam
LED Neopixel Sawb Volume Analyzer: 4 Cov Kauj Ruam

Video: LED Neopixel Sawb Volume Analyzer: 4 Cov Kauj Ruam

Video: LED Neopixel Sawb Volume Analyzer: 4 Cov Kauj Ruam
Video: NeoPixel Ring Lamp #adafruit 2024, Kaum ib hlis
Anonim
LED Neopixel Sawb Volume Analyzer
LED Neopixel Sawb Volume Analyzer

Kuv muaj qhov seem Neopixel sawb dag ib puag ncig thiab kuv xav tias nws yuav txias los ua lub tshuab ntsuas hluav taws xob rau kuv lub suab.

Kuv vam tias koj tau paub nrog arduino txhim kho ib puag ncig, yog tias tsis yog li ntawd muaj ntau qhov kev qhia tawm.

Nco tseg:

Qhov no qhia txog ntim, TSIS ntau zaus.

Tab sis kuv yuav ua qhov zaus ib zaug tom qab.

Kauj Ruam 1: Sau Qhov Chaw

Sib Sau
Sib Sau
Sib Sau
Sib Sau
Sib Sau
Sib Sau

Koj yuav xav tau:

  • Arduino (Kuv siv Nano, koj tuaj yeem siv lwm tus)
  • 2x 330ohm resistors
  • daim ntawv qhia zaub mov
  • jumper cov xov hlau
  • LED sawb (neopixels)
  • 1000uf capacitor ua
  • 10 k potentiometer

yeem:

  • hais lus
  • suab nkaus

Kauj ruam 2: Circuit Court

Circuit Court
Circuit Court
Circuit Court
Circuit Court

Ua lub Circuit Court raws li qhia, yog tias koj xav tau, koj tuaj yeem tsim nws ntawm perfboard rau kev daws teeb meem ntau dua.

Koj tuaj yeem txuas qhov no ncaj qha mus rau lub hauv paus suab ib yam (qhia hauv schematic) xws li lub zog tso tawm, tsuas yog txuas cov xov hlau rau koj lwm qhov chaw siv lub suab tso. Siv txoj hauv kev no, koj tsis xav tau tus hais lus vim tias cov xov hlau tau txuas nrog ua ke nrog lwm tus hais lus lawm.

Lub hwj chim ntsuas hluav taws xob yog rau kev hloov pauv siab npaum li cas LEDs mus nyob ntawm qhov ntim ntawm cov tswv yim. Qhov no yog nyob ntawm yeem, yog tias koj tsis xav tau nws koj tuaj yeem tshem nws los ntawm txoj cai.

Kauj ruam 3: Programming

Programming
Programming

Nco ntsoov tias koj muaj Adafruit Neopixel lub tsev qiv ntawv teeb tsa.

Yog tias tsis yog, tom qab ntawd qhib tus thawj tswj tsev qiv ntawv (sketchinclude librarymanage libraries). Tom qab ntawd tshawb rau 'Adafruit Neopixel'.

Nyem rau ntawm qhov pom thiab ntaus 'install'.

Tom ntej qhib cov kab ntawv txuas, nco ntsoov tias 'STRIP_LENGTH' tau teeb tsa rau koj kab sawb ntev, xaiv pawg thawj coj thiab chaw nres nkoj los ntawm 'Cuab Yeej' ntawv qhia zaub mov thiab rub tawm.

Kauj ruam 4: Tiav lawm

Tiav lawm!
Tiav lawm!

Tam sim no koj tuaj yeem ua rau tib neeg zoo siab nrog koj lub tshuab ntsuas suab paj nruag lossis tsuas yog saib nws nrog cov nkauj.

Teeb meem:

-Yog cov LEDs tau teeb nrog qhov muag me ntsis tom qab tig lub hwj chim kom txog thaum lawv nqes mus rau lub suab paj nruag

-Yog tsis muaj dab tsi tshwm sim, xyuas kom tseeb tias lub suab tau ntsaws thiab ua haujlwm

Nws yuav yog ib lub tswv yim zoo los ua PCB kev cai los ntawm perfboard thiab txhim kho lawv qhov chaw zoo yog tias nws yuav nyob mus tas li. Saib video ntawm lawv ua haujlwm.

Pom zoo: