thanks a lot for this post! Just one typo in the code.line 44 - should be - analogRead(potPin)
I'm glad you like it :) And thanks for finding that mistake
Hi is there a way to make this keep the same color choice when the power is disconnected and reconnected?
There are multiple ways of how to do that. I think easiest way is to use EEPROM on atmega chip to store the values.
That is one way I was thinking of but don't know how to implement it. This will be used as a RGB controller for accent lighting in my car.
I myself would programm it that everytime you turn it on it reads from EEPROM 3 bytes one for each color, and than I would implement a pushbutton for color saving.