Wireless home appliance control using 8051 [SMS + Bluetooth]. Built and tested using Keil uVision and Proteus
- HC-05 TX and GSM module’s TX are multiplexed using a 4:1 MUX, where the select pin is connected to STATE pin of HC-05.
- The STATE pin goes HIGH when a Bluetooth device is connected. Hence the Bluetooth control is given higher priority over GSM control (Stand-out feature). [Tested using HARDWARE]
- The STATE pin is also an input to the 8051 to run subroutines according to the communication used.
- In HC-05 Bluetooth mode, a Serial communication app in the smartphone has pre-programmed STRINGS according to conventions.
- When a button is pressed, the corresponding string is transmitted to HC-05 and therefore, it reaches the 8051 at a baud rate of 9600.
- The string is processed and corresponding appliance is switched ON/OFF using relays
- User sends a message asking the system to switch ON/OFF an appliance.
- The GSM module receives the message. It sends a message to the 8051 with the message location.
- The message location is extracted and AT commands are sent to the GSM module from the 8051 asking for the data SMS.
- The GSM module sends the message packet, with metadata like phone number, name, date and time.
- The 8051 parses and extracts the useful and required data.
- 8051 switches ON/OFF the appliance using relays accordingly.

