This project tries to give comfort and comfort.
Maybe many have happened to us that when we go to sleep we forget to turn off the lights, but we do not want to wake up, maybe because it's cold, or because we're very tired or because there are monsters in the hallway, this tries to avoid those inconveniences to make life a little more simple, besides having power control to have as much light as we want
Step 1: Arduino Code
We will use a bluetooth HC-06 module, for this, we will establish the communication in the program for our Arduino Mega, we will declare the necessary parameters to be compatible with the application "Ardudroid", the application contains 13 cases, through them we can control the different loads using a relay if it uses 120 A.C. or common lamps of 12v using a circuit with transistor; in this project we will use it to control light bulbs.
However it can be used for more things.
Step 2: Conection
To connect our arduino to our bluetooth module, follow the instructions of the image, after this, before uploading the program, disconnect the tx and rx ports, once loaded, connect them INVERT (ie rx to tx of arduino and tx to arduino rx)
Step 3: App
Once connected all, open the application Ardudroid and connect the device (usually must be intetnar 2 times to get it)
Step 4: First Test
Using a simple Led and a resistor, we are going to probe the function of the app
Step 5: The Charge
Now that we verify the correct operation of the application and the device we will proceed to connect our load, in this case a light bulb.
Following the example of the image, we will connect the load through a relay to the arduino to control it, this will be with pins 2 to 13
Step 6: Extra Information
The application can control the power of certain artifacts, this using an Moc if the charge to be controlled is 120 A.C. or a transistor if the load uses D.C.
If it is desired to control the power of a device, the signal will be connected to the pins 3, 5, 6, 9, 10 or 11
The current program that I uploaded, has an additional one, which is the temperature reading, is used with a lm35, the signal goes to port A0 and if you want to read, you must press pin 2, to write the current temperature in the application
Step 7: I Hope It Works for You
If you have comments send me an email