Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.

Similar presentations


Presentation on theme: "Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module."— Presentation transcript:

1 Arduino + Bluetooth TYWu

2 Connection Arduino + Bluetooth Module

3 Arduino Sketch Code char val= 'L'; int ledpin = 13; void setup() { pinMode(ledpin, OUTPUT); Serial.begin(9600); }

4 Arduino Sketch Code void loop() { if(Serial.available()) // if data is available to read val = Serial.read(); // read it and store it in 'val' if(val == 'H') // if 'H' was received digitalWrite(ledpin, HIGH); // turn ON the LED else digitalWrite(ledpin, LOW); // otherwise turn it OFF delay(100); // wait 100ms for next reading }


Download ppt "Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module."

Similar presentations


Ads by Google