A short Question, is there a possibility, to check the length of an LED Stripe? Or to check, if specific LEDs are connected? In my case I have a LED Stripe who is swappable and it would be cool to check this automatically. Thanks for your help!
Unfortunately, no. Communication with the LEDs are one way.
If you aren’t maxed out on pins and/or are using i2c, you could use a port expander attached to a series of DIP switches to load in the setup as a binary number.
Outside of that, you’d need to come up with a routine that would check at power up and THEN add the LESs.
Else, you could program for the max strip length you’d have, then calculate the numbers of leds by some method and then adjust your patterns with that number. This particular method could be done with a pot and 1 analog pin.
I don’t wonder if there are a few ways you might be able to do this if you have access to the end of the strip. You could measure the voltage of the power at the end and then figure out how much a single LED at a specific color reduces the voltage? I think I heard of people doing this. If you could somehow monitor the data coming out of the date line at the end. I would think you could incrementtally push white light towards the end listening for a x’FFFFFF’ worth of data to come through. Would have to clear out the max number that you expect and be able to buffer that data in say a serial port or something but that might work…
@Justin_Eastman that’s certainly something to think about, it makes my head hurt just thinking about it!
Maybe using a IC rather than one with an LED attached as the end pixel, tie the outputs to pins, and incrementally go up the strip and check each time through to see if the known last “pixel” is firing.
Thanks for your suggestions! I will think about it!