Control 8 devices by using bluetooth & SMAHO app

Status
Not open for further replies.

sirai.soft

Newbie level 3
Joined
Jun 21, 2015
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
21


**broken link removed**


SMAHO is an application allow to control you home by arduino or any microcontrollers support serial communication.
you can link you phone and arduino by using bluetooth module like HC-05 or HC-06 or other bluetooth module support serial communication.
SMAHO send letters to switch ON/OFF you device , uppercase to switch on and lowercase to switch off.
example for arduino:
char val; // variable to receive data from the serial port
void setup()
{
pinMode(2, OUTPUT); //
Serial.begin(9600); // start serial communication at 9600bps
}

void loop()
{
if( Serial.available() ) // if data is available to read
{
val = Serial.read(); // read it and store it in 'val'

if( val == 'A' ) // if 'A' was received
{
digitalWrite(2, HIGH); // turn ON the LED
}

if( val == 'a' ) // if 'a' was received
{
digitalWrite(2, LOW ); // turn OFF the LED
}
}
}
' end of code

so A/B/C/D/E/F/G/H to switch on and a/b/c/d/e/f/g/h to switch off.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…