Potentiometer

evive has two inbuilt 10kΩ knob potentiometers connected to Arduino Mega pins A9 and A10, respectively.

evive Poentiometers

The two potentiometers are used to control the speed of the motor (through PWM) in firmware as well as for the angle control of servo motor. It is also used to control the amplitude and frequency of the signal in function generator.

The test code for the potentiometer is given below: