Question: Create a modular project which uses a host terminal application and a servo motor. The user can input a value between 1 - 9 which

Create a modular project which uses a host terminal application and a
servo motor.
The user can input a value between 1-9 which will move the servo motor to a
specified position. An input of 1 moves the servo to 90 degrees left and 9
moves the servo to 90 degrees the right. Numbers in between 1-9 move the
servo to a relative position, for example the value 5 will point the servo to the
centre.
You can reuse the GetKeyInput function from the previous
exercise.
You may also need to create a look up table function to convert the input
value to a sensible PWM duty cycle value associated with the desired
servo position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!