Hello,
I try to switch led with HM-10 bluetooth module and I need help.
My phone identified the module,
I burned this sketch to arduino uno:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0,1); // RX,TX
boolean val; // HM-10 Communication Indicator
void setup()
{
Serial.begin(9600); // Communication With Computer
mySerial.begin(9600); // Communication With HM-10
pinMode (8, OUTPUT); // pinLed
}
void loop()
{
if(mySerial.available()) // There Are Communication?
{
val=(mySerial.read()); // Yes-true , No-false
if(val == true)
digitalWrite(8,HIGH);
else
digitalWrite(8,LOW);
}
delay (100);
}
I used app called "ArduDroid by TechBitar"
There are opstion to choose pins that send pulse.
I will gratefull if you tell me where I am worng.
By the way I new at arduino business but I have experience with C language.
Thanks.