However, a much cheaper and more profitable option is to build your own smart home system. In this article, we’ll cover the basics of how a Smart Home system works and provide some examples of easy DIY Arduino projects that anyone can do.
DIY smart home: an overview
The Arduino in these examples controls the device of our choice when triggered. YouTuber EEEnthusiast has a simple example of turning on an LED with a button to visualize the order of operations.
In the example above, the Arduino reads the input voltage from the button using digitalRead . When voltage is read as HIGH it turns on the LED with digitalWrite, to set its output to HIGH . When the button is not pressed, the LED is off or SHORT .
This simple example is the heart of any automated system. All you have to do is change the inputs and outputs to something useful.
There are several ways to instruct your microcontroller to perform a task. The first — infrared (IR). This method can have its benefits if you are using an Arduino board without an internet connection. You can salvage parts from old electronic components and quickly set up and run the remote control. This is a detailed guide from YouTuber GreatScott! Not only is it a great tutorial on how to use IR in your projects, but it’s also a complete build to drive a 12V RGB LED strip!
The second way is to connect your microcontroller to the internet. There are several ways to approach this. If you’re using the official Arduino or a clone, you may need to buy an Ethernet or Wi-Fi shield, although there are ways around this. A much better option is to get a board that already has the connection built into it. The NodeMCU is perfect for this, and we often sing the praises of this little board for good reason!
a guide to Blynk can be found in our guide to