【 Home Automation System with Raspberry Pi 】 Step by Step Guide ▷ 2022

Currently the houses with have had a very significant boom, all this thanks to the fact that the devices that allow it have dropped in price enormously.

The home automation are those that contain two systemsa system internal and one external and which can be used for control, measure and automate various elements and factors of the house.

One way to start turning your home into a smart home is through this is how we are going to teach you how to create your own automated system at home by using these plates.

What are the most interesting home automation devices that I can develop with a Raspberry Pi?

The use that can be given to these plates is really very broad, this is how they can be used to carry out a large number of projects of all kinds, which can range from a video surveillance system, a telephone exchange, a , or as a home automation controller for your home.

Perhaps one of the most popular plates to carry out these projects is that of Arduino, but the truth of all this is that the raspberry pi also adds to it, so it offers you the possibility of create different home automation devices that will help you control your home intelligently. Some of the most interesting devices that you can create with this microcomputer from home without much hassle are the weather stations.

This allows you to create sensors for your home, either to turn the lights on or off, open or close the doors, create an anti-theft alarm system, smart blinds, smart speakers, among many other projects that you will be able to create. In this way you can start working with a Raspberry Pi like a whole home automation professionalwhere you can create from the simplest to the most advanced projects in order to convert your home into a smart home at a very low cost.

What do I need to create a home automation system with Raspberry Pi like a pro?

if you have a raspberry pi in your home and you want to go a step further and get away from the basic or simple projects that you do with it, then you will have the opportunity to jump into home automationin this way you will be able to start controlling various elements of your home intelligentlywhich can be beneficial for you and your entire family.

Therefore, to start creating a home automation system like a professional, you will need to have the following elements on hand:

  • A plate raspberrypi, it is most recommended that it be a model Pi 2 or higher, although the best would be a Raspberry Pi 3 or Pi 4, since they are much more powerful and have wireless network connections added in their system, so you will not have to use a Wifi adapter as if it happens with the Pi 2.
  • Grove: Light Sensor (LDR)
  • InfiniPi: It is a kit that contains the following essential elements to carry out these projects, such as 2 relay outputs, 1 I2C input with grove Connector, 3 analog inputs with grove connectors and is compatible with Socket XVee. Each of these elements will allow you to connect your Raspberry Pi to different communication protocols, as well as control other devices, measure analog sensorsamong many other possible activities.
  • A transformer for 5V / 2.5V Raspberry Pi
  • Display.
  • A keyboard and mouse
  • Light bulbs.
See also  【 GRANTORRENT 】What Happened? + Alternatives ▷ 2022

When you already have all these materials, then you will have the opportunity to start create your own smart projects for your home like a professional.

Raspberry Pi and Arduino How to combine both boards to develop a complete home automation system throughout your home?

Both are two very similar devices in the form of a plate and both coincide in one of the uses that are given to them, such as being able to be used to carry out all kinds of , but the truth of all this is that both were designed for other activities.

However, so that you can understand this a little better, here we are going to briefly explain what each of them consists of:

Arduino

This plate is a platform of electronic creation of with which you will be able to design a large number of projects of all kinds, being of free software and hardware anyone can make use of it. Currently on the market you can find several models of plates, accessories and compatible applications created by different developers.

Thus Arduino offers what is the platform (Integrated Development Environment), which becomes a programming environment with which anyone can create applications for the and give it different utilities. This is how this electronic plate allows you to create different types of home automation projectsso it will be a great ally for you if you want to give intelligence to your home.

Raspberry Pi

It is a single board computer with a very economical price, it is considered powerful enough to carry out basic tasks, as well as programming and compiling programs that run on it. Despite having a very small size, it has the ability to connect different types of accessories for its usability. You can find different models of these microcomputers where each of them allows you to carry out different types of projects according to the requirements that are needed.

It should be noted that this board lacks a internal storage so your operating system must be installed on a micro SD card, as well as its applications. The official plate system is an adapted version of the Debian distribution called Raspbian, but you can adapt other operating systems such as Windows 10 for Raspberries Pi. Like Arduino, it allows you to carry out a large number of electronic projects that will allow you to control various factors in your home.

