servomotor not turning but overheating
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- vicelvic
- Posts: 4
- Joined: Thu Jan 04, 2018 9:34 pm
servomotor not turning but overheating
hello need help i just got servo motor when try to to use the example sketch in arduino to test it the servo refuse turn back to 180 degress but rather is overheating ? pls any help will apprecite
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: servomotor not turning but overheating
Can you post the specifications of the servo and a picture of how you are connecting it and powering it?
- vicelvic
- Posts: 4
- Joined: Thu Jan 04, 2018 9:34 pm
Re: servomotor not turning but overheating
the connection is just as simple as these gruond to ground ,VCC to VCC and last signal pin to pwm pin 9
here is the code
here is the code
Code: Select all
/* Sweep
by BANNED <http://BANNED.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
// in steps of 1 degree
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
myservo.write(pos); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: servomotor not turning but overheating
Which servo are you using?
Please be positive and constructive with your questions and comments.