The first component that we need is a microcontroller. The one i will be using is arduino. Nano microcontroller is like a brain of a system, as it controls all the. If else conditions what will happen if this thing happens. All of these conditions, all of different scenarios are stored inside of this microcontroller and it instructs all of the other devices to operate accordingly. The second component that we need is a buildup module. Bluetooth module enables us to communicate between two devices. We will use the bluetooth module to send commands from our mobile phone either through an app or through voice recognition to our arduino, so that we can control devices from our smartphone. It has a total of six pins. As you can see right here. We have a statement which tells us whether it is currently connected to a device or not. Then we have the rxd pin, which is for receiving the signal, txt pin for transmitting the signal. Then we have the ground and vcc pins, and at the last we have the enable pin, enable pin is used for switching between different mods of bluetooth, module built in module. That we are using is hc05. It has two modes data mode or command mode. It has two modes: data mode or command mode. Data mode enables us to communicate between different devices, but the at command mode is more like a build module that we are using is hc05. It has two modes data mode, which is also called connection mode and the at command mode.

Data mode is used for communicating with other devices why at command mode is used for setup and configuration of module. The one we will be using throughout this course is the data mode of bluetooth module. The next component that we need is the relay module. As you can see right here, this is a two channel relay. They comes in different shapes, like one channel four channel or eight channel depends on the number of devices that you are going to. Control using arduino, so relay is a electrical switch that is operated by an electromagnet. It allows us to either open or close an electric circuit, so this enables us to send a signal from arduino and according to that signal, that switch will be either open or closed, thus resulting in our electric device connected to the relay. Turning on or off, this is the one general relay and it allows us to connect a single electronic device to our arduino. How does this work? We will discuss it in the later section now. The second component that we have right here is a two channel relay, as you can see right here, it allows us to connect two electronic devices at the same time to our arduino and control them according to the conditions that are stored in the arduino. So here you can see that it has the vcc, pin and input one input, two pins for both of our electronic devices, and here we have the switch, and here we have a total of six pins three for each relay.

We have our common pin in the center, normally open, pin and normally close when we will discuss them in detail in the later section, but for now lets move on to the next component, which is the dc voltage source. We need dc voltage source for our arduino. Nano bluetooth module and the relay module. Next we have the ac voltage source. It will be provided directly to our electronic device. Now the last component that we are going to discuss is the electronic device itself. It can either be a fan or a light bulb. The choice is totally us other than these components.