See also  【Types of Computer Attacks】How to Defend Us? ▷ 2022

How both platforms work

As already mentioned, both electronics devices They are amazing for carrying out a large number of projects, best of all, they are cheap and each of them has its own pros and cons. In the case of Arduino It is recommended to carry out projects that are smaller, such as controlling the alarm system of the house, how to create a reverse sensor for the caramong many other such projects.

While in the case of the raspberry pithanks to all its power and components, it has become a device that perhaps can be used to carry out more complex projects or that in a certain way require a full operating system.

So that the difference between the two in terms of their capabilities can be understood a little better, the following can be taken as an example:

  • If what you are looking for is create a small vehicle and just want it to movethen Arduino is enough, since it is the best alternative for a job that will require an immediate response such as sending electricity to the motors of the wheels and for the sensors to interpret the information.
  • But now if what is sought is that the vehicle drives autonomously, then all this will change. In order to interpret the information from the sensors or the environment so that the vehicle can make its decisions, more elaborate processing would already be required. For what is required of a computer with more computing power how can it be the Raspberry Pi.
  • This does not mean that some of them are better than the other, since most of the projects carried out with both are similar. But it should be mentioned that both Arduino and Raspberry Pi can be complementarysince there are some plates like arduberry that will allow you connecting Arduino shields to a Raspberry Pi and thus go accordingly the best of each one and create projects that are much more advanced.
  • Where arduino can put the details more simple and basicand then give it a touch of greater professionalism with the Raspberry Pi. Therefore, the joint use of these two boards will allow you to go one step further than any other electronic project created with either of them.

We teach you how to create a complete home automation system with Raspberry Pi and Infinity Pi to automate your entire home from scratch

If you’re thinking of create your own home automation project with Raspberry Pi, So here we are going to explain how you can create this whole system completely with these microcomputers. Keep in mind that in order to carry this out you must have the necessary materials for it, which are already mentioned in the post.

See also  【 Create Intro for your Podcast 】 Step by Step Guide 2022

Therefore, to start this procedure you will only have to follow each of the steps that we will indicate below:

Wiring

  • The first thing to do is place the InifiniPi on the raspberrypi, you must make sure that the pins are available to them.
  • Then you must insert the Grove LDR-sensor in the A0 input of the InifiniPi.
  • Now you are going to hold the cables that go to the relay output towards the mains and the light bulb.
  • The next thing will be to program the raspberry pi 3 with which to work on this occasion. Here it is necessary to connect the peripherals such as the mouse, keyboard, monitor and the transformer, to put the board to work.

Programming

To start with the programming it is necessary to import the libraries, for this you must follow the instructions of the following links:

  • https://www.abelectronics.co.uk/kb/article/23/python-library-and-demos
  • https://ubidots.com/docs/devices/raspberrypi.html#send-one-value-to-ubidots

When you have already imported the libraries, the next thing to do is to copy the code into your python file (it has been executed in version 2.7.13, since the Ubidots bookstore is in that version). where they are the asterisks “*”, you are going to replace them with your Token and Variable ID. When the code is executed, the frame that is sent to the platform can be viewed.

Code

#!/usr/bin/python #!/usr/bin/env python # -*- coding: utf-8 -*- from ubidots import ApiClient from ADCPi import ADCPi import RPi.GPIO as GPIO import math import time import os import random setmode(GPIO.BCM) setup(22, GPIO.OUT) adc = ADCPi(0x6e, 0x6e, 18) while (True): # clear the console system(‘clear’) #Create an “API” object api = ApiClient (token=’********************************’) #Create a “Variable” object variable = api.get_variable(” ************************”) #Here is where you usually put the code to capture the data Light= adc.read_voltage(1) if Light< 1.5: output(22,True) else: output(22,False) # Write the value to your variable in Ubidots response = variable.save_value({"value": Light}) print(response) sleep(5)

Functioning

When the sensor is covered, it can be seen that the value is less than 1.5, what will cause the relay activates and lights the bulb.

List of the best home automation devices that you can create with Raspberry Pi and Arduino to fully automate your home

As previously mentioned in the post, today you can…

Loading Facebook Comments ...
Loading Disqus Comments ...