Personal tools
Document Actions

more advanced led interface

Up to Idea box

more advanced led interface

Posted by eFfeM at April 13. 2008

Hi,




I've been pondering about the led interface and I was wondering if the following is realizable without extreme hassle.


What I would like to have is to have the leds at half intensity (or 20% or whatever).


Of course this would require a change in the firmware. The way to realise it could be to have a 1ms or so timer that would control the led.


E.g.:
Suppose we want 10 steps of density where 0 is off and 10 is full density, and we want 20% intensity. In that case the value for the steps would be 2
Then this 1ms timer could leave the led on for two ticks then off for 8 ticks. For N (0 <= N <= 10) it would be N ticks on, 10-N ticks off.


There would be no flicker as a complete cycle would take 10 ms (so 100 Hz) which is not noticable for the human eye).






Questions:

- Is this feasible (is there a timer in tux that can be used for this)
- am I missing something?



FM


Re: more advanced led interface

Posted by Snouffelaire at April 14. 2008

Hey,


I don't know a lot about leds but wouldn't it shorten their life expectancy ?


Re: more advanced led interface

Posted by eFfeM at April 14. 2008

No idea about life expectancy.


Anyway, after posting this, I discovered that the requested functionality is already in 1.3 (thanks Remi!)


Re: more advanced led interface

Posted by David Bourgeois at April 28. 2008
Yep, PWM on the LEDs have been added lately. It supports intensity, fading and pulsing. It wasn't straightforward so I expect some bugs around that. Rémi already found that the IR receiver code sometimes didn't receive the correct value, and that's because the PWM on the blue LEDs influence the IR receiver.

Anyway, i still like the effect at the end. But there's still little use of these features. To experiment, look at the functions available through the python API, I put some extensive documentation on them. They're not easy to use but you can get some nice effects if you grab how they work.

David

Re: more advanced led interface

Posted by eFfeM at April 28. 2008

Not sure if that is related, or if this is due to my tux, but I noticed with the v2 driver test program that it is very picky on accepting top button presses. Often I have to try a few times, although the click is very noticable.


Re: more advanced led interface

Posted by David Bourgeois at April 29. 2008
Some buttons are a bit hard to trigger it seems. To be sure, check if you have the led blink, it's completely hardware driven and should happen as soon as the button is pressed.
Powered by Ploneboard
You are here: Home Forum Idea box more advanced led interface

Powered by Plone CMS, the Open Source Content Management System