Guys, In this post, I will show you how you can create this Arduino Home Safety Monitor to identify LPG Leakage, temperature rise, ambient light, humidity and pressure of your home, especially the kitchen, and see the data in these interactive dashboards in real time.
This will also alert you via SMS, mail or Telegram, if something goes wrong or if it detects any danger. You can access this dashboard and monitor your home from anywhere in the world.
In this tutorial, I will share everything to make this one yourself. I will explain the circuit, share with you the PCB Design and layout, and the Arduino code.
This project is sponsored by PCBWay. PCBWay is a PCB manufacturer specializing in PCB prototyping, low-volume production and neat and tidy PCB Assembly. They deliver high quality PCB faster and cheaper.
As one of the most experienced PCB manufacturers in China, they pride themselves to be our best business partners as well as good friends in the every aspect of your PCB needs.
Guys. Before going further, if you find this video useful, consider supporting my channel by giving this video a like and subscribe to my channel by clicking the subscribe button below. I would really appreciate it.
Ubidot provides a simple and secure method for sending and receiving data to and from IoT devices using the global cloud network in real time. Ubidots provides a firm platform for hobbyists, enthusiasts as well as professionals, enabling them to easily retrieve and use the sensor data around the world and turn it into something useful.[AdSense-C]
We can use the Ubidots platform to send various sensor values or other data to the cloud, store it there safely and retrieve them anytime we want using simple API calls.
Components Needed for Arduino Home Safety Monitor
The Reason why I chose Arduino Nano 33 IOT is, they are very small, pin to pin compatible with arduino nano R3 and it even have an inbuilt WiFi module which will come in handy.
So lets get started.
Guys, I have designed a PCB layout where you can easily mount your Arduino Nano 33 IOT and your Sensors, set this up without using messy wires and cables hanging around. The board is lightweight and can be powered using a 9V battery or a 9-12 V power adapter.
Here is the Circuit Diagram and the PCB Layout.
Getting the PCB from PCBWay
To order your PCB from PCB way, Go to PCBWay and fill the board details in the instant order form.
From there you will be directed form where you can provide more elaborate board details and Gerber upload.
Update your board requirement information in the PCB Specification screen.
You can change the board thickness, board color, silk color, and even the type of finish you want. Some of these add-ons are going to increase the board cost.
Once you have all of the various options for your PCB selected, submit it for review. Before your board goes into manufacturing their team of professional technicians will review your design for any potential errors.
Once the review is completed, all that is left is to add to cart, make payment, and wait for your PCBs to arrive. It could take anywhere from 3 – to 6 days to be produced depending on the number of boards you ordered.
Soldering
Once you get all the components, it’s time for you to solder them together. Solder all the components onto the board and make sure to check the polarity of the components.
I personally find soldering on this kind of PCBs a fun task, because of this pads soldering becomes very easy. The solder takes up the conical shape and get soldered from all the sides evenly. After soldering the PCB looks like this.
Next, Go to this link and create a free account in Ubidots education. If you already have an account simply sign in with your credentials.
Next we have to create a device. Since we are using Arduino for Safety moitoring, let us name the device “Home Safety Monitor”. Here you can see I have already made this device.
Now click on the device you just created. Now it will show you all the variables which are linked to that device. In this project, we will need variables for storing and displaying the values for temperature, pressure, ambient light, LPG reading and Humidity.
Now from the dashboard, click on add new widget. There you will see several type of widgets that you can assign to your variables. These widgets gives a visual representation of the data that we will be collecting.
In this project, we will be transmitting the data from our Arduino Home Safety Monitor to the Ubidots server using UDP Packets.
Every packets requires a TOKEN. The easiest way to get yours is clicking on “API Credentials” under your profile tab:
You’ll notice there are two types of keys in your Ubidots account:
Take a note of all the parameters – >Device Label, Device ID, Variable ID and Token. We will be using it in the code.
Now you can upload the below code to your arduino. You will find the code in the description.
Get the Code from Here – Arduino Home Safety Monitor Code
Before uploading, you will have to add a few things to the code
Now it’s time to upload the code
Code Explained
What this code does is,
These packets will be received by the ubidots server which extract the values and will be stored in the respective variables.
These widget provides a wonderful graphical representation of the data and will be displayed on the dashboard.
Now power on the circuit and bring a light source or an LPG source close to the sensor board. You will find the graphs being changed in real time. You can access this dashboard and monitor your home from anywhere in the world.
Discover creative ways to recycle old electronics into new, useful gadgets. Turn your electronic waste…
Explore the top 10 advanced LED projects that go beyond basic lighting. Perfect for electronics…
The integration of UV resin into the PCB production process represents a great achievement and…
Discover essential tips for electronics engineering graduates to gain practical experience, from internships to DIY…
Learn essential tips on setting up your workspace, choosing the right tools, and starting your…
The electronics sector is about to undergo a revolutionary period that will be characterized by…