Download presentation
Presentation is loading. Please wait.
Published byAlexis Eaton Modified over 8 years ago
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 }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.