Hello,
Need help to figure out with problem
I've used this code with pin 9 and 11, for a month:
#include <Servo.h>
Servo servo1;
Servo servo2;
int val;
void setup() {
Serial.begin(9600);
servo1.attach(9);
servo2.attach(11);
}
void loop() {
val = Serial.parseInt();
if(val == 9){
servo1.write(Serial.parseInt());
}
else if(val == 11){
servo2.write(Serial.parseInt());
}
}
With C# desktop control application:
myport.WriteLine("9");
myport.WriteLine(trackBar1.Value.ToString());
It was fine for all this time
My wiring is 5V and GDN from Arduino controller to breadboard (+) and (-), servo connection
Servo1:
Black wire: (-)
Red wire: (+)
White wire: (signal) pin (9)
Servo2:
Black wire: (-)
Red wire: (+)
White wire: (signal) pin (11)
Powering with 9V adapter or directly with 5V in case of 1-2 servos.
Yesterday, I was checking two different things, one is a Control of servos with Arduino and 16-Channel 12-bit PWM/Servo drive discussed in this topic without result, and another is checking of servo E-flite 7.6g Sub-Micro Digital Tail Servo JST which is different, because it is helicopter servo, problem described and discussed here Servo wiers connection layout E-flite Sub-Micro Digital Tail Servo , but both now is secondary.
After all this actions, it seems like something is damaged, and I can't figure out what
Problem description:
1. Arduino Uno controller loads my sketch, which was working all this time with "COM3" serial port. It was worked with other loaded code, without external command from desktop.
2. 13 pin led, TX, RX and Power indicates connection, load and sending of command from C# with RX as it was before
3. Servos does not move anymore.
4. Makes noise when connected as it was usually, but now one of servos makes some kind of whistling noise
What I did to check:
-
First of all, I've checked different code, including shown in this topic but it seems like the code has nothing to do with it, besides, the code that I've used worked perfectly all this time.
-
I've checked other pins.
-
I have checked breadboard with different (+)(-) side, and I have checked another breadboard, which unlike the first has segmented power rails to strips. Same result, so it looks like that the controller is damaged,
-
Then I have checked Arduino Due, which was worked with same code fine, in this case with using of "COM6" serial port. And what is more important, Arduino Due was not participated in any testing yesterday.
So if is not controller, remains only the motors, but how it can be damaged, if I'm not using them in testing yesterday, I've used only E-flite 7.6g Sub-Micro Digital Tail Servo JST as described here Servo wiers connection layout E-flite Sub-Micro Digital Tail Servo
The only thing I also did yesterday that goes beyond the above, is a checking of V+ instead VCC from Arduino 5V on servo driver, and it provoked some kind of signal. If it could damage the controller somehow, how could it affect the Arduino Due controller, which did not participate in the test, but it just doesn't moves the motors today.
Maybe it damaged the motors which was located on servo driver board, but in this moment, there was only one, then why both motors does not moves today with breadboard connection
Any advice, guide or example would be very helpful
