Hello everyone,
I'm using win7 64-bit and Arduino IDE 1.0.1-rc2 because 1.0.1 didn't want to cooperate with mine OS (after a unusually long boot of IDE I got a "An error occured while starting the application." error).
I'm trying to make a project which constains moving servo and using Serial communication but for now I've simplified it to the blink example which I've expanded by adding 1 servo (code below).
I managed to install the arduino drivers (I've tried both - RC2 and official drivers and the problem repeats in both situations) and I got the Communication port (COM3) in my device menager (the arduino microcontroller).
Here's my circuit:
Servo connected to arduino 5V (red) and ground(black). signal cable (yellow) connection problem described below.
Here's my problem:
when I connect servo signal cable to the pin I've declared in servo.attach() function (8 in this case) several things occur:
-the OS keeps playing the standart device pluged in and device unplugged sounds in random sequence (for example: plug in 4x, unplugged 2x, plug in... ). This happens as long as the servo signal cable is connected and stops the moment I remove it.
-the communication port (arduino) is not visible in device manager of my computer, and the list refreshes all the time (new device found, device unplugged).
-from time to time I get "Found new device" notification but it says that Unknown device has been connected (looks like the servo wanted to add it self as a new device but no new device is shown in device manager)
-the Arduino IDE Tools > Serial port menu is not available
-no new messages in Serial monitor are shown
-I'm not able to upload any new programs until I disconnect the servo signal cable
-the servo moves as I specified in the code
What may cause that kind of behaviour? How to fix this?
My arduino test code:
#include <Servo.h>
Servo servo;
void setup() {
pinMode(13, OUTPUT);
servo.attach(8);
servo.write(90);
Serial.begin(9600);
}
void loop() {
servo.write(90);
Serial.println("90");
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
servo.write(45);
Serial.println("45");
delay(1000); // wait for a second
}