Week3: Servo Motor with infared distance sensor codes: I used an infrared distance sensor to detect the distance then mapped it to the angle that the motor could rotate. The closer the distance is, the smaller the motor will rotate. https://bpb-us-e1.wpmucdn.com/wp.nyu.edu/dist/6/17472/files/2020/10/f189fa0f517fb852a2f06b544a18fa10.mp4
Leave a Reply