반응형

SBC & MCU/Arduino 4

[Arduino] Serial Monitor

아두이노에서 시리얼 모니터를 이용하면 프로그램 실행 중간에 변수값을 확인할 수 있습니다. 이를 이용하면 디버깅을 좀 더 쉽게 할 수 있습니다. 0. Open Serial Monitor 시리얼 모니터 여는 방법은 두가지로, 아래 그림의 빨간색 박스로 표시된 메뉴를 누르면 됩니다. 1. Print "Hello" text on serial monitor 시리얼 모니터에 문자를 출력해 봅시다. 9600bps(초당 9600bit 전송)을 설정하였기 때문에 시리얼 모니터에도 같게 맞춰줍니다. 아래의 코드를 작성하고 upload하면 Hello가 출력되는 것을 알 수 있습니다. void setup() { Serial.begin(9600); Serial.write("Hello"); } void loop() { } 2. ..

SBC & MCU/Arduino 2021.08.19

[Arduino] Setting

1. Arduino Software Download https://www.arduino.cc/en/software Software Open-source electronic prototyping platform enabling users to create interactive electronic objects. www.arduino.cc 2. Arduino Board setting PC와 Arduino를 UBS cable로 연결하고 보드를 확인합니다. 3. Port Setting Window에서는 장치 관리자를 이용하여 해당 포드에 대한 정보를 알 수 있습니다. ref. https://m.blog.naver.com/kwangtree/221163824480 아두이노(Arduino) 설치 Arduino Sof..

SBC & MCU/Arduino 2021.08.18
반응형