Hi, I am working on an audio visualiser based on a sparkfun project linked here: Interactive LED Music Visualizer - learn.sparkfun.com
The original project used one LED strip, but I need the arduino to send signal to 3 strips. As this is part of a college project being graded, I had to come up with my own code or a variation or expansion of someone else’s code, otherwise I would have just wired the strips in parallel. I managed to change the code so that it would send signal to 3 output pins instead of one, but when the code is uploaded and audio is fed to the arduino, there is severe lag and the pattern of the music is almost unrecognisable.
I have tried the code on both an Arduino Nano as well as an Arduino Mega 2560, but I had the same results with both
I have linked my altered code below and please feel free to tell me how to improve this and how to eliminate the lag.
also, I am very new to coding
sparkfun_visualizer_3rd_attempt.ino (6.07 KB)