This block reads the value from the analog pins of boards such as Arduino Uno, Arduino Mega, or Arduino Nano. It returns the 10-bit resolution of the analog pin, with a range of 0 – 1023, which is mapped to the voltage of the pin (usually 0 – 5V). For example, if the value received is 512, then the voltage is roughly 2.5V.
Available pins:
- Arduino Uno: 6 analog pins available for the user, A0 to A5
- Arduino Mega: 6 analog pins available for the user, A0 to A5
- Arduino Nano: 8 analog pins available for the user, A0 to A7