i made a program that it is for 6 flex sensors to 6 servos
yesterday it was working perfect
to today is not
down of my code i saw this message
avrdude: verification error, first mismatch at byte 0x0100
0xfe != 0xff
avrdude: verification error; content mismatch
what it means and what i have to do to run again ????
please help
the program
#include <Servo.h>
Servo myservo0; // create servo object to control a servo
Servo myservo1; // create servo object to control a servo
Servo myservo2; // create servo object to control a servo
Servo myservo3; // create servo object to control a servo
Servo myservo4; // create servo object to control a servo
Servo myservo5; // create servo object to control a servoint potpin0 = 0; // analog pin used to connect the potentiometer
int potpin1 = 1; // analog pin used to connect the potentiometer
int potpin2 = 2; // analog pin used to connect the potentiometer
int potpin3 = 3; // analog pin used to connect the potentiometer
int potpin4 = 4; // analog pin used to connect the potentiometer
int potpin5 = 5; // analog pin used to connect the potentiometerint val0; // variable to read the value from the analog pin
int val1; // variable to read the value from the analog pin
int val2; // variable to read the value from the analog pin
int val3; // variable to read the value from the analog pin
int val4; // variable to read the value from the analog pin
int val5; // variable to read the value from the analog pin
void setup()
{
myservo0.attach(9); // attaches the servo.0 on pin 9 to the servo object
myservo1.attach(10); // attaches the servo.1 on pin 10 to the servo object
myservo2.attach(11); // attaches the servo.2 on pin 11 to the servo object
myservo3.attach(6); // attaches the servo.3 on pin 12 to the servo object
myservo4.attach(5); // attaches the servo.4 on pin 13 to the servo object
myservo5.attach(3); // attaches the servo.5 on pin 14 to the servo object}
void loop()
{
val0 = analogRead(potpin0); // reads the value of the potentiometer (value between 0 and 1023)
val0 = map(val0, 350, 800, 300, 0); // scale it to use it with the servo (value between 0 and 180)
myservo0.write(val0); // sets the servo position according to the scaled value
delay(0); // waits for the servo to get thereval1 = analogRead(potpin1); // reads the value of the potentiometer (value between 0 and 1023)
val1 = map(val1, 350, 800, 300, 0); // scale it to use it with the servo (value between 0 and 180)
myservo1.write(val1); // sets the servo position according to the scaled value
delay(0);val2 = analogRead(potpin2); // reads the value of the potentiometer (value between 0 and 1023)
val2 = map(val2, 350, 800, 400, -100); // scale it to use it with the servo (value between 0 and 180)
myservo2.write(val2); // sets the servo position according to the scaled value
delay(0);val3 = analogRead(potpin3); // reads the value of the potentiometer (value between 0 and 1023)
val3 = map(val3, 350, 800, -100, 300 ); // scale it to use it with the servo (value between 0 and 180)
myservo3.write(val3); // sets the servo position according to the scaled value
delay(0);val4 = analogRead(potpin4); // reads the value of the potentiometer (value between 0 and 1023)
val4 = map(val4, 350, 800, -170, 500); // scale it to use it with the servo (value between 0 and 180)
myservo4.write(val4); // sets the servo position according to the scaled value
delay(0);val5 = analogRead(potpin5); // reads the value of the potentiometer (value between 0 and 1023)
val5 = map(val5, 350, 800, 700, 0); // scale it to use it with the servo (value between 0 and 180)
myservo5.write(val5); // sets the servo position according to the scaled value
delay(0);}