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

82 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
    카지노

  15. Excellent goods from you, man. I have understand your stuff previous to and
    you’re just extremely excellent.I really like what you’ve acquired here,

  16. Ankhi Das, Facebook’s head of public policy in India, allowed a politician from the country’s ruling party to remain on its platform even though his anti-Muslim posts flouted its rules against hate speech, current and former Facebook employees
    카지노사이트

  17. I like what you guys are usually up too. This kind of clever work and coverage! Keep up the very good works guys I’ve incorporated you guys to blogroll.
    a

  18. Good morning, I was just visiting your website and submitted this message via your “contact us” form. The contact page on your site sends you messages like this via email which is why you’re reading through my message at this moment right? This is the holy grail with any kind of advertising, getting people to 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 lots of websites via their contact forms in the US or anywhere in the world send me a quick note now, I can even target specific niches and my pricing is super reasonable. Shoot me an email here: AndradeTristanc15963@gmail.com

  19. Want more visitors for your website? Receive hundreds of keyword targeted visitors directly to your site. Boost revenues fast. Start seeing results in as little as 48 hours. To get details Have a look at: http://www.easy-web-traffic.xyz

  20. Hey

    I had already sent you an email earlier, but I had not received any answers yet.

    I have a question, i see a lot of products in this store I have made a screenshot of some products, https://screenshot.photos/product463 that you also sell in your store. But there items are 48% cheaper, well my question is what is the difference between your product ,is it the quality or something else, I hope you can answer my question.

    greetings
    Colin Aponte

    “Sent from my Ipad”

  21. Excellent goods from you, man. I have understand your stuff previous to and
    you’re just extremely excellent.I really like what you’ve acquired here,

  22. PULSE is a full system integrator working diligently to provide a customized solution for every client. Combining design expertise, seamless integration with intentional transparency PULSE provides clients with scalable engineered solutions. Cultivating over 45 years of material handling experience to specifically help companies leverage the right mix of technology (digital and physical) in their facilities. The PULSE team ingrains Industry 4.0 Thinking into the design philosophy at every level to deliver truly agnostic solutions that adapt to continuous evolving customer requirements.

    https://bit.ly/www-pulse-si-com

  23. I am only writing to make you understand what a superb experience our princess undergone viewing yuor web blog. She picked up such a lot of things, with the inclusion of what it is like to possess an ideal teaching style to make the mediocre ones without hassle master specified tricky topics. You undoubtedly surpassed visitors’ expected results. Thanks for showing those valuable, trustworthy, revealing not to mention unique tips on your topic to Sandra.

  24. Did you know notes like these that come through your website’s contact page can actually be an effective method to get more sales for your online business? How exactly is this done? Very simple, we create an ad text like this one for your site and we blast it out to lots of website contact pages on any website and in any business category or area you need. Does this method of advertising work? Of course they do! You’re reading this now aren’t you? The awesome thing is, this won’t cost you much more than $3 a day! Want to get more info? fire off a quick email to: UlisesMelinav85668@gmail.com

  25. I am commenting to let you know of the great encounter my friend’s daughter found reading your web page. She figured out numerous issues, not to mention what it’s like to have a wonderful giving mood to have men and women really easily have an understanding of selected hard to do subject areas. You really exceeded our own expectations. Many thanks for imparting the interesting, safe, explanatory and even easy thoughts on the topic to Janet.

  26. It is possible to promote your online business absolutely free! Have a quick gander at this complete directory consisting of the top search sites over here >bit.ly/list-of-free-classified-sites-4u

Leave a Reply

Your email address will not be published.