Light Controller

Design Challenge: Make a device to control an RGB light. The features of the device include:

  1. A control to turn the light on and off. When it turns on, it should retain the relative red, green, and blue brightness levels from when it was last turned on.
  2. The ability to fade each color channel (red, green, and blue) from off to full brightness.
  3. Fade level should be maintained when you release the fade controller.
  4. Fade should be interruptible by other controllers, e.g. on/off or another fade controller.
  5. The ability to fade the overall brightness of the light.

Code

Testing: This code explores turning on an LED with a switch. A potentiometer is then used to control the brightness of the LED. I worked with a white LED for this to ensure the code worked before connecting the RGB LED.

RGB LED Code:

 

Schematics

Design and Fabrication 

References
https://itp.nyu.edu/physcomp/labs/labs-arduino-digital-and-analog/analog-in-with-an-arduino/
http://cdn.sparkfun.com/datasheets/Components/LED/YSL-R596AR3G4B5C-C10.pdf
https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/arduino-sketch

36 thoughts on “Light Controller”

  1. Hi, I was just on your site and filled out your feedback form. The contact page on your site sends you these messages to your email account which is the reason you’re reading my message at this moment correct? This is the most important accomplishment with any type of online ad, making people actually READ your message and I did that just now with you! If you have an advertisement you would like to blast out to thousands of websites via their contact forms in the US or to any country worldwide let me know, I can even target particular niches and my charges are super low. Reply here: Benja57mik57@gmail.com

  2. You Can DOUBLE Your Productivity For Life In Under 48 Hours

    And when it comes to changing your life, there’s nothing more important to fixing your productivity.

    Think about it.

    If you’re twice as productive, then, as far as your environment supports it, you’re going to make at least twice as much. However, the growth is almost always exponential. So expect even more income, free time, and the ability to decide what you want to do at any given moment.

    Here’s the best course I’ve seen on this subject:

    https://bit.ly/michaeltips-com

    It’s a fun and pretty short read… and it has the potential to change your life in 48 hours from now.

    Michael Hehn

  3. TRIFECTA! A novel that starches your emotional – erotic itch!
    Against a background of big business, deceit, frustration, oppression drives a wide range of emotions as three generations of women from the same family, turn to the same man for emotional support and physical gratification!
    A wife deceives her husband while searching for her true sexuality!
    What motivates the wife’s mother and son-in-law to enter into a relationship?
    The wife’s collage age daughter, with tender guidance from her step-father, achieves fulfillment!
    Does this describe a dysfunctional family? Or is this unspoken social issues of modern society?
    BLOCKBUSTER Opening! A foursome of two pair of lesbians playing golf. A little hanky – panky, while searching for a lost ball out of bounds. Trifecta has more turns and twist than our intestines.
    Trifecta! Combination of my personal experiences and creativity.
    https://bit.ly/www-popejim-com for “CLICK & VIEW” VIDEO. Send me your commits.
    Available amazon, book retailers.
    Trifecta! by James Pope

  4. Greetings, I was just visiting your website and submitted this message via your “contact us” form. The feedback page on your site sends you messages like this via email which is the reason you are reading my message right now correct? That’s the most important accomplishment with any type of online ad, making people actually READ your ad and that’s exactly what I just accomplished with you! If you have something you would like to blast out to tons of websites via their contact forms in the US or to any country worldwide send me a quick note now, I can even target your required niches and my pricing is very reasonable. Send a message to: fredspencer398@gmail.com

  5. Stem cell therapy has proven itself to be one of the most effective treatments for COPD (Chronic Obstructive Pulmonary Disorder). IMC is the leader in stem cell therapies in Mexico. For more information on how we can treat COPD please visit:
    https://bit.ly/copd-integramedicalcenter

  6. Are you looking to become a Trained & Certified Skilled Tradesman in only 4 weeks?

    No High School Diploma? No problem!

    We offer online certification & training for:

    *HVAC
    *Plumbing
    *Electrical
    *Solar

    And more!

    Visit: https://bit.ly/dmaceducation

  7. Do you want more people to visit your website? Receive thousands of keyword targeted visitors directly to your site. Boost revenues quick. Start seeing results in as little as 48 hours. To get info Visit: http://www.getwebsitevisitors.xyz

  8. Stem cell therapy has proven itself to be one of the most effective treatments for COPD (Chronic Obstructive Pulmonary Disorder). IMC is the leader in stem cell therapies in Mexico. For more information on how we can treat COPD please visit:
    https://bit.ly/copd-integramedicalcenter

  9. Good morning, I was just checking out your website and filled out your contact form. The “contact us” page on your site sends you messages like this to your email account which is the reason you’re reading through my message at this moment right? That’s the holy grail with any type of advertising, getting people to actually READ your advertisement and I did that just now with you! If you have an ad message you would like to blast out to thousands of websites via their contact forms in the U.S. or to any country worldwide let me know, I can even target particular niches and my prices are very affordable. Write an email to: juniordannyqprj@gmail.com

  10. I invite you to visit my site and learn new knowledge for the benefit of our country so what are you waiting for and learn more
    I would like many to prove to my family that if they stand on both feet without asking for their sleep and being knocked down by the way if they are right
    카지노사이트

  11. my baby is sick now the height of the fever he likes always beside me and i just want to do that he’ll be my baby just pray
    You snooze, you lose. If you aren’t paying attention, you won’t have any control over the outcome
    바카라사이트

  12. Good morning everyone I want to tell you my knowledge of a site that will give you a good life and certainly will not regret it because it can help you greatly
    When I’m listening to the music I’m losing my stresses and even though I’m in the air and I can think of good things in life oh work
    바카라사이트추천

  13. I have a lot to do in my life for my family that I could fulfill all my wishes for them and I love them all
    very happy young people with good dreams in life but they have difficulty fulfilling their dreams for reasons they do not want to spend on life so I want to help them when it’s time for me to react
    카지노사이트

  14. My grandfather and grandmother are happy with your family especially if your grandma and grandmother care about me because my grandfather and grandmother love to miss my mom
    When I’m not doing that I’m thinking of a good thing to do to make it even harder than myself to do my own work and home hard work that even when you’re in trouble
    카지노

Leave a Reply

Your email address will not be published.