Cov txheej txheem:

Suab paj nruag Reactive Mood Teeb: 5 Cov Kauj Ruam (nrog Duab)
Suab paj nruag Reactive Mood Teeb: 5 Cov Kauj Ruam (nrog Duab)

Video: Suab paj nruag Reactive Mood Teeb: 5 Cov Kauj Ruam (nrog Duab)

Video: Suab paj nruag Reactive Mood Teeb: 5 Cov Kauj Ruam (nrog Duab)
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
Suab paj nruag Reactive Mood Teeb
Suab paj nruag Reactive Mood Teeb

Intro thiab Tom Qab

Rov qab rau xyoo freshman (Lub Caij Nplooj Ntoos Zeeg ntawm 2019), Kuv xav ua kom kuv chav pw tsis tu ncua. Kuv tuaj nrog lub tswv yim tsim kuv tus kheej lub teeb pom kev uas yuav ua rau lub suab paj nruag kuv mloog ntawm kuv lub mloog pob ntseg. Hais ncaj ncaj, Kuv tsis muaj kev tshoov siab tshwj xeeb, Kuv tsuas yog xav tias lawv zoo li txias. Thaum lub caij sov kawg ntawm lub caij kawg, Kuv tau sib sau ua ke ib qho LED sawb tswj uas tuaj yeem ua rau hnov suab. Nws ua haujlwm, tab sis nws tsuas yog teeb tsa lub khob cij, nyob deb ntawm txhua yam ua tiav lossis ruaj khov. Lub sijhawm dhau mus, cov ntawv ua tom tsev tau sau tseg, thiab qhov haujlwm ntawd poob qis thiab tob dua rau hauv kuv lub thawv ntawm yam uas tsis tau ua tiav.

Tom qab ntawd qhov kev cais tawm raug ntaus.

Kuv tau txais sijhawm txaus los nrhiav yam kuv nyiam thiab lub zog kom ua tiav cov haujlwm ntawm hnub dhau los. Yog li ntawd, lub khob cij uas kho siab tau raug cawm dim hauv qab ntawm kuv pawg thiab txoj haujlwm no thaum kawg (zoo, feem ntau) ua tiav.

Qhov no tsis yog cov khoom lag luam puv ntoob, pom tseeb los ntawm daim duab los qhia thiab cov haujlwm tsis zoo, tab sis kev lom zem me ntsis kho kom zoo nkauj txawm li cas los xij.

(Cov Lus Qhia no tsis yog ntxaws ntxaws, feem ntau yog vim lub cuab yeej no tau ua ntev npaum li cas.)

Yam yuavtsum tau kawm uantej

Kev paub hauv Circuit Court yooj yim thiab paub txog kev tsim qauv Arduino.

Nco tseg rau Tus Tsim (Koj):

Lub teeb pom kev zoo uas koj yuav ua yuav luag tsis zoo li qhov kuv muaj. Kho qhov Cov Lus Qhia no ntau dua li cov lus pom thiab muab koj tus kheej tig rau nws!

Khoom siv

  • Teensy ++ 2.0 (lossis xijpeem Arduino koj muaj)
  • Ntau yam resistors
  • Ntau yam hloov
  • Ntau yam capacitors
  • 3.5 hli nkaus (txiv neej lossis poj niam)
  • Potentiometers (lossis Encoders)
  • Suab Amplifier IC
  • Addressable LED strips
  • Lub mloog pob ntseg Splitter

Cov no yog Amazon cov koom tes txuas mus yog li kuv tau khwv tau nyiaj me ntsis nrog txhua qhov muag. Yog tias koj tsis muaj cov khoom siv no thiab xav txhawb nqa cov phiaj xwm yav tom ntej ntawm kuv, ua raws cov kab ntawv txuas no!:)

Kauj Ruam 1: Npaj Tawm thiab Breadboard

Npaj Tawm thiab Breadboard
Npaj Tawm thiab Breadboard
Npaj Tawm thiab Breadboard
Npaj Tawm thiab Breadboard

Thawj kauj ruam rau ib qhov haujlwm zoo yog teeb tsa koj cov kev xav tau. Cov kauj ruam no ncaj ncees qhib tas. Nws nyob ntawm koj kom ua nws yooj yim lossis nyuaj raws li koj xav tau.

Kuv Yuav Tsum Tau

  • Tswj ib qho chaw nyob LED rau lub teeb pom kev zoo
  • Muaj lub suab reactive hom
  • Muaj Static RGB hom - thaum kuv tsuas yog xav pom tseem pom kev
  • Muaj tus xaiv hloov mus rau kev sib pauv ntawm hom
  • Muaj lub zog ntsuas rau tswj hom RGB
  • Muaj ib lub dav hlau ntsia hlau los txuas 5V cov khoom siv rau

Thaum koj tau piav qhia koj cov kev xav tau, qhov yuav tsum ua tom ntej yog txiav txim siab yam khoom koj xav tau thiab ua mov ci rau lawv. Coj kuv daim duab kab ke saum toj no los ua phau ntawv qhia! Kev xeem yog ib kauj ruam tseem ceeb txhawm rau ua haujlwm tawm tsam kab, kom ntseeg tau tias cov khoom sib koom ua ke, thiab kom tsis txhob siv sijhawm yuam kev.

