Here is a simple Android Bluetooth Remote Control Project for 2 Relays / Device using 89c2051 Micro-controller and HC-05 Bluetooth Module.
You can download circuit and hex file here http://www.hobbyprojects.com/bluetooth-device-control/
App Instructions:
1. First make sure your HC-05 Bluetooth Module is paired with your mobile. The default password for pairing is "1234" or "0000". Check the manual of Bluetooth module.
2. When you press ON button for Device 1 it sends the data "A" to Bluetooth Module connected with a circuit. Microcontroller turns ON the Device 1 relay when it detects "A".
3. When you press OFF button for Device 1 it sends the data "a" to Bluetooth Module connected with a circuit. Microcontroller turns OFF the Device 1 relay when it detects "a".
4. When you press ON button for Device 2 it sends the data "B" to Bluetooth Module connected with a circuit. Microcontroller turns ON the Device 2 relay when it detects "B".
5. When you press OFF button for Device 2 it sends the data "b" to Bluetooth Module connected with a circuit. Microcontroller turns OFF the Device 2 relay when it detects "b".
ဒီနေရာမှာ 89c2051 Micro-controller နှင့် HC-05 Bluetooth ကို Module သုံးပြီး 2 Relay / Device မှအဘို့ဟာရိုးရိုး Android မှာ Bluetooth ကိုထိန်းချုပ် Project မှဖြစ်ပါတယ်။
သင်ဒီမှာ http://www.hobbyprojects.com/bluetooth-device-control/ တိုက်နယ်နဲ့ hex ဖိုင်ကိုဒေါင်းလုဒ်ဆွဲနိုင်ပါသည်
App ကိုညွှန်ကြားချက်များ:
1. ပထမဦးစွာသင့်ရဲ့ HC-05 Bluetooth ကို Module သင့်မိုဘိုင်းနှင့်အတူတွဲဖြစ်ပါတယ်သေချာပါစေ။ တွဲဖက်များအတွက် default အနေနဲ့ password ကို "1234" သို့မဟုတ် "0000" ဖြစ်ပါတယ်။ Bluetooth ကို module ကို၏လက်စွဲစာအုပ်စစ်ဆေးပါ။
2. သင် Device မှ 1 ခလုတ်ကိုနှိပ်တဲ့အခါမှာတိုက်နယ်နှင့်ဆက်နွှယ် Bluetooth ကို Module မှဒေတာများ "A" လွှတ်လိုက်တယ်။ ဒါကြောင့် "တစ်" ကို detect သည့်အခါ Microcontroller ကို Device မှ 1 relay ကို ON လှည့်။
3. သင် Device မှ 1 button ကို OFF နှိပ်တဲ့အခါမှာက "a" က Bluetooth ကို Module တစ်ခု circuit ကိုအတူဆက်နွှယ်ကိုဒေတာပို့လွှတ်သည်။ ဒါကြောင့် "a" ကိုကို detect သည့်အခါ Microcontroller ကို Device မှ 1 relay ကို OFF ပြန်သွားလေ၏။
4. သင် Device မှ 2 ခလုတ်ကိုနှိပ်တဲ့အခါမှာတိုက်နယ်နှင့်ဆက်နွှယ် Bluetooth ကို Module အတွက် data "B က" လွှတ်လိုက်တယ်။ ဒါကြောင့် "B က" ကို detect သည့်အခါ Microcontroller ကို Device မှ 2 relay ကို ON လှည့်။
5. သင် Device မှ 2 button ကို OFF နှိပ်တဲ့အခါမှာတိုက်နယ်နှင့်ဆက်နွှယ် Bluetooth ကို Module အတွက် data "b", လွှတ်လိုက်တယ်။ ဒါကြောင့် "b", ကို detect သည့်အခါ Microcontroller ကို Device မှ 2 relay ကို OFF ပြန်သွားလေ၏။