Have you ever found yourself lying in bed, yearning to switch off the light without having to get up and move? Well, we have the perfect solution for you! Introducing our innovative project: The Bluetooth light switch.
Each wall switch is equipped with two wires that need to be connected in order to send power to the light and turn it on. To achieve this, we will utilize a relay, which functions as an automated switch. When the relay receives power, it establishes a connection between the two wires, and when it is switched off, the connection is severed.
We will turn on the relay using two ways: Button: We can activate the relay by pressing a physical button. Bluetooth: Alternatively, the relay can be activated wirelessly using Bluetooth technology.
To provide power to the entire circuit, a USB cable was modified by separating the positive (+) and negative (-) wires. These wires were then connected, and the USB was plugged into a standard 5-volt USB charger.
For this particular project, a custom Bluetooth application was developed. If you prefer to use a different app, please note that the command to turn the relay on is "1#", while the command to turn it off is "0#".
In the app, you can choose which Bluetooth device you want to connect to and then click the on or off button to turn it on. You can find the apk in the project download files.
Before mounting the components on the wall, two important steps must be completed. Firstly, all wires need to be soldered together to reduce their overall size, enabling them to fit inside the wall. Once all the connections have been soldered to the Arduino Nano, the existing wall switch needs to be removed. Next, the two wires from the wall switch should be connected to the middle plug and the normally open (NO) plug on the relay. After ensuring all connections are secure, the components can be safely tucked inside the wall. For added protection, I recommend using tape to cover and secure everything in place.
Working with high power is very dangers and you will need to be careful. Make sure you turn off the fuse first before doing everything
Contact me or more info at Arduino Project https://projecthub.arduino.cc/dzh121/light-switch-bluetooth-329578