Cov txheej txheem:

Suab paj nruag Visualizer Nrog Arduino: 5 Kauj Ruam
Suab paj nruag Visualizer Nrog Arduino: 5 Kauj Ruam

Video: Suab paj nruag Visualizer Nrog Arduino: 5 Kauj Ruam

Video: Suab paj nruag Visualizer Nrog Arduino: 5 Kauj Ruam
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Hlis ntuj nqeg
Anonim
Image
Image

Sib tham sib Music Visualizer

Cheebtsam

Wb 338x5

Potentiometer x2 (1k thiab 10k)

1N4006 diode x5

Capacitor x2 (1uF thiab 10uF)

Resistors x3 (416, 10k thiab 1k)

Aux splitter x1

Aux kab x 1

Arduino Duemilanove x1 (Uno kuaj tau zoo)

Aux jack x1

LM785C x1

TX071CP x1

9V roj teeb nkaus x2

Jumper cable x Ntau

LED nrog WS2812B maub los x46

Dell 16V 20A laptop adapter x1

Kauj Ruam 1: Soldering 5 LM338T Arrary

Soldering 5 LM338T Arrary
Soldering 5 LM338T Arrary
Soldering 5 LM338T Arrary
Soldering 5 LM338T Arrary

Cov kab hluav taws xob hloov pauv no hloov cov theem nqis 16V laptop adapter muab hluav taws xob rau 5V LED muab hluav taws xob.

Kauj Ruam 2: Ua ntej Circuit Court rau Aux Signal Input

Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input
Ua ntej Circuit Court rau Aux Signal Input

Ntawm sab laug sab tes ntawm lub khob cij yog TL071 op -amp Circuit Court uas suav thiab ua kom nrov aux input teeb liab uas yog los ntawm -1.25 txog 1.25V. Lub teeb liab tau hloov mus rau Arduino Vref 0 ~ 5V thaum lub sijhawm ua haujlwm ua ntej. Nws thaiv cov suab nrov uas tsim los ntawm Arduino analogread () kev ua haujlwm. LM7805 tus tswj hluav taws xob nyob hauv nruab nrab ntawm lub khob cij, uas hloov 9V roj teeb muab hluav taws xob rau 5V muab hluav taws xob rau Arduino. Aux-in jack nyob ntawm ntug sab xis, ua kom muaj kev sib txuas zoo nrog cov khoom siv rov ua dua. Lub aux splitter plam playback ntaus ntawv tso tawm lub teeb liab rau hauv ob. Ib qho yog muab rau tus hais lus, lwm tus muab rau Arduino.

Kauj Ruam 3: Arduino Pinout thiab LEDs

Arduino Pinout thiab LEDs
Arduino Pinout thiab LEDs
Arduino Pinout thiab LEDs
Arduino Pinout thiab LEDs

Nyob rau sab qis ntawm Aruidno lub rooj tsavxwm, Aruidno raug tsau rau hauv lub khob cij los ntawm cov xaim dawb ntawm sab laug, tus pin2 nyeem lub suab tso tawm los ntawm kev ua haujlwm ua ntej. Nyob rau sab saud, Arduino tau tsaws rau LM338 kab los ntawm lwm txoj xov hlau dawb, tus pin3 ntawm sab xis muab cov teeb liab txuas mus rau LED sawb.

Kauj Ruam 4: Qhov tshwm sim

Kauj ruam 5: Source Code

Qhov chaws

Pom zoo: