![]() Serial. #define relay8 9 //connect relay8 to pin 2 #define relay7 8 //connect relay7 to pin 3 #define relay6 7 //connect relay6 to pin 4 #define relay5 6 //connect relay5 to pin 5 #define relay4 5 //connect relay4 to pin 6 #define relay2 3 //connect relay2 to pin 8 #define relay1 2 //connect relay1 to pin 9 Write an Arduino program to control the home light using Bluetooth Module, 4 Chanel Relay Module with Android application. ![]() When the Bluetooth application's button turns ON, it sets the home light ON, and when the Bluetooth application's button turns OFF, it sets the home light OFF. The Arduino device read the input data and process it according to program uploaded inside it and generate the output to 4 Chanel Relay Module. The Bluetooth device receives the data from the app and sends it through TX pin of Bluetooth module to RX pin of Arduino. The Android app sends the serial data to the connected Bluetooth Module HC-05 by clicking ON button. In this project, there are four main components used: Android smartphone Bluetooth application, Bluetooth transceiver, Arduino device, and 4 Channel Relay module. Working principle of Arduino-Bluetooth Module AC 220v/120v home appliances or 9v Hi-Walt Battery.In this project, we use Bluetooth Module HC-05, Arduino Device, 4 Channel Relay module, etc. In this project, we are going to build a home light controlling system using the Bluetooth network. For the purposes of this tutorial, we are using a light bulb as a load.Next → ← prev IoT project of controlling home light using Bluetooth module, Arduino device, and 4 Channel relay module The “load” is the part of a circuit that consumes electrical energy in the form of the current and transforms it into other forms, like light and heat. Once you have all of the needed equipment, create your setup. Wire stripper, to strip plastic housings off wires.Screwdriver, to loosen and tighten screw terminals.Wire cutter, to cut wires to your preferred length.On top of that, you’ll need to have a few extra tools at hand: Copper cable (12 AWG should do, length depends on how long you’d like it).Here is the full list of items you’ll need before getting started with a relay module with your Arduino: You’ll need these to connect it to your Arduino. Normal SPDT relays don’t have pins that connect to microcontrollers. Lastly, you should get one in module form. SRD relays make a loud, clicky sound when their electromagnets shift between these positions. SRD relays are significantly cheaper than SSR relays at roughly half the price, but the benefit of them is that they’re silent when they turn on and off. An example would be SRD-05VDC-SL-C, which is an SRD type 5V relay module.Īnother thing to check is whether it’s an SRD or SSR relay. If you are shopping online, you should pick one that has “5VDC” in its model name. The detail instruction, code, wiring diagram, video tutorial, line-by-line. Unfortunately, most of these that are commonly available don’t work with an Arduino. Learn how to use light sensor to control relay, light sensor triggers light bulb. Your local electronics dealer might have many different kinds of relay modules on the shelves. ![]() Alternatively, consider enlisting the help of someone who knows their way around relays. If you are not 100% sure what you are doing, it’s best to abandon the project until you learn more about working on it safely. Please be careful and take safety precautions at all times. This can be dangerous, as you risk shocking yourself. Warning: If you’re using relays, you’re messing with high-voltage electricity. If you do that, it’ll never turn off, as electricity will just pass through the other wire. You can only have either NC or NO connected to the light bulb – never both at the same time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |