I recommend you to try with the AnalogInOutSerial example, it is in File>Examples>Analog. The ADC should work only by uploading that example code. There is no need to do additional configurations.
On the other hand, I'd like to know how you are connecting the potentiometer. It would be great if you can post a picture of your hardware to check it.
Thank you so much for the help . I tried the example you mentioned and it worked for me.
Following is my schematic
I have another query on servo motor interface. I want to drive a servo motor using Edison.
If I power the servo motor using a separate power supply (5V) and connect the PWM pin of the servo to the a digital pin (e.g. pin 3) and
try to control the servo using Arduino servo library. Will it work? Any configuration are needed here?
(Note: The gnd pin of servo is also connected to ground pin of the board).
The above scenario has worked for me on a Arduino Mega and Uno board.
Yes, if you connect the servo motor that way it should work. There is only a little detail when using the PWM with the Edison Arduino Board. The Edison has 4 PWM pins, so there is something called swizzler on the Arduino Expansion Board that allows re-routing the 4 PWM pins of the Edison module to the 6 possible PWM pins the Arduino footprint has. I recommend you to check the following document (page 15) to get more details about the swizzler: Intel® Edison Kit for Arduino* Hardware Guide for Boards and Kits
Regarding the ADC issue, I understood that now it's working fine, right?