Loading...
アイコン

Aatik's lab

チャンネル登録者数 2.66万人

1万 回視聴 ・ 162いいね ・ 2018/11/27に公開済み

#bluetoothlights #homeautomation #arduinobluetooth

In this video i will show you how to make a simple device which you can install with any kind of appliance and you can controll it by using your smart phone via bluetooth

easyeda.com/Aatik/Control-Any-Applience-With-Bluet…



ARDUINO CODE

int Led = 13;
int data;

void setup() {
pinMode(Led, OUTPUT);
Serial.begin(9600);

}

void loop() {

data = Serial.read();
if (data == '1')
{
digitalWrite(Led, HIGH);
}

if (data == '0')
{
digitalWrite(Led, LOW);
delay(200);
}

}

コメント

コメントを取得中...

コントロール
設定

使用したサーバー: directk