element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog [Dynamic Living-room Lights] Building the Mood Lights
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ipv1
  • Date Created: 13 Jan 2015 6:42 AM Date Created
  • Views 1755 views
  • Likes 7 likes
  • Comments 8 comments
  • iot_holidaylights
  • ip_iot
  • holiday_mood
Related
Recommended

[Dynamic Living-room Lights] Building the Mood Lights

ipv1
ipv1
13 Jan 2015

  • Link to previous posts
  • Preface
  • Setting up the LED Strips
  • Connecting the Shield - Infineon RGB Shield -The Static Element
  • The Dynamic Element - Audio Control
  • What next?

Link to previous posts

  • [Dynamic Living-room Lights] Description
  • [Dynamic Living-room Lights] Simple System Design
  • [Dynamic Living-Room Lights] The YUN review - When the Penguin Met The Arduino.
  • [Dynamic Living-Room Lights] The Infineon RGB LED Shield Review
  • [Dynamic Living-Room Lights] The Infineon RGB LED Shield -Library!
  • [Dynamic Living-Room Lights] The Lights Teaser Video
  • [Dynamic Living-room Lights] The YUN talks to OpenHAB

 

Preface

 

My project for the Internet of Holiday lights was based around our living room which was not very livable. It was a mess and with the upcoming holidays I wanted to set the living room in such a way that it would be suitable for entertaining guests. Additionally I wanted to accomplish the above mentioned in such a way that the holiday lighting becomes part of the living room and I don't need to remove it after the holidays. Hence the concept of Dynamic Living-room Lighting.

 

In the previous posts, I have review the YUN and the infineon shield and have presented an overview of the project system. I also setup the place for the lighting with some homemade arts and crafts and give a preview of the system setup.

 

In this post I explain how to setup a room mood light with RGB LEDs and the Infineon RGB Shield and the Arduino YUN. It will be connected to the OpenHAB system via MQTT.

 

Setting up the LED Strips

The image below shows my living room setup before the build. The windows have curtains but we need a way to setup the LED Lights so the entire area is illuminated. I initially thought we would use lights behind the curtains but that did not work out since the curtains are too thick. Hence I turned to mounting the LED Strips above the curtains.

8c1365e679f6a1171aaf4c3f15802016.jpg

The Original BatCave Style living room

 

The first thing is to get a mount for the LEDS and for that I got a PVC U-Channel. I used a dremel to cut it into an L-Channel and then used double tape to stick the LED Strip all along the length. It was LONG! But I got it done. I also made cuts where we need to bend the strips. The images below show how I did that.

75f30d015f3fccf9697c935274852f73.jpg

7f976a0e0fb6bdca8f1be514a2945b7f.jpg

The next part is to hang it up along the curtain line. This is easier said than done.  This can be done in many ways and IF I had a 3D printer...;)

Anyways, I took up some PVC Sheets and cut them up to make supports. For the lack of a better substitute, I used some tape to hang the whole thing up. The images below show the result of the experiment.

9e3fd5f2211f9b2cd73dd93ab03748c6.jpg

 

b59187902179b94a6a7cd2878220fbb0.jpg

 

775815bd1e5f22e9315bf76e7681fa72.jpg

 

The controller can go behind the curtains and stay out of sight. The wifi capability of the YUN comes handy for this allowing connectivity without cables. Next we move to the controller.

 

Connecting the Shield - Infineon RGB Shield -The Static Element

In order to control the LED Strip, we use the [Infineon RGB LED Shield] 2452190 and the Arduino YUN. The shield does not come with headers and I don't have any  handy either so I had to improvise. I added a limited number of burg strips which I had in longer lengths and made a temporary mount. The image below shows the same.

8daac28a29777886751840d726c96ef5.jpg

 

I made a library and it is available on GitHub for you to use and it is available at https://github.com/inderpreet/infineonrgb_shield . Getting started is easy as using the LAMPTEST Example. I tested it out and the control works pretty nicely.

 

image

 

In Order to control these lights to produce a specific color, I used MQTT to send across the color. This can be done via the demo by kartben or via OpenHAB.

I did a post on this at [Dynamic Living-room Lights] The YUN talks to OpenHAB . You can select the color but thats not enough. We need to make the lights dynamic light the title of my project. Hence I need to add a dynamic element.

 

The Dynamic Element - Audio Control

 

I wanted to add a Dynamic Element which made the lights stand out. There are lots of light color controllers out there and most LED strips come with these out of the box. The images below shows the ones I got with the Strips I ordered.

 

d057d148f6f582a16c7005ebc51d6414.jpg

 

The area where the Infineon RGB LED Shield Shines is 'flicker free' dynamic control. Hence the idea is to use an Audio Signal to control the color at a fast rate. I searched online and came across a tutorial by @sciguy14 for the arduino. I don't need two channels but just a single channel. And the circuit is simple and is shown below.

 

 

c5adaf62af29483dab49e0db7f9cd3e6.jpg

 

This circuit is a modified version of the one by @sciguy but works well for me. @mcb1 gave me another circuit and might be useful for a lot of people.

 

image

 

The final circuit is shown in the image below.

 

16e6a0f56075a95c7a293e0796940819.jpg

 

I have an Audio IN and Audio Out so I can chain devices if needed. The input buffer makes sure the devices are not loaded much and audio quality is not tampered with. The filtered signal is fed to the Arduino where I use a modified code to generate 12bit data for LED Control. @sciguy14 uses code for 8bit color control which is good for NeoPixel type of stuff. I did a small video clip to explain the circuit and code which I will include in the next post because it has two parts of the system explained in one. I did a teaser video which show how the circuit works according to music being played.

 

I am not posting the video for the finished build right now because there is still the matter of a few elements which will work harmoniously together and make the entire build more effective. I will link it here once I am done.

 

What next?

 

In the next post I will be doing a little something with the XMas Tree. I had to go through a few iterations but the tweaked system looks better than my original version. See ya next time...

Cheers,

IP

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 10 years ago +2
    It is getting there. I'm sure if you keep hinting about 3D printers someone might listen ... but in the meantime you need to do the same as we do and use something else. Mark
  • ipv1
    ipv1 over 10 years ago in reply to mcb1 +1
    I will do my best either way. There are some things that can be simplified with a 3D printer and that's my only reason for applying for this roadtest. I am doing the intheair and the PCBs are waiting on…
  • Jan Cumps
    Jan Cumps over 10 years ago +1
    We have now 3 libraries for the rgb shield as a result of the roadtest. I'm using the one from Robert Peter Oakes , but when time allows I will also try yours and beavertank 's.
  • ipv1
    ipv1 over 10 years ago in reply to Former Member

    Hi jeffery sir

    im not able to grasp ur query/ccomment.

    If there is anything I can help with feel free to let me know. Alt send me a  direct message...

    thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ipv1
    ipv1 over 10 years ago in reply to Jan Cumps

    I will send you the code tomorrow Along with circuit details.  image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 10 years ago

    Interested in several applications; integrate the system into my home security system; Inside and Outside cameras; Color and Night UV. Connect to Smart Phones... Application to Locate and Price Items in stores such as; Walmart, Home Depot, Lowes, Sears, Albertsons, Sam's Club, Cosco... and Many more applications... Just starting and don't know where to begin... I worked in a Chemical Laboratory for 44 years and I am now retired and on disability, due to spinal surgery, still have sciatica pain and Restless Leg Syndrome

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 10 years ago

    ipv1, you were going to include the code for the audio to LED part in the next post. Do you have a pointer to it?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ipv1
    ipv1 over 10 years ago in reply to Jan Cumps

    Most welcome sir. Its fork it! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube