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
    About the element14 Community
  • 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 2259 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 11 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…
  • kartben
    kartben over 11 years ago

    Ah, I see!

    The app is packaged with Bower so the javascript dependencies are not checked-in in the Git repository.

    So either you ask bower to fetch the dependencies (bower install), but maybe simpler if you're not familiar with Bower would be to check out the gh-pages branch of the repo which already has all the required files and that you can tweak without having to understand too much the Bower/Grunt black magic.

     

    HTH!

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

    Hi Alex -

    Serving the HTML/JS file from the Yun would kind of defeat the point of using MQTT in the first place, since you would only be able to access the web page from your local network (or would need to open a port on your Internet router...).

    The web "application" is fully static and is just a bunch of HTML and JS files you can host anywhere. In the video, the web page is served directly from GitHub Pages.

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

    Thanks for the answer, i even did a firmware update on the yun, i do have the latest IDE version aswell and played a bit with the bridge examples too. Still digging.

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

    The YUN can host web pages by simply putting them onto a SD card and inserting into the YUN

     

    Needs to be in a folder "arduino\www"

     

    then you should be able to browse to the page

     

    There are plenty of examples for "Bridge", the YUN interface mechanics between the Linux side and Arduino side

     

    You do need the latest Arduino IDE though, version 1.5.8

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

    Hello! Excuse my noobish questions but after programming the yun, where would you host the web application and how would you execute it? i'm trying to reproduce your nice project to better learn the mechanism of yun but i always find difficulties with eclipse. I already have eclipse for js. Do i need anything else besides your links to the project files? Thank you.

    • 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 © 2026 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