Question
1. Using servo knob on Arduino IDE, verify that you can control the orientation of the servo horn by rotating the knob of the pot.
1. Using servo knob on Arduino IDE, verify that you can control the orientation of the servo horn by rotating the knob of the pot.
2. Modify the Servo_Knob sketch from 1, so that you can print to the monitor both the raw pot voltage and its scaled value. Determine what the maximum and minimum values are for the pot voltage when you turn the knob to its extreme CW and CCW directions.
3. Change the 1023 argument value in the map() function to correspond with the maximum pot voltage value that you determined in the previous step.
4. Write a program that will light up one of the four red gumdrop LEDs depending on where the potentiometer knob is turned:
if within roughly 2% of the extreme CCW or CW location, then LED0 or LED3 is on respectively
if between fully CCW and half way, then LED1 is on
if between fully CW and half way, then LED2 is on (Dont forget to change the LED jumper to red)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started