Control Room Lights With Android Phone Project
by Creative creator in Circuits > Electronics
1574 Views, 2 Favorites, 0 Comments
Control Room Lights With Android Phone Project
![Control Your Room Lights With Your Phone](/proxy/?url=https://content.instructables.com/FGM/OJ3Y/K8WKSKS2/FGMOJ3YK8WKSKS2.jpg&filename=Control Your Room Lights With Your Phone)
Introduction:
Today right now will Discuss the Relay module. Here I will make a 12 Channel transfer Board. This hand-off board interfaces through Bluetooth. What's more, in particular, you can control room lights/all heaps with a solitary pinch of your Phone. along these lines, likely numerous clients will like it on the off chance that they don't have any substantial IR sensor in the Phone. The Brain of this Project is Arduino. Along these lines, fundamentally, you will figure out how to compose a straightforward Arduino code.
For the components section, I have gone with UTSOURCE. They are one of the largest component suppliers in China. They offer different types of components such as Resistors, Capacitors, ICs and many other things. You will get exclusive discounts If you order from them. So, why you are waiting for? Place your first order from UTSOURCE.
Supplies
0 Profit selling KN95 masks and Infrared Thermometer from UTSOURCE.net: https://www.utsource.net/home/healthcare
Components needed:
Arduino Nano: https://www.utsource.net/itm/p/9221680.html
HC-05 Bluetooth: https://www.utsource.net/itm/p/7566177.html
Relay: https://www.utsource.net/itm/p/9510225.html
12V Adapter: https://www.utsource.net/itm/p/9221236.html
Resistors: https://www.utsource.net/itm/p/8328095.html
Capacitor: https://www.utsource.net/itm/p/1872752.html
Screw Terminal Block: https://www.utsource.net/itm/p/612970.html
Female Header: https://www.utsource.net/itm/p/8297352.html
5MM Green LED: https://www.utsource.net/itm/p/9942990.html
5MM Red LED: https://www.utsource.net/itm/p/9942990.html
Push Button: https://www.utsource.net/itm/p/8406560.html
LED Bulbs: https://www.utsource.net/itm/p/9942990.html
Wires: https://www.utsource.net/itm/p/9221308.html
BC547 Transistor: https://www.utsource.net/itm/p/6964442.html
1N4007 Diode: https://www.utsource.net/itm/p/300046.html
Soldering Iron: https://www.utsource.net/itm/p/8368922.html
Arduino Uno R3 Board: https://www.utsource.net/itm/p/7281975.html
Tools Needed:
Soldering Iron: https://www.utsource.net/itm/p/8423764.html
Iron Stand: https://www.utsource.net/itm/p/7722853.html
Nose Pliers: https://www.utsource.net/itm/p/7671655.html
![12-Channel-Relay-Home-Automation-1.png](/proxy/?url=https://content.instructables.com/F83/NAYG/K8WKSGS2/F83NAYGK8WKSGS2.png&filename=12-Channel-Relay-Home-Automation-1.png)
The venture has high intricacy on the off chance that I make the circuit on Breadboard or zero PCB. Due to this multifaceted nature, I have gone with Custom Designed PCB from JLCPCB. They are likewise supporting for this Project. Following multi week later, I got my PCB bundle from JLCPCB.
![12-Channel-Relay-Home-Automation-2.png](/proxy/?url=https://content.instructables.com/F1J/V59U/K8WKSGST/F1JV59UK8WKSGST.png&filename=12-Channel-Relay-Home-Automation-2.png)
At next I have checked Solder cushions associations. Furthermore, the one thing I need to state is that the PCB quality is uncommon. In the event that you have Big ventures in your psyche, at that point checkout JLCPCB, in any event, one time.
![12-Channel-Relay-Home-Automation-5.png](/proxy/?url=https://content.instructables.com/FC5/QQQT/K8WKSGX8/FC5QQQTK8WKSGX8.png&filename=12-Channel-Relay-Home-Automation-5.png)
At that point, I assembled all the parts and put all the segments on the PCB. At that point, I patched all the parts into the PCB.
Note:
![12-Channel-Relay-Home-Automation-4.png](/proxy/?url=https://content.instructables.com/FAT/ZCFU/K8WKSJW1/FATZCFUK8WKSJW1.png&filename=12-Channel-Relay-Home-Automation-4.png)
![12-Channel-Relay-Home-Automation-3.png](/proxy/?url=https://content.instructables.com/FT5/RV8V/K8WKSJW2/FT5RV8VK8WKSJW2.png&filename=12-Channel-Relay-Home-Automation-3.png)
I have utilized Sticky Tape for fixing all the segments in its place. Thus, the parts won't move from its place. After the Soldering procedure finishes, we can evacuate the Sticky Tape.
In the wake of expelling all the Sticky Tabe, the PCB looks extraordinary. Here is the closeup of the PCB. The welding process is simple due to Prebound copper follows.
![12-Channel-Relay-Home-Automation-6.png](/proxy/?url=https://content.instructables.com/FC6/Z9IT/K8WKSHEY/FC6Z9ITK8WKSHEY.png&filename=12-Channel-Relay-Home-Automation-6.png)
We should program the Arduino Nano. I have associated the USB with Arduino Nano and my Mac. At that point, I ordered it first. Next, I transferred the code to Arduino. One thing you should deal with. In the event that you interface the Bluetooth Module while transferring the code. At that point, the code won't be transferred. It will give you a few sorts of Error. In this way, It is constantly prescribed to evacuate the Bluetooth network before transferring the Code.
![12-Channel-Relay-Home-Automation-7.png](/proxy/?url=https://content.instructables.com/F33/DCUG/K8WKSHKG/F33DCUGK8WKSHKG.png&filename=12-Channel-Relay-Home-Automation-7.png)
At that point, I appended Bluetooth Module HC-05 and the Arduino Nano to the PCB. Presently we should interface power with the circuit. I have planned the circuit to work with 12v. along these lines, first I associated 12v +ve and GND wires with the PCB. At that point, I associated the opposite finish of the wires with 12v Power supply. Here I am utilizing a 12V Computer Power Supply.
Application:
![12-Channel-Relay-Home-Automation-8.png](/proxy/?url=https://content.instructables.com/F9Q/24L1/K8WKSKAV/F9Q24L1K8WKSKAV.png&filename=12-Channel-Relay-Home-Automation-8.png)
![12-Channel-Relay-Home-Automation-9.png](/proxy/?url=https://content.instructables.com/F2A/5CG2/K8WKSKB3/F2A5CG2K8WKSKB3.png&filename=12-Channel-Relay-Home-Automation-9.png)
At present, My application is just accessible for Android clients. On the off chance that I plan the application for iOS, at that point I will refresh this later.
For the time being open Bluetooth in your Android Device. At that point search for HC05 Bluetooth. The default secret key for the Bluetooth is 1234 or 0000. More often than not, the secret word is 1234.
Presently give the secret phrase and associate it with your Bluetooth.
![12-Channel-Relay-Home-Automation-10.png](/proxy/?url=https://content.instructables.com/FOC/07DB/K8WKSKPQ/FOC07DBK8WKSKPQ.png&filename=12-Channel-Relay-Home-Automation-10.png)
![12-Channel-Relay-Home-Automation-11.png](/proxy/?url=https://content.instructables.com/FFU/98YX/K8WKSKQI/FFU98YXK8WKSKQI.png&filename=12-Channel-Relay-Home-Automation-11.png)
![12-Channel-Relay-Home-Automation-12.png](/proxy/?url=https://content.instructables.com/FJH/2JIM/K8WKSKQN/FJH2JIMK8WKSKQN.png&filename=12-Channel-Relay-Home-Automation-12.png)
Next, download the application from the depiction. What's more, introduce it to your Android Phone. You may need to give consent from Unknown Sources. Simply permit the settings and Install the application.
Presently open the application and snap on the Connect Button. Presently from the given menus select the HC05 Bluetooth. Just because when you have not associated with the Bluetooth then the Bar shading will be Red. After you associate the Bar will be Green.
Right now, we can distinguish if the HC05 Bluetooth module is associated or not. Beneath the "Interface with Bluetooth" Button, you will discover 12 Toggle catches. These flip catches are utilized for turning On/Off the Relays. Finally yet not least I have likewise included at the same time switch. On the off chance that you press the switch, at that point all transfers will be turned on all at once.
There are largely the details of the application. Obviously, you can include more switches by including not many more Functions. In any case, I need to make the task as straightforward as could reasonably be expected.
Burden Connection:
Now, how about we append loads with the circuit. As you folks realize the PCB contains 12 Relays in this way, we can without much of a stretch associate 12 Loads with the circuit.
First I took 12 Holders for 12 lights. At that point, I have associated the Holders with arrangements with the hand-off. Furthermore, the association terminal will go to the mains voltage.
Right now, I have associated all the Light Holders with the transfers. Presently for the AC power Input, I have utilized one 2 pin plug and associated each of the 12 sets of wires in equal.
Circuit Schematics:
![Bluetooth-Home-Automation-Circuit-Diagram-1.png](/proxy/?url=https://content.instructables.com/FHG/LFYF/K8WKSLE0/FHGLFYFK8WKSLE0.png&filename=Bluetooth-Home-Automation-Circuit-Diagram-1.png)
![Bluetooth-Home-automation-PCB.png](/proxy/?url=https://content.instructables.com/FQB/Z6PG/K8WKSLE3/FQBZ6PGK8WKSLE3.png&filename=Bluetooth-Home-automation-PCB.png)
I have made the circuit outline on Online free Software EasyEDA. I have likewise utilized a few hubs for making the associations straightforward.
There are numerous parts in the circuit. Keeping everything in my psyche I have additionally made an appropriate PCB for the circuit. I requested it from JLCPCB. Here is the PCB Front Layout.
Presently I turned on the 12V force Supply then I turned on the 230v AC Power Supply for the ensuing burdens. At that point associate the application with Bluetooth. At that point Turned on a portion of the flip switches as should be obvious the Loads are working perfectly.
Download Links:
Schematics: https://drive.google.com/open?id=184jJ0VFkjh52S3En...
PCB Image: https://drive.google.com/file/d/1Yxf_KwBA2VLETktUm...
Home Automation PCB Garber: https://drive.google.com/open?id=1pYWyhy7tgoHFFaTQ...
App Inventor Block Image: https://drive.google.com/open?id=1DhcrP4bny_AIlpvI...
Arduino Bluetooth Home Automation Code: https://drive.google.com/file/d/1DVmSDlpkKlCYR7Rag...
Home Automation App: https://drive.google.com/file/d/14i-NAiTWkem8Qt9qQ...
How Does the 12 Channel Transfer Board Work to Control Room Lights?
![12-channel-relay-module-app-Inventer-1.png](/proxy/?url=https://content.instructables.com/F91/XOZ0/K8WKSLLA/F91XOZ0K8WKSLLA.png&filename=12-channel-relay-module-app-Inventer-1.png)
![12-channel-relay-module-app-Inventer-blocking-2.png](/proxy/?url=https://content.instructables.com/FGW/P9YW/K8WKSLPM/FGWP9YWK8WKSLPM.png&filename=12-channel-relay-module-app-Inventer-blocking-2.png)
The fundamental heart of this venture is Arduino Nano. What's more, for the remote correspondence, I am utilizing an HC05 Bluetooth Module. What's more, for dealing with the High loads I am utilizing 12 Relays couple with some driving transistors.
And ultimately, for controlling the circuit we will require an application. BTW I have planned an application from MITApp Inventer for this venture.
Here are largely the individual squares for making the application. On the off chance that you are structuring the application for yourself, at that point this may can support you. Here I utilized Toggle Button So the Code is somewhat long I think as I would see it. You can likewise utilize some straightforward press fastens in the application. The Pushbuttons will limit the Code. Yet, For my situation, I find that the Toggle Buttons look progressively noticeable from Pushbuttons.
At next Let's Talk about the circuit. I mean How the 12 Channel transfer module functions? The Arduino has advanced pins just as simple pins. Here I have utilized every computerized pin which are I think altogether is 12. I utilized every one of them. The Digital pins give High or Low Pulses. High methods 1 and Low methods 0. The High heartbeats turn the Driver Transistor on and afterward the Driver Transistor turns the transfers on for loads.
Conclusion:
Along these lines, all things considered, I can say it is an enjoyable venture, in any case. Be that as it may, I confronted a few troubles while making the undertaking. For example, making the application. I am not an application engineer from my experience. In this way, it took a great deal of time. Be that as it may, finally, I thought of a completely working 12 channel hand-off module circuit with Bluetooth. I will express gratitude toward UTSOURCE & JLC PCB for making this video conceivable. Something else, there are such a large number of associations. Appending this circuit in a breadboard resembles genuine annoyance. So we can pronounce the task an extraordinary achievement. All schematics, PCB structure, PCB creation record, Arduino Code, application Inventor hinders all are given in the portrayal. I trust you folks like my interpretation of the 12 channel transfer module Board with Arduino Nano.
You can likewise peruse our different articles about Arduino.