0

July 8, 2016 AT 8:21 am

Demo of IoT Control via MQTT on #RaspberryPi #piday

Kenneth Finnegan demos using a readymade MQTT app and “15 lines of Python” to turn off/on some LEDs, for future use in a tower light, or other type of multi-light indicator.

mqtt0

mqtt1

mqtt2

Watch the video below and read more here on Kenneth’s blog.


 

MQTT is essentially an Internet of Things protocol which is designed to pass single short messages between a set of devices publishing messages to a set of devices which are subscribed to that topic.

A fantastic example of where you might use MQTT is an Internet-connected light switch plus light bulbs. You would first define a topic for your room (i.e. home/livingroom/lights/ceiling) and then configure all the appropriate light bulbs to subscribe to that topic and listen for any messages published to it. You could then configure a light switch on the wall to publish “ON” when you flip it up, and “OFF” when you flip it down. Flip the switch up, it publishes the message to the MQTT broker, which forwards it to all the lightbulbs subscribed to the home/livingroom/lights/ceiling topic, which would all respond accordingly. BOOM! IoT paradise! What could possibly go wrong?!

Read more here on Kenneth’s blog.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Transforming Today’s Bad Jobs into Tomorrow’s Good Jobs

Wearables — Not a loophole

Electronics — Rule of thumb: 10mils per amp.

Biohacking — Soft Artificial Human Heart #3DThursday #3DPrinting

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.