케인gledel
Published © GPL3+

Computer and Phone Communication

This project establishes computer and phone communication.

BeginnerShowcase (no instructions)1 hour250
Computer and Phone Communication

Things used in this project

Story

Read more

Code

bluetooth

Arduino
#include <SoftwareSerial.h>

SoftwareSerial BTSerial(12,13);
int led = 8;
char command;

void setup(){
  Serial.begin(9600);
  BTSerial.begin(9600);
}

void loop(){
  if(BTSerial.available()){
  char command = BTSerial.read();
  Serial.println(char(command));
  if (command == 'Y' || command == 'y'){
    digitalWrite(led, HIGH);
  }
  else if(command == 'N' || command == 'n'){
    digitalWrite(led, LOW);
  }
}
}

Credits

케인

케인

7 projects • 2 followers
I'm 17-year old. also I'm bongilcheon high school student. I'm study 3D print.
gledel

gledel

100 projects • 89 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"

Comments