Mike - K8LH
Well-Known Member
My first attempt at doin' something with Sony SIRC so be kind (lol).
The program doesn't do anything fancy. It simply increments or decrements the Red, Green, or Blue LED duty cycle (0-255) using six keys on the Sony remote. Timing is precise and "cycle accurate" (no pulse-width or period jitter) with a pretty decent 156-Hz refresh rate. The program uses 155 words of program memory, 12 bytes of RAM memory, and no peripheral modules so it should run on a 12F629, a 12F635, a 12F675 or even a 55 cent 6-pin 10F200.
If you want to test it out on low current (20-ma) LEDs then eliminate the N-FETs and set the jumper to "active lo" for common anode 4-pin LEDs or to "active hi" for common cathode 4-pin LEDs and fire away. Don't forget your LED current limiting resistors.
Improvements will be adding a 64-step "gamma" table for 262,000+ color combinations. The colors will look better and you'll be able to adjust the color much faster. Right now it takes a minute to go from 0 to 255 or from 255 to 0 for each LED with a 205-msec "repeat" timer interval. Other improvements may include storing and retrieving color settings or animations from EEPROM.
Cheerful regards, Mike
The program doesn't do anything fancy. It simply increments or decrements the Red, Green, or Blue LED duty cycle (0-255) using six keys on the Sony remote. Timing is precise and "cycle accurate" (no pulse-width or period jitter) with a pretty decent 156-Hz refresh rate. The program uses 155 words of program memory, 12 bytes of RAM memory, and no peripheral modules so it should run on a 12F629, a 12F635, a 12F675 or even a 55 cent 6-pin 10F200.
If you want to test it out on low current (20-ma) LEDs then eliminate the N-FETs and set the jumper to "active lo" for common anode 4-pin LEDs or to "active hi" for common cathode 4-pin LEDs and fire away. Don't forget your LED current limiting resistors.
Improvements will be adding a 64-step "gamma" table for 262,000+ color combinations. The colors will look better and you'll be able to adjust the color much faster. Right now it takes a minute to go from 0 to 255 or from 255 to 0 for each LED with a 205-msec "repeat" timer interval. Other improvements may include storing and retrieving color settings or animations from EEPROM.
Cheerful regards, Mike
Attachments
Last edited: