> I have asked this before (some time back) on the list but never > came up with a solution. What I need is a 256 byte table for a > s-curve to convert a (linear) dim level (0=off, 255=full) into a value > to use as a phase control variable in my lamp dimmer. Harold H > posted a formula for it a while back but it goes way over my > head I'm afraid. I searched the archives but there's no straight > forward answer in there. A Google search did not reveal anything > useful either. I was hoping that a Piclister had done this before & > is willing to post it. I only need the table - not the phase control > code any anything else. The rest of my code works fine. :-) > Thanks... It seems like your going through a lot of work for a little return. I doubt if you could perceive the difference between 50%, 50.5% & 51% levels. When I built a dimmer I determined the minium delay from zero crossing to get max bulb brightness, then the maximum delay to get the lowest usable bulb brightness. I then used a basic program to take the 2 values and generate the 97 outher intermidiate values (1-100%). -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.