[Solved] TowerPro MG995 broken? Very strange behavior ...


edit-1: solution problem (partly) given in next post (#7).
edit-2: pin / wiring layout of (small) project given in post #13 , #14.

hello all,

i encountering strange behavior when connecting towerpro mg995 arduino uno. i've tried many setups, e. g., connecting directly arduino or using potentiometer control final position of servo---always same behavior: servo drives commanded position moves randomly. using for-loop let servo occupy possible angles (0-179°), weird too: @ first, motions comparable first test case (moving , forward) after seconds servo stopped moving @ (just humming noise when new position send arduino). note using (default) "servo"-arduino library.

i've uploaded video demonstrating behavor (using "poti-setup").  can download here. code setup follows (taken here):
code: [select]

#include <servo.h>

servo myservo;

int potpin = 0;
int val;

void setup()
{
   myservo.attach(9);
}

void loop()
{
   val = analogread(potpin);
   val = map(val, 0, 1023, 0, 179);
   myservo.write(val);
   delay(15);
}


additionally, i've tried following:
  • used external power plug: servo appeared more reactive overall "strange" behavior same.
  • connected another servo (towerpro sg90): servo worked well. using "poti-setup", able set position of servo using poti (as expected).


does have idea problem is? assuming servo devices (btw: both servos owning have problem, except sg90) simply broken ...? hints / suggestions highly appreciated!

thanks in advance!

best regards,
  codefinder

ps: have video showing (working) result of connecting sg90. if need it, can upload well.  if need more information, ask me.

quote
does have idea problem is? assuming servo devices (btw: both servos owning
you need use external power supply similar below. large servos cannot powered arduino without crashing arduino.



Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > [Solved] TowerPro MG995 broken? Very strange behavior ...


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code