Potentiometer

Hardware

Plug the Grove Board on top of the MCU. Then, plug the potentiometer on the A0 socket.

Potentiometer plugged on the A0 grove board

Software

Write the code to read the analog value of the A0 pin and print it in console. Print the value of the potentiometer using this format:

potentiometer:10
potentiometer:14
potentiometer:124

If you carrefully used the printing format, you can use the visualisation tool of the Arduino editor to display a graph of the variations.

Arduino IDE plotter

Hint