Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
/ mqtt Public archive

MQTT Components for Broker,Paho Client, Scout Client, and Arduino Client

License

Notifications You must be signed in to change notification settings

bsi-software/mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT Setup with open source components

Arduino lamp off

The final Setup. When completed, you will switch your desktop lamp on and off using your mobile phone.

The Final Setup

This project lets you control your AC desktop lamp and read sensor data using your mobile phone. The project was presented at the session Build Your Open Source IoT Project from A to Z at JavaLand 2015 using these slides.

In the final setup the Raspberry Pi, the Arduino and the computer are all connected to the same wireless network. Both the Arduino and the computer will act as MQTT Clients that are connected to the MQTT broker running on the Raspberry Pi. The And the mobile phone to control the desktop lamp is using a HTML5 application that connects over HTTP to the web server running on computer.

For the communication between the Arduino, the broker and the computer the MQTT protocol is used. This protocol was designed as an extremely lightweight publish/subscribe messaging transport and is working well for internet of things (IoT) applications. All components are communicating over the same wireless network.

To simplify the setup and/or save costs and time you have the following options:

  • Remove Raspberry and Mosquitto from the project. Use a public MQTT broker instead: tcp://iot.eclipse.org:1883
  • Remove the nano USB wireless adapter and replace the Arduino WiFi shield with an Ethernet shield. Use Ethernet cables instead of wireless connections

Hardware

  • Desktop lamp, relay module, and a modified power cable
  • Mobile Phone
  • Computer
  • Arduino Uno with an Arduino Wifi Shield
  • Breadboard, some LEDs, a Light-dependent Resistor (LDR) a normal resitor, cables
  • Raspberry Pi with a nano USB wireless adapter
  • Wireless network

Software

About

MQTT Components for Broker,Paho Client, Scout Client, and Arduino Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages