For a while now I have been doing a project that has two servos controlled by one potentiometer, and on my arduino uno it works perfectly. Then I recently got a arduino nano, and wanted the code to run on that. But even though it's the exact same arrangement with the pins and stuff, it doesn't respond. So really im just asking if you can see something obviously wrong that I have done with my code... Posting on here was my last resort. Any advice would be great 
#include <Servo.h>
Servo myservo1;Â // create servo object to control a servo
Servo myservo2;
const int potpin = A0;Â // analog pin used to connect the potentiometer
int val;Â Â // variable to read the value from the analog pin
void setup() {
 myservo1.attach(9); // attaches the servo on pin 9 to the servo object
 myservo2.attach(10);
}
void loop() {
 val = map(analogRead(potpin), 0, 1023, 0, 179);  // scale it to use it with the servo (value between 0 and 180)
 myservo1.write(val);         // sets the servo position according to the scaled value
 myservo2.write(179-val);
 delay(15);             // waits for the servo to get there
}
Did you change the Board and port number in the IDE?
yeah, and to add the led just blinks on the nano and doesn't do anything
At a glance, the code looks ok, but I didn't look that hard, up to my elbows in plastic sawdust right now.
Make a simple blink sketch on pin 13, no hardware, just randomize the delay() for the on/off. Or any other simple blink sketch DIFFERENT from the default one. Or a serial.print() sketch that counts up from 0.
Try to get that to upload. If you can, then there's something in servo sketch, if not, it's not dependent on the actual sketch.
If it's not the sketch, make sure the hardware is configured correctly. There have been a host of counterfeit FTDI (?) chips on Nano clones of late. If your PC isn't recognizing the Nano after the third or fourth time, I'll see if I can dig up the link to fix the drivers.
Thanks for the advice I tried the blink sketch, seems to work with no prob. I did notice though that it's recognised as a mouse input device... Is this normal? 
Well.... I wouldnt think so (gurus?), but if it's uploading, don't fix it lol.
How are you powering the servos?
If you're doing it through the Nano, try a separate supply.
Alright i just tested it again, i used a 4V external power supply to test just 1 servo, but the servo wouldn't even move like it normally does when the cables are connected. The nano power led is on, but that's it. Could you post the link to the drivers? I assumed I wouldn't need to have to download them, but perhaps that's the issue?
I installed the driver and i think that did it, my sketch works on it now. Thanks for the help 