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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Products
  • More
Arduino
Blog Controlling Holiday Lights using MQTT and the Arduino Yún
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kartben
  • Date Created: 25 Nov 2014 3:21 PM Date Created
  • Views 2065 views
  • Likes 9 likes
  • Comments 10 comments
  • RoadTest
  • infineon
  • mqtt
  • internet_of_things
  • rgb
  • iot
  • arduino_yun
  • ledstrip
  • arduino
Related
Recommended

Controlling Holiday Lights using MQTT and the Arduino Yún

kartben
kartben
25 Nov 2014

To all the Element14 members interested in participating to the Internet of Holiday Lights roadtest, and more generally to anyone who'd like to play with the Arduino Yún for building Internet of Things applications, this video is for you!
It gives you a very brief introduction on how you can turn an RGB LED strip that you can get on Amazon or eBay for ~25USD, into a remotely controlled IoT device using MQTT, the Eclipse IoT free broker, and an Arduino Yún!

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The MQTT library for the Arduino is from Eclipse Paho but includes a fix that is not yet merged, so in the meantime you should probably use the library available here.

The code for the Arduino and Web applications is on Github.

 

Please do not hesitate to comment if you have any questions or if you want to share the ideas you may have to improve this little experiment!

  • Sign in to reply

Top Comments

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to kartben +2
    All very good points but having deployment options is a good thing which is why I posted a zip with the complete package that can be hosted wherever is convenient . Hosting the files on the YUN is not…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to alexev

    I would still be tending toward the issue Benjamin Cabé suggested, I have been using code based on the sample he kindly provided and have not experienced these issues

     

    it can be surprising how much current even a few LEDs can draw

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • alexev
    alexev over 10 years ago in reply to kartben

    hmm, don't think so, i've tested it with 12vDC/800mA transformer and only 30 led's/50cm strip, don't have yet a dc transformer over 1A so i can use one whole 5m strip to test. The application works fine (especially colour transition ring) as long as i keep away from extreme values like maximum/minimum lighting power from the square. The RGB strip is a simple one, each led with it's own colour (x3 colours).

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kartben
    kartben over 10 years ago in reply to alexev

    Sounds like your power supply might not be beefy enough?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • alexev
    alexev over 10 years ago in reply to kartben

    Thank you, your project worked after days of getting to the problem (yun not accessible by ip, router configuration, antivirus/firewall port testing etc.). After testing it on android and windows, i've noticed a bug (i don't know whether it's from the programming or the infineon's i2c protocol or i2c of yun , but when i toggle the square to the lowest intensity of lighting and then back on to maximum, the application crashes and becomes nonresponsive untill resetting booth yun and infineon shield (power cut). It's a nice application and i will try to improve it to do include automatic lighting too with the author's permission of course image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to kartben

    All very good points but having deployment options is a good thing which is why I posted a zip with the complete package that can be hosted wherever is convenient . Hosting the files on the YUN is not about where their hosted, just about a convenient place to put them for the home hobbyist. For home use, it has some benefits as any html5 capable device can pull the page and control the system in the home without having to expose the test system to the internet and all the nasties that await the unwary traveller image and you don't have to get to grips with GITHUB or other internet based applications. There all good options but not for all people

     

    MQTT is a great protocol and works well in an intranet as well as the Internet and of course is more than able to bridge the two, if your only going to have a single node then yes, a bit of overkill but if your planning on running many home nodes, having an MQTT broker as part of the master controller makes a lot of sense to me, easy to set-up, easy to integrate , easy to scale out and libraries exist for many small systems as the eclipse foundation supports and demonstrates so well and clearly

     

    leverage the eclipse.org sand box is great but knowing how to host your own provides so many more options to the developer

    • Cancel
    • Vote Up +2 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