BLUETOOTH CONTROL LED
VIDEO LINK: https://youtu.be/drEbmP2fOp4
CODE:
//CREATIVE PRADEEP THE HOME OF ELECTRONICS//
char Incoming_value = 0;
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop()
{
if(Serial.available() > 0)
{
Incoming_value = Serial.read();
Serial.print(Incoming_value);
Serial.print("\n");
if(Incoming_value == '1')
digitalWrite(13, HIGH);
else if(Incoming_value == '0')
digitalWrite(13, LOW);
}
}
CIRCUIT DIAGRAM:
CHANNEL LINK: https://youtube.com/c/CreativePradeep
Comments
Post a Comment