[아두이노]시리얼 통신: 컴퓨터에서 보드로 메세지 주고 받기(Send, Recieve, Serial)


[아두이노]시리얼 통신: 컴퓨터에서 보드로 메세지 주고 받기(Send, Recieve, Serial)

목차 Arduino : Serial Communication 으로 PC와 데이터 주고 받기 이번 시간에는 Serial 통신 방법을 사용해서 컴퓨터의 USB 포트를 통해 메세지(Message)를 주고 받는 방법을 알아보겠습니다. 하드웨어 구성은 링크를 참조 하시면 됩니다. (https://scribblinganything.tistory.com/512) 코드는 간단하기 때문에 아래 예제 코드를 통해 설명하겠습니다. 예제 코드>> void setup() { Serial.begin(9600); while (!Serial) { ; } } void loop() { if (Serial.available() !=0 ) { String a_var = Serial.readStringUntil('\n'); String b_..


원문링크 : [아두이노]시리얼 통신: 컴퓨터에서 보드로 메세지 주고 받기(Send, Recieve, Serial)