Sau ntawv:

Vim li cas qhov faib hluav taws xob rau lub suab tawm tswv yim?

Tej zaum koj yuav tau pom tias muaj qhov sib faib hluav taws xob ntawm kab teeb liab lub suab nkag. Qhov no yog txhawm rau ib qho ntawm cov kev txwv ntawm ADCs ntawm Arduinos: ADC tsuas tuaj yeem nyeem qhov hluav taws xob ntawm 0 - 5V. Txij li lub teeb liab yog AC, nws yuav muaj qhov chaw uas nws mus tsis zoo. Peb pom tseeb tsis xav kom qhov tsis zoo no nce mus txog tus lej nkag, yog li peb tshem tawm lub teeb liab nrog qhov faib hluav taws xob thiab ua kom nws nyob nruab nrab ntawm 2.5V.

Vim li cas tus amplifier?

Kuv pom tias, thaum kuv siv lub mloog pob ntseg lossis hais lus nrog kuv teeb tsa lub rooj noj mov, lub teeb liab tsis dhau los ua tiav los ntawm Arduino. Ntxiv ib lub suab nrov daws qhov teeb meem ntawd. Raws li koj tuaj yeem pom, kev sim ua ntej yog qhov tseem ceeb!

Kauj Ruam 2: Txoj Haujlwm

Cov cai no tau muab yog qhov kuv siv hauv kuv lub teeb pom kev. Koj yuav tsis siv cov cai no yam tsis hloov nws, vim txawv kho vajtse thiab txheej txheem txheej txheem. Coj nws ntau dua los ua piv txwv los saib yuav siv cov tsev qiv ntawv li cas.

Cov tsev qiv ntawv siv:

Fastled.h (Rau qhov chaw nyob LED tswj)

fix_fft.h (Rau qhov hloov pauv sai dua plaub npaug. Qhov no yog qhov tsim nyog vim tias lwm lub tsev qiv ntawv hloov pauv plaub lub tsev tau qeeb dhau. Qhov teeb meem nrawm tuaj yeem raug hla nrog lub microcontroller sai dua li ESP32.)

Kauj ruam 3: Perfboard Nws

Perfboard Nws
Perfboard Nws

Yog tias koj tau txais kev paub, Kuv pom zoo kom tsim PCB tsis siv lub perfboard. Nws yog ib txoj hauv kev uas tsis tshua muaj kev cuam tshuam ntau dua. Kuv tsis tuaj yeem nthuav qhia txhua qhov sib koom ua ke uas kuv tau ua, tab sis ntawm no yog ob peb yam lus qhia tseem ceeb:

Lub tswv yim:

Teem tawm koj cov khoom siv ntawm koj daim ntawv ua kom haum ua ntej. Qhov no yuav cawm koj mob taub hau heev.

Muab qhov hla hla lub tshuab hluav taws xob tso rau ntawm koj lub tsheb nqaj hlau kom txo tau qhov cuam tshuam ntawm spikes hauv lub zog kos.

Ua kom zoo dua qhov ntev ntawm cov hlau lead ntxiv uas tau muab los ntawm qhov-dhau lub capacitors thiab resistors. Siv lawv los txuas lwm cov ntsiab lus ntawm koj lub rooj tsavxwm.

Siv tus poj niam PWM txuas thiab txiv neej lub taub hau rau kev tshem tawm yooj yim/txuas ntawm cov khoom.

Siv cov hlua hlau ruaj khov thaum koj tuaj yeem ua tau. Nws yooj yim dua tso rau hauv qhov-qhov.

Kauj Ruam 4: Tsim Cov Ntaub Ntawv

Tsim Cov Ntaub Ntawv
Tsim Cov Ntaub Ntawv

Nws yog lub sijhawm los tsim lub thawv rau koj qhov tshiab perfboard/PCB. Kuv siv txiav cov ntawv los xij vim nws yog qhov zoo tshaj plaws uas kuv muaj ntawm tes. Yog tias koj muaj lub tshuab luam ntawv 3D lossis qee txoj hauv kev, qhov ntawd kuj zoo!

Lub tswv yim:

Siv cov ntsuas ntsuas los ntsuas qhov ntev ntawm koj lub rooj tsavxwm, tshwj xeeb tshaj yog tias koj tab tom ua rooj plaub.

Yog siv cardboard

Ib txwm tso me ntsis ntawm leeway thaum txiav. Koj tuaj yeem txiav ntau dua, tab sis koj tsis tuaj yeem txuas ntxiv.

Siv rab riam me me los yog rab riam ntse. Hniav me me yog qhov tseem ceeb rau kev ua kom raug, qhov haum zoo.

Kauj ruam 5: Txaus siab rau

Muaj kev lom zem nrog koj lub teeb pom kev tshiab!

Yam yuav nthuav dav rau:

Ua rooj plaub raug?

Ntau cov qauv lossis hom?

Tus microcontroller sai dua?

Pom zoo: