Close

Serial Protocol to set RGB values

A project log for glo

A tiny programmable RGB LED based on Atmel ATtiny13.

mahesh-venkitachalamMahesh Venkitachalam 11/14/2016 at 00:392 Comments

Thinking of implementing serial Rx on glo's GPIO pin so we can set the RGB values using a USB to serial adapter. The chip has 64 bytes of EEPROM so I could even store a pattern on it...

Discussions

Ted Yapo wrote 11/14/2016 at 01:12 point

I think it would be really convenient if you could add a gamma-corrected mode.  The problem with the linear intensity control that PWM provides is that it doesn't match the response of the eye - all the bright levels are very similar, and there are abrupt jumps in the dim ones.  If the gamma-correction were done in the glo board, you could have a full 8-bit range of gamma-corrected values that turned into more than 8-bits of PWM (like 10 or 12).

  Are you sure? yes | no

Mahesh Venkitachalam wrote 11/14/2016 at 01:20 point

Thanks. I had looked at Binary Code Modulation before:

http://www.batsocks.co.uk/readme/art_bcm_3.htm

In any case, glo can be reprogrammed, so the user is free to change the firmware. I am also building a pogo pin programmer to make this easy.

  Are you sure? yes | no