Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
GOOGLE PLAY SMAHO.jpg

**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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top