0
Arduino Bluno (Bluetooth 모듈 포함)가있는 PIR 모션 센서를 사용하고 있습니다. 나는 센서에 의해 감지 된 움직임의 값을 arduino에서 블루투스를 통해 PC로 보내고 싶다.Arduino to PC Bluetooth 통신
내 PC에서 어떻게 구할 수 있습니까? 그것은 C++, C# 또는 심지어 파이썬 일 수 있습니다. 누구든지 도움을받을 수 있다면 고맙겠습니다. 특별히 PC를 직접 수신 할 경우를 제외하고 시리얼 모니터에 인쇄를받을 또 다른 아두 이노를 사용할 수,
int ledPin = 13; // choose the pin for the LED
int inputPin = 2; // choose the input pin (for PIR
int pirState = LOW;
char str1;// we start, assuming no motion detected
int val = 0;
volatile int count =0;// variable for reading the pin status
void setup() {
// pinMode(ledPin, OUTPUT); // declare LED as output
Serial.begin(115200);
pinMode(inputPin, INPUT); // declare sensor as input
attachInterrupt(digitalPinToInterrupt(2), pin_ISR,FALLING);
}
void pin_ISR() {
count++;
Serial.write(Serial.print(count));
}