Add the following snippet to your HTML:<iframe frameborder='0' height='385' scrolling='no' src='https://www.hackster.io/m_karim02/arduino-to-smartphone-communication-503682/embed' width='350'></iframe>
Control Arduino from your smartphone or laptop using Bluetooth.
Read up about this project on
int led = 13; void setup(){ Serial.begin(9600); pinMode(led,OUTPUT); digitalWrite(led,LOW); } void loop(){ if(Serial.available()){ String value = Serial.readStringUntil('\n'); Serial.println(value); if(value == "on"){ digitalWrite(led,HIGH); } else if(value == "off"){ digitalWrite(led,LOW); }}}
Please log in or sign up to comment.
Comments
Please log in or sign up to comment.