a) Raspbian OS: This is the recommended os for raspberry pi. You can also installed other OS from third party. Raspbian OS is debian based OS. We can install it from noobs installer. you can Download here
b) Python idle: This is the software we get in raspbian os. For this project we have used python script.
c) Putty: We are using putty for remote access of Raspberry Pi.you can Download here
d) Win32DiskImager: This software is used to burn Raspbian Os on SD Card. you can Download here e) SDFormatter: This software is used to format memory card. you can Download here
How to Create Dashboard on MQTT:
In this step I'm going explain you about how we can create Mqtt Dashboard. So for that we are using Adafruit Mqtt. The UI of Adafruit IO is very user-friendly. So Step by step I'm going to explain you about this. So you just follow the process. So Here are the steps:
1. First you need to create account in io.adafruit.com
2. You will get the page like below, so fill these details, now when you will sign in you will get the page like below
3. In this page in the top right corner you will get some icons. From this you can click on 'Create a new block'.
So from here you can create toggle button or gauge or other things. So you can see creating blocks are very simple. Now one more important thing is 'Key' icon so click on that, and you will see that some random alphanumeric number you will get. That is your Adafruit IO Key this is very important note down that, this key you need to use on your python script. You can regenerate your key by clicking on REGENERATE AIO KEY.
Importing Adafruit IO for Your Python Script:
You need to import Adafruit io for your python script. So you can import that.
To use Adafruit IO with a Python program you can install and use the Adafruit io-client-python code from Github. This library can use both the REST API and MQTT API to access feeds and data on Adafruit IO.
Code and Video:
In this case we are going to do two important things. So we have two separate code for that. First of all we are going to publish Ultrasonic Sensor(HC-SR04) data to MQTT Broker. And then we are going to subscribe two topics Bulb1 and Bulb2. So here we can control two led by clicking these two toggle button Bulb1 and Bulb2 from MQTT Broker. So in this way you can control any electrical appliances and also you can get the data from any sensor and publish it in MQTT broker. Your data will be saved in the broker side.
You can get the source code from our github page. Here is the link
The whole project description are given in the below video
Congratulations you have successfully finished your project.
If have any doubt regarding this project feel free to comment us below or you can mail us on firstname.lastname@example.org And if you want to learn more about these type of project then feel free to visit our youtube channel
Thanks & Regards,