![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
Components and supplies
Apps and online services
About this project
CONSTRUCTION:
1: Watch the videoWatch the video first so that you can also build it easily:
Start by inserting the LED on the breadboard with the negative leg of the LED to a common ground rail of the breadboard (LED count = 20). The positive leg of the LED will be there at any empty rail of the breadboard as shown in the video and following pictures.
Then connect the ground of the Arduino to the common ground rail of the LED. Start from the pin 22 of the Arduino Mega and the flow is shown below:
ARDUINO PIN ___ LED COUNT
- 22 ___ 1
- 23 ___ 2
- 24 ___ 3
- 25 ___ 4
- 26 ___ 5
(this follows starting from pin 22 of Arduino and ending at pin number 41 of the Arduino Mega)
- 1 ___ 20
The music source is the main thing in the following project. As you have seen in the following video that I have used a audio splitter which will split the aux cable data into two parts: one is for our circuit and the other one with which we can connect to the music system.
The connections for audio input follows as:
- Ground of the aux cable will go to the ground of the Arduino.
- Left or right channel of the aux cable will go to the A0 analog input of the Arduino Mega
The potentiometer is used to increase or decrease the sensitivity of the music UV meter. The connection for the potentiometer are as:
- 1st Pin___________GROUND
- 2nd Pin___________A1 of Arduino
- 3rd Pin___________+5v or vcc
In the code, we have also used the following command lines to the potentiometer to be worked as the sensitivity adjustment.
potval=analogRead(A1);
output = analogRead(music);
potval=map (potval,0,1024,5,40);
output = output/potval;
4: Uploading the codeAfter the construction on the breadboard, we can upload the following code by using the Arduino IDE.
5: Creating a PCBAfter a complete test of the following circuit, we can construct the same circuit much more stable on the PCB. For that repeat the same process of the connecting the LED on the PCB and solder the common ground layer. Then connect the audio jack left or right channel and the ground to the A0 and ground
Then for the sensitivity use to pot. The basic idea you can get from the above video and the rest of the things are how creative you can apply the concept.
Code
Schematics
Comments
Team kj electronics
Published on
March 31, 2017Members who respect this project
you might like