top of page
Search

LED Segmentation

  • Writer: Caleb Dueck
    Caleb Dueck
  • Feb 8, 2024
  • 1 min read

To make it easy to program the back wall's LEDs we have a few challenges.


We need to be able to define a segment of an LED strip to represent a single block.

We need to be able to vary how many LEDs are on in each segment.

We need to be able to easily change the color of any of the segments.


To do this I took the code written to control the button's three LED segments and made it more flexible.


Now you can pass in an array of integers that will define the boundaries of each segment.


Also, you can define a parameter off_vs_on which will change the ratio of off LEDs to on LEDs.


See the below videos for a demo of the new code in action:









 
 
 

Comments


About Our Project

Our team has partnered with Activate to create a new gaming room to keep adults and children active. Our "Protect" room features engineering design concepts from various Mechatronics engineering coursework such as controls, circuits, and machining. Stay tuned to get updates on our design process!

bottom of page