Dynamically determine how many leds are in a strip


 i working on project using fastled 3.0 library control strip of leds.  i'm using 3 wire leds not spi based chipset.  i'm using lights tm1809 chipset if proves relevant. library great, downside have define how many leds in strip, , part of project make simple extend strip more lights if desire. therefore, need able dynamically decide how many lights connected yun.

here's thoughts:

as part of setup loop, light leds 1 led @ time. if led lights up, increment led count if not assume we're @ end of strip. question is, there way of getting feedback arduino whether or not lighting of led successful? i'm still digging through documentation , code of library far i'm not seeing anything.

this doesn't have library specific, in general, library uses pwm control lights

you're not going feedback leds.  if know size , placement of project use ldr or other light sensor tell when 1 of lights lit up, requires lights close enough , arranged such sensor can see them all. 


Arduino Forum > Using Arduino > Project Guidance > Dynamically determine how many leds are in a strip


arduino

Comments