광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture...
Transcript of 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture...
![Page 1: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/1.jpg)
치즈 스틱 기초
광운대학교 로봇학부
박광현
![Page 2: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/2.jpg)
개요 2
포트 L 포트 M
포트 S
Sa
Sb
Sc
USB 충젂 단자 젂원 스위치
포트 HAT
![Page 3: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/3.jpg)
스타터 키트 3
치즈 스틱 동글
5x5 풀컬러 LED + 좌우 버튼 조이스틱 + 버튼
버튼 포텐셔미터 RGB LED
젠더
3핀 4핀 5핀
서보모터
![Page 4: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/4.jpg)
4
내장된 장치
![Page 5: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/5.jpg)
내장된 장치
• 3축 가속도 센서 (자유 낙하, 두드림)
• 내부 온도 센서
• 신호 세기
• 배터리 상태
• 스피커
5
![Page 6: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/6.jpg)
내장된 센서 6
x축 가속도 y축 가속도 z축 가속도 신호 세기 (dBm)
앞으로 기울였을 뒤로 기울였을 왼쪽으로 기울였을 오른쪽으로 기울였을 거꾸로 뒤집었을 기울이지 않았을 두드렸을 자유 낙하했을
앞으로 기울임 뒤로 기울임 왼쪽으로 기울임 오른쪽으로 기울임 거꾸로 뒤집음 기울이지 않음 두드림 자유 낙하
정상 부족 없음
![Page 7: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/7.jpg)
내장된 센서 7
![Page 8: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/8.jpg)
소리 출력 8
내부 스피커 포트 Mab
삐 무작위 삐 지지직 사이렌 엔짂 쩝 로봇 디비디비딥 잘 했어요 행복 화남 슬픔 졸림 행짂 생일
![Page 9: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/9.jpg)
소리 출력 9
![Page 10: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/10.jpg)
10
서보 모터
![Page 11: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/11.jpg)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
연결
• 기본 5개 연결
• 최대 8대 연결
11
SG90
- +
갈색 선을 –에
- +
- + - +
- +
갈색 선을 a에
갈색 선을 –에
![Page 12: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/12.jpg)
블록 12
Sa Sb Sc La Lb Lc Ma(-)b(+)c Ma(-)b Mc(-)d
![Page 13: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/13.jpg)
실습 13
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
- +
갈색 선을 –에
![Page 14: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/14.jpg)
포트 L 14
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
갈색 선을 –에
- +
![Page 15: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/15.jpg)
포트 L 15
- +
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d - +
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 16: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/16.jpg)
포트 M 16
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d - +
갈색 선을 a에
![Page 17: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/17.jpg)
포트 M 17
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d - +
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
- +
![Page 18: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/18.jpg)
18
DC 모터
![Page 19: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/19.jpg)
연결 19
+- 반대로 꽂으면 회전 방향이 반대로
- + - +
ab에 연결 cd에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 20: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/20.jpg)
블록 20
Mab Mcd
![Page 21: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/21.jpg)
실습 21
- +
ab에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 22: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/22.jpg)
22
스텝 모터
![Page 23: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/23.jpg)
연결 23
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
방향을 반대로 꽂으면 모터의 회전 방향이 반대로
![Page 24: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/24.jpg)
블록 24
정지하기 젂원 끄기
기본 파워
무한 회젂
![Page 25: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/25.jpg)
실습 25
![Page 26: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/26.jpg)
26
기타 모터
![Page 27: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/27.jpg)
진동 모터 27
DC 모터와 사용 방법이 같다.
- + - +
ab에 연결 cd에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 28: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/28.jpg)
28
메이키 입력
![Page 29: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/29.jpg)
연결 29
a에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
b에 연결 c에 연결
![Page 30: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/30.jpg)
블록 30
Sa Sb Sc La Lb Lc
메이키 버튼 디지털 (풀업) 디지털 (풀다운) 아날로그 젂압
0 1
![Page 31: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/31.jpg)
실습 31
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 32: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/32.jpg)
32
버튼 입력
![Page 33: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/33.jpg)
연결 33
푸쉬 버튼은 다리가 4개인 것이 일반적
같은 면의 다리 2개를 연결하거나 (A와 B 또는 C와 D) 대각선 다리 2개를 연결해야 한다. (A와 D 또는 B와 C)
A
B
C
D
A
B
C
D
치즈 스틱은 풀업 저항이 내장되어 있으므로
외부에 풀업 저항을 달 필요가 없다.
VCC
GND
포트
![Page 34: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/34.jpg)
연결 34
왼쪽에 붙여서 –+a에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
GND(-)와 신호선만 연결됨 VCC(+)는 사용되지 않음
버튼은 방향성이 없으므로 GND(-)와 신호선을 바꾸어 꽂아도 됨
![Page 35: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/35.jpg)
블록 35
Sa Sb Sc La Lb Lc
메이키 버튼 디지털 (풀업) 디지털 (풀다운) 아날로그 젂압
0 1
![Page 36: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/36.jpg)
실습 36
Sb에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 37: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/37.jpg)
37
아날로그 입력
![Page 38: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/38.jpg)
포텐셔미터 38
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
왼쪽에 붙여서 –+a에 연결
포텐셔미터는 방향성이 있으므로 사짂과 같이 꽂아야 함
거꾸로 뒤집어야 함
VCC
GND
포트
![Page 39: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/39.jpg)
블록 39
Sa Sb Sc La Lb Lc
메이키 버튼 디지털 (풀업) 디지털 (풀다운) 아날로그 젂압
![Page 40: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/40.jpg)
실습 40
Sc에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 41: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/41.jpg)
실습 41
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 42: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/42.jpg)
42
전압 입력
![Page 43: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/43.jpg)
연결 43
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 44: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/44.jpg)
블록 44
Sa Sb Sc La Lb Lc
메이키 버튼 디지털 (풀업) 디지털 (풀다운) 아날로그 전압
![Page 45: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/45.jpg)
실습 45
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 46: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/46.jpg)
46
펄스 입력
![Page 47: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/47.jpg)
블록 47
Sc Lc
펄스 펄스 (풀업) 펄스 (풀다운)
0 1
![Page 48: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/48.jpg)
48
RGB LED
![Page 49: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/49.jpg)
연결 49
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
가능하면 포트 S보다는 포트 L에 연결
![Page 50: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/50.jpg)
블록 50
L S
빨갂색 주황색 노란색 초록색 하늘색 파란색 보라색 자주색 하얀색
![Page 51: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/51.jpg)
블록 51
기본 -RGB -RBG -GRB -GBR -BRG -BGR +RGB +RBG +GRB +GBR +BRG +BGR
![Page 52: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/52.jpg)
실습 52
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 53: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/53.jpg)
실습 53
![Page 54: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/54.jpg)
54
디지털 출력
![Page 55: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/55.jpg)
연결 55
다리가 긴 것이 + 짧은 것이 -
길양 X 길음 X 짧양 X 짧음 O
- +
+ - + - + -
+ -
a에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
+ - + -
b에 연결 c에 연결
![Page 56: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/56.jpg)
연결 56
포트 M은 고전류가 출력되므로 일반 LED는 꽂지 마세요. 고전류가 필요한 전구를 위한 것 ab에 연결 cd에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
- -
![Page 57: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/57.jpg)
블록 57
Sa Sb Sc La Lb Lc 고젂류 Ma(-)b 고젂류 Mc(-)d
0 1
![Page 58: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/58.jpg)
실습 58
+ -
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
포트
GND
LED
![Page 59: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/59.jpg)
+- 반대로 연결 59
다리가 긴 것이 + 짧은 것이 -
길양 X 길음 X 짧양 X 짧음 O
- +
+ -
+ -
a에 연결
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
b에 연결 c에 연결
+ - + -
+ - + -
![Page 60: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/60.jpg)
실습 60
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
+ -
VCC
포트
LED
![Page 61: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/61.jpg)
61
PWM 출력
![Page 62: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/62.jpg)
블록 62
Sa Sb Sc La Lb Lc
![Page 63: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/63.jpg)
실습 63
+ -
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 64: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/64.jpg)
기타 64
신호등 소리 센서 네오픽셀
![Page 65: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/65.jpg)
65
PID 장치
![Page 66: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/66.jpg)
PID 장치 66
PID-10 초음파 센서(HC-SR04+) PID-11-1 온습도 센서(DHT11)
PID-11-2 온습도 센서(DHT21)
PID-11-3 온습도 센서(DHT22)
PID-12 온도 센서(DS18B20) PID-13 조이스틱과 버튼
PID-15 IR 송수신기 PID-16 엔코더
PID-14 듀얼 조이스틱
![Page 67: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/67.jpg)
67
초음파 센서
![Page 68: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/68.jpg)
연결 68
HC-SR04+
HC-SR04는 5V 젂원이 필요하므로 사용 불가
치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한 제품을 사용해야 함 HC-SR04+는 3~5.5V 젂원 사용
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
오른쪽에 붙여서 +abc에 연결
VCC(+)
TRIGGER
ECHO
GND(–)
+
a
b
c
![Page 69: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/69.jpg)
블록 69
PID-10 초음파 센서(HC-SR04+) PID-11-1 온습도 센서(DHT11) PID-11-2 온습도 센서(DHT21) PID-11-3 온습도 센서(DHT22) PID-12 온도 센서(DS18B20) PID-13 조이스틱과 버튼 PID-14 듀얼 조이스틱 PID-15 IR 송수신기 PID-16 엔코더
거리 (cm) 온도 (℃) 습도 (%RH) x1 y1 x2 y2 버튼1 버튼2 엔코더
![Page 70: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/70.jpg)
실습 70
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 71: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/71.jpg)
71
온습도 센서
![Page 72: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/72.jpg)
DS18B20 72
왼쪽에 붙여서 연결(-+a)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 73: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/73.jpg)
DHT11 73
+ -
data
-
data
+ +
data
-
중앙에 연결(+ab)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 74: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/74.jpg)
DHT21 74
중앙에 연결(+ab)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 75: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/75.jpg)
DHT22 75
중앙에 연결(+ab)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 76: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/76.jpg)
실습 76
중앙에 연결(+ab)
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
+
data
-
![Page 77: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/77.jpg)
77
엔코더
![Page 78: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/78.jpg)
연결 78
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
GND(–)
VCC(+)
SW
DT
CLK
-
+
a
b
c
![Page 79: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/79.jpg)
블록 79
PID-10 초음파 센서(HC-SR04+) PID-11-1 온습도 센서(DHT11) PID-11-2 온습도 센서(DHT21) PID-11-3 온습도 센서(DHT22) PID-12 온도 센서(DS18B20) PID-13 조이스틱과 버튼 PID-14 듀얼 조이스틱 PID-15 IR 송수신기 PID-16 엔코더
거리 (cm) 온도 (℃) 습도 (%RH) x1 y1 x2 y2 버튼1 버튼2 엔코더
![Page 80: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/80.jpg)
실습 80
![Page 81: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/81.jpg)
81
조이스틱
![Page 82: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/82.jpg)
연결 82
![Page 83: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/83.jpg)
블록 83
PID-10 초음파 센서(HC-SR04+) PID-11-1 온습도 센서(DHT11) PID-11-2 온습도 센서(DHT21) PID-11-3 온습도 센서(DHT22) PID-12 온도 센서(DS18B20) PID-13 조이스틱과 버튼 PID-14 듀얼 조이스틱 PID-15 IR 송수신기 PID-16 엔코더
거리 (cm) 온도 (℃) 습도 (%RH) x1 y1 x2 y2 버튼1 버튼2 엔코더
![Page 84: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/84.jpg)
실습 84
![Page 85: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/85.jpg)
실습 85
![Page 86: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/86.jpg)
실습 86
![Page 87: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/87.jpg)
87
시리얼 통신
![Page 88: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/88.jpg)
연결 88
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
쓰기 읽기
읽기 쓰기 쓰기 읽기
![Page 89: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/89.jpg)
블록 89
글자 글자 한 줄
모두 ,(쉼표)까지 :(쌍점)까지 $까지 #까지 줄 바꿈까지
La(쓰기) Lb(읽기) La(읽기) Lb(쓰기) La(쓰기) La(읽기)
9600 14400 19200 28800 38400 57600 76800 115200
![Page 90: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/90.jpg)
실습 90
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
![Page 91: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/91.jpg)
실습 91
![Page 92: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/92.jpg)
연결 92
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
공통 접지
![Page 93: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/93.jpg)
연결 93
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
공통 접지
![Page 94: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/94.jpg)
마이크로비트 연결 94
M a b
Sa Sb - + Sc
L
- + - +
- + a b c c d
공통 접지
![Page 95: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/95.jpg)
95
HAT 장치
![Page 96: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/96.jpg)
HAT 장치 96
HAT-10 5x5 LED 매트릭스 HAT-20 16채널 터치 센서
HAT-21 피아노 HAT-22 미니 피아노 HAT-30 제스처/컬러/ 근접 센서
HAT-50 RFID 센서 HAT-40 5x15 LED 매트릭스
![Page 97: 광운대학교 로봇학부 박광현 - smartrobotmarket.com › hamster › tutorial › lecture › cheese_ba… · 치즈 스틱 블루투스 버젂은 3.3V로 동작 가능한](https://reader033.fdocuments.us/reader033/viewer/2022060402/5f0e7cca7e708231d43f7c42/html5/thumbnails/97.jpg)