Optimize Arduino LED Display Loop
Budget: £10 – £20 GBP
My sketch drives a single WS2812 addressable LED alongside a TM1637 four-digit display. I have 5 potentiometers. The first three control the colours, number 4 control the flicker rate and 5 the brightness.
Everything works fine. But I then wanted to add a TM1637 to display the reading from potentiometer number 4 so I could make a calculation to display the actual on/off flicker frequency. As soon as I add the code to display a value in the loop the loop slows down thus restricting the potential range of flicker available.
I need an experienced Arduino coder to step in, profile the sketch, and refactor whatever is holding the loop up—blocking delays, inefficient math, over-heavy libraries, anything.
What I’ll hand over:
• Current coding and library list
What I expect back:
• Optimised, well-commented code that displays value of potentiometer 4 without slowing the loop down and a calculation in the code that converts the value to the actual flicker rate
• Short report outlining the bottlenecks you found and the fixes you applied
• Any library or compiler-flag recommendations to sustain performance as features grow
Everything works fine. But I then wanted to add a TM1637 to display the reading from potentiometer number 4 so I could make a calculation to display the actual on/off flicker frequency. As soon as I add the code to display a value in the loop the loop slows down thus restricting the potential range of flicker available.
I need an experienced Arduino coder to step in, profile the sketch, and refactor whatever is holding the loop up—blocking delays, inefficient math, over-heavy libraries, anything.
What I’ll hand over:
• Current coding and library list
What I expect back:
• Optimised, well-commented code that displays value of potentiometer 4 without slowing the loop down and a calculation in the code that converts the value to the actual flicker rate
• Short report outlining the bottlenecks you found and the fixes you applied
• Any library or compiler-flag recommendations to sustain performance as features grow