Arduino Music Reactive LED Sound activated music visualizer
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=Pdinux1xKcA
Arduino Music Reactive LED | Sound activated music visualizer • Scroll down for code..... • In this project we will make music reactive LED visualizer with Arduino. Series of light On/Off according to music. • If you want to support my video please buy any product through my amazon affiliate link. I will receive a commission, at no extra cost to you. • LIST OF COMPONENT (affiliate links) • http://amzn.to/2fvSRJq (Arduino) • https://amzn.to/3clOLMI (Sensor Detection Module) • http://amzn.to/2vSpUON (LED) • http://amzn.to/2vJ3lvo (Jumper wire) • http://amzn.to/2wxPmWz (Breadboard) • http://amzn.to/2vmSK8l (1K Resistor) • • Song : Sky High • Artist : Elektronomia • watch: • Elektronomia - Sky High | Progressive... • Licensed to YouTube by • AEI (on behalf of NCS); Featherstone Music (publishing), ASCAP, LatinAutor, UNIAO BRASILEIRA DE EDITORAS DE MUSICA - UBEM, and 9 music rights societies • • Song: Fade • Artist: Alan Walker • watch: • Video • Licensed to YouTube by • AEI (on behalf of NCS); Warner Chappell, CMRRA, ASCAP, LatinAutor, UNIAO BRASILEIRA DE EDITORAS DE MUSICA - UBEM, Sony ATV Publishing, PEDL, LatinAutor - Warner Chappell, LatinAutor - SonyATV, and 23 music rights societies • • Song: On On • Artist: Cartoon, Daniel Levi • watch: • Cartoon, Jéja - On On (feat. Daniel... • Licensed to YouTube by • AEI (on behalf of NCS); LatinAutor, ASCAP, Featherstone Music (publishing), and 17 music rights societies • • int soundPin = A0; • int LED1 = 2; • int LED2 = 3; • int LED3 = 4; • int LED4 = 5; • int LED5 = 6; • int LED6 = 7; • int LED7 = 8; • int LED8 = 9; • void setup() • { • Serial.begin(9600); • pinMode(LED1, OUTPUT); • pinMode(LED2, OUTPUT); • pinMode(LED3, OUTPUT); • pinMode(LED4, OUTPUT); • pinMode(LED5, OUTPUT); • pinMode(LED6, OUTPUT); • pinMode(LED7, OUTPUT); • pinMode(LED8, OUTPUT); • } • void loop() • { • long sum = 0; • //instead of parenthesis () put angle bracket as YouTube description does not allow angle bracket • for(int i=0; i(100; i++) // taking 100 sample of sound • { • sum += analogRead(soundPin); • } • sum = sum/100; // average the sample of sound • if (sum)=100) digitalWrite(LED1, HIGH); else digitalWrite(LED1, LOW); • if (sum)=200) digitalWrite(LED2, HIGH); else digitalWrite(LED2, LOW); • if (sum)=300) digitalWrite(LED3, HIGH); else digitalWrite(LED3, LOW); • if (sum)=350) digitalWrite(LED4, HIGH); else digitalWrite(LED4, LOW); • if (sum)=400) digitalWrite(LED5, HIGH); else digitalWrite(LED5, LOW); • if (sum)=450) digitalWrite(LED6, HIGH); else digitalWrite(LED6, LOW); • if (sum)=500) digitalWrite(LED7, HIGH); else digitalWrite(LED7, LOW); • if (sum)=550) digitalWrite(LED8, HIGH); else digitalWrite(LED8, LOW); • delay(10); • Serial.println(sum); • }
#############################
