Cov txheej txheem:

Suab paj nruag Reactive Multicolor LED Teeb - Arduino Sound Detection Sensor - RGB LED Sawb: 4 Kauj Ruam
Suab paj nruag Reactive Multicolor LED Teeb - Arduino Sound Detection Sensor - RGB LED Sawb: 4 Kauj Ruam

Video: Suab paj nruag Reactive Multicolor LED Teeb - Arduino Sound Detection Sensor - RGB LED Sawb: 4 Kauj Ruam

Video: Suab paj nruag Reactive Multicolor LED Teeb - Arduino Sound Detection Sensor - RGB LED Sawb: 4 Kauj Ruam
Video: cheap rgb cob led light | Best 12 volt dc cob module light || best rgb led strip lights part 1 2024, Hlis ntuj nqeg
Anonim
Suab paj nruag Reactive Multicolor LED Teeb | Arduino Sound Detection Sensor | RGB LED Sawb
Suab paj nruag Reactive Multicolor LED Teeb | Arduino Sound Detection Sensor | RGB LED Sawb

Suab paj nruag-reactive multi-xim LED teeb project. Hauv txoj haujlwm no, ib qho yooj yim 5050 RGB LED sawb (tsis yog Addressable LED WS2812), Arduino lub suab ntsuas lub suab ntsuas thiab 12V adapter tau siv.

Kauj ruam 1: Project Video

Image
Image

Yog li nws ua haujlwm li cas? Yog tias koj ua tib zoo saib ntawm Arduino IDE qhov chaws ntawm txoj haujlwm, tus nqi sib piv los ntawm Arduino lub suab ntsuas (qhov no txawv raws qhov siv ntawm cov nkauj), tom qab ntawd tus nqi pib tau txhais (ib yam li 0 txog 1023)), yog tias tus nqi los ntawm lub suab sensor tsis sib xws nrog tus nqi pib, Arduino random () muaj nuj nqi tau qhib. 6 pawg xim sib txawv tau tsim nyob rau hauv kev ua haujlwm tsis sib xws, sib txawv xim sib xyaw tuaj yeem tsim los ntawm kev hloov qhov txiaj ntsig hauv pawg xim no. Yog tias tsis muaj tus nqi sib piv los ntawm lub suab sensor, lub luag haujlwm raug tso tseg.

Kauj Ruam 2: Cov Cheeb Tsam Xav Tau

Schematic thiab Gerber File
Schematic thiab Gerber File

Txoj haujlwm no tseem tuaj yeem ua tiav nrog Arduino UNO R3 thiab qee qhov (IRFZ44N Transistor thiab zoo sib xws) cov khoom, tab sis kuv tau npaj txoj haujlwm no ntawm ib pawg thawj coj. Cov khoom siv yooj yim muag tau siv (Ib yam li DIP rooj plaub Atmega348P).

Lub Suab Tshawb Pom Sensor

LED Sawb Teeb 5050

AC DC 12V Adapter

DIP28 ATmega328P-PU

IRFZ44N Transistor

L7805CV TO220

Ceramic Capacitor

Electrolytic Capacitor

DIP IC Qhov (Socket)

Hom B USB Qhov (Socket)

2.1mm Jack Qhov (Socket)

Toggle Hloov

LED

Resistor

12 MHz Crystal

16 MHz Crystal

Jumper Hlau

Cuab Yeej Cuab Yeej

Kauj Ruam 3: Schematic thiab Gerber File

Schematic thiab Gerber File
Schematic thiab Gerber File

Kuv tau xaj lub rooj sib tham ntawm PCBWay. Koj tuaj yeem xaj los ntawm lub vev xaib hauv qab no thiab tau txais lub rooj tsavxwm no.

Tau txais Schematic thiab Gerber File (Tseem xaj):

www.pcbway.com/project/shareproject/Music_Reactive_Multicolor_LED_Lights_Board.html

Kauj ruam 4: Source Code

Qhov Code
Qhov Code

Yog tias koj ua tib zoo saib ntawm Arduino IDE qhov chaws ntawm txoj haujlwm, tus nqi sib piv los ntawm Arduino lub suab ntsuas (qhov no txawv raws qhov siv ntawm cov nkauj), tom qab ntawd tus nqi pib tau txhais (ib yam li 0 txog 1023)), yog tias tus nqi los ntawm lub suab sensor tsis sib xws nrog tus nqi pib, Arduino random () muaj nuj nqi tau qhib. 6 pawg xim sib txawv tau tsim nyob rau hauv kev ua haujlwm tsis sib xws, sib txawv xim sib xyaw tuaj yeem tsim los ntawm kev hloov qhov txiaj ntsig hauv pawg xim no. Yog tias tsis muaj tus nqi sib piv los ntawm lub suab sensor, lub luag haujlwm raug tso tseg.

Tau txais Arduino IDE Source Code (GitHub):

github.com/MertArduino/Music-Reactive-Multicolor-LED-Lights

Pom zoo: