Lecture Contents
1. 아두이노란?
2. 아두이노 블로그
Main Arduino Library
1. ServoMotor
2. LiquidCrystal_I2C
MAajor Code Error & Solution
1. 아두이노 보드 연결 문제
#Error: avrdude: ser_open(): can't open device
#Solution
1) 아두이노 보드를 컴퓨터에 연결해야 함
2) 메뉴 - 툴 - 보드 - 아두이노 보드 선택
3) 메뉴 - 툴 - 포트 - 해당 시리얼 포트 선택(COM00 또는 Arduino 보드 명칭)
2. 코드 작성 에러 문제
#Error
1) sketch_may06a.ino: In function 'void setup()'
2) sketch_may06a.ino: 11:13: error: a function-definition
is not allowed here before '{' token
#Solution
1) void setup 함수 내에 코드 에러가 발생함을 알 수 있음
2) 11번 줄의 13번 열에 에러가 있음을 확인 가능함 → 해당 위치의 코드를 찾아 수정해주면 됨
3. 변수 선언 문제
#Error: sketch_may06a.ino: 5:13: error: 'melody' was not declared in this scope
#Solution
1) 변수를 선언하지 않았거나
2) 변수를 선언하였으나 철자가 틀린 경우(대소문자 명확하게 구분해야 함)
4. 세미크론 또는 괄호 관련 문제
#Error
1) " { " 기호 빠뜨렸을 때
: sketch_may06a.ino: 5:13: error: expected declaration before '}' token
2) " } " 기호 빠뜨렸을 때
: sketch_may06a.ino: 5:13: error: a function-definition is not allowed here
before ' { ' token
: sketch_may06a.ino: 5:13: error: expected ' } ' at end of input
3) 세미클론(;) 기호를 빠뜨렸을 때
: sketch_may06a.ino: 5:13: error: expected ' ; ' before ' } ' token
#Solution
1) 괄호 또는 세미클론과 관련된 문제는 일반적으로 가장 쉽게 경험하게 되는 SW 문제임
2) 에러 발생 시 오류 메세지를 바르게 해석하고 모르는 부분은 인터넷 검색을 통해 스스로 해결할 것(오픈소스)
5. 라이브러리 미설치 문제
#Error: No such file or directory
#Solution
https://rasino.tistory.com/344
아두이노 라이브러리 설치 경로/에러/추가/개념 정리 [출처] 【 아두이노 라이브러리 설치 경로/에러/추가/개념 정리 】(All about Arduino library)| 작성자 Alex KIM
Project Performance Process
Project Portfolio