부엉이
프로그램이 시작 되는 모든 모터는 0점을 잡습니다 그리고 목 부분이 좌우로 움직 이게 됩니다 이때 모터의 정해진 값이 다 회전해야 다음 동작을 인식하므로 목 부분이 왼쪽 끝에 도달하고 초음파센서의 거리가 15cm보다 작아지면 날개를 퍼덕이는 프로그램 입니다
포트
왼쪽 팔 모터: B,오른쪽 팔 모터: A 목 모터: F,초음파 센서:E
Owl
Every motor that starts the program takes zero points and the neck moves from side to side. At this time, the motor must rotate to recognize the next movement, so the neck reaches the left end and the ultrasonic sensor flaps its wings when the distance is less than 15 cm
Ports
Left arm motor: B, Right arm motor: A neck motor: F, ultrasonic sensor: E