Lesson goal: Linearly scale a potentiometer


In a previous lesson, you learned how to read a voltage, as seen (or sampled) by the Arduino. This lesson will show you how to read a voltage, as generated by a potentiometer, then construct a linear function of the form $y=mx+b$ to scale it to the screen.

Now you try. Scale the voltage from the potentiometer to fill the entire plot area!

Type your code here:

See your results here: