![]() Removed some of the non-required variables and codes that are not produced anything valuable. What I did: - Fixed loading (setup) codes. Too many loops used for drawing for no real reason. Some codes does absolutely nothing just occupied the space and memory. The display driving in the way you did caused bad readability of the actual volume level. When no sound presented, almost half of the bar-width was still used because of incorrect calculation of the input audio level. Problems I found with the original code (Without blaming, just the pure facts!): - Loading was so slow and unnecessarily complex. The code was hard to read so I rewritten it a little bit. However some improvement is needed in your code as I have seen. If (index2 >= numReadings) //Na 5 lezingen gaan we naar 0ĭear Friend, Your idea was great, and thanks for it. If (index >= numReadings) //Na 5 lezingen gaan we naar 0 ![]() Lcd.begin(16, 2) //bepaling grootte van de lcdįor (int thisReading = 0 thisReading maxi) LiquidCrystal lcd(12, 11, 5, 4, 3, 2) //lcd configuratie Int total2= 0 // hoogste getal in de lezingen Int index2 = 0 // index van de momentele lezing (2) Int index = 0 // index van de momentele lezing Int left,left2,right,right2 //variabelenĬonst int numReadings = 3 //5 lezingen voor data Int rightChannel = 0 // rechter kanaal input Int leftChannel = 0 // linker kanaal input VU meter by theredstonelabz and michiel H don't forget to like and subscribe to support my work. thank you for reading this and enjoy the code. if you just watch the video below and check out my channel for my other video's it would be of great help to me. i dont get many vieuws but the money i get from it always goes to projects like this. also when no ignal is found it gives full barrs(which i like) what is complete is: -nice looking edges -signal smoothening -loading screen(can be removed just for show) -arduino shield-like connectins(just plug it on and ready) 1 thing i ask from you. it does doe strange things when you disconnec the audio jack. many people show a vu meter but dont give any tips or code. i searched around the internet to find code for it without succes. he supplied me with an arduino and an lcd. last week a friend of mine who is not so familiar with arduino and electronics needed a vu meter for his school project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |