Instructions
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
Lesson 10: Reading the analog value
This project deals with the analog interfaces of the Mega2560. An
analogRead()
command can read the value of the interface. Due to the
analog-to-digital conversion of the Mega2560 the read values are
between 0 and 1023.
To be able to read out the values, it is important to ensure the correct
baud rate (here: 9600). The baud rate of the computer should correspond
to the baud rate of the device. If you open the serial monitor of the
Arduino IDE, you can configure the baud rate in the lower right corner.
In this project, the set resistance value of a potentiometer is converted to
an analog signal and is then displayed on the screen.
This is required:
1x
Mega2560 board
1x
USB cable
1x
Potentiometer
1x
Breadboard
3x
Jumper cable