Light Controller

When I saw this assignment, I thought about HSV color mode instead of RGB, especially this assignment requires fading. HSV represents hue, saturation and value respectively. The value can be associated with on and off switch. What left are hue and saturation, which is a 2D circle. Thus, I though we can have a dot on this circle which position is controlled by a joystick. Where it lands gives the hue in terms of degree, and saturation, in terms of its distance to the origin.

mkq1p

With the push button in the joystick, we are able to turn on and off the color picker. However, there was not a indicator of whether it is on or off. That was why I added a small red LED on the side.

img_2655

While making the enclosure, I wanted to integrate the light with the controller: you play with the lamp but also you change the light, so I rounded the neopixels along with the joystick.

Circuit diagram:

screen-shot-2017-02-08-at-3-56-15-pm

System diagram:

FullSizeRender.jpg

Source Code

I used a HSV to RGB converter from http://www.kasperkamperman.com/blog/arduino/arduino-programming-hsb-to-rgb/

Advertisements

2 thoughts on “Light Controller”

  1. DId you work out the HSV calculations yourself, or did you work from example code or explanation? If you did the latter, then please cite your sources.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s