how to control an robot arm using pot&arduino
<p>I want to control my robot arm using arduino mega and 10k pot. But I got the error. My codes :</p>

<pre><code>#include&lt;Servo.h&gt;
Servo armServo; //we defined a object named armServo
int positionOfArmServo=15;
int sensorPin = A0;    // select the input pin for the potentiometer
int sensorValue = 0;  // variable to store the value coming from the sensor

void setup()
{
  Serial.begin(9600);
  armServo.attach(9); //attaches the servo on pin 9 to a servo object
  armServo.write(140);
}
void loop()
{
  sensorValue = analogRead(sensorPin);  
  sensorValue=map(sensorValue,0,1023,0,170);
  armServo.write(sensorValue);
  delay(10); 

}
</code></pre>

<p>My error is :</p>

<blockquote>
  <p>c:/program files
  (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/..‌​/../../../avr/lib/av‌​r6/crtm2560.o:
  In function __vector_default': (.vectors+0xd0): relocation truncated
  to fit: R_AVR_13_PCREL against symbol __vector_52' defined in
  .text.__vector_52 section in core.a(HardwareSerial.cpp.o)</p>
</blockquote>

<p>Please help me!</p>