Servos keep damaging
hello all!
i'm kind of new here, read forum untill now.
i have big problem, looked questions on internet, found nothing.
please, if can, @ problem , me..
so here problem:
i'm making project 6 servos (3 used actuate mkii robotic claw dagu , 3 used rotate claws). problem servos damaging , don't know why (till have 4 "dead" servos - 3 because of gears , 1 because of controller circuit).
to see big picture:
- use 7.5v power supply (i have devices need voltage) + voltage regulator of 6v (a regulator each servo) http://www.datasheets360.com/part/detail/l7806cv-dg/5536729694200230960/ (no resistor)
- code use below (only servo, use same others):
i thinking maybe should use resistor in line regulator powers servo sure voltage under 6v.
or maybe there problem code, should use instead?:
i hope understand problem , can me.
thanks lot!
later edit:
- servos use are: towerpro mg995 , dgservo s05nf std - both datasheets said accept voltage between 4.8 , 6v
- second code not mine, found here, on forum
i'm kind of new here, read forum untill now.
i have big problem, looked questions on internet, found nothing.
please, if can, @ problem , me..
so here problem:
i'm making project 6 servos (3 used actuate mkii robotic claw dagu , 3 used rotate claws). problem servos damaging , don't know why (till have 4 "dead" servos - 3 because of gears , 1 because of controller circuit).
to see big picture:
- use 7.5v power supply (i have devices need voltage) + voltage regulator of 6v (a regulator each servo) http://www.datasheets360.com/part/detail/l7806cv-dg/5536729694200230960/ (no resistor)
- code use below (only servo, use same others):
code: [select]
#include <servo.h>
int citire = 0;
boolean flag = true;
long elapsed_time = 0; // millis
long previousmillis = 0;
long previousmillis2 = 0;
long servointerval = 15;
long interval = 500;
int pos = 0; //for millis
servo left_r;
servo down_r;
servo right_r;
servo left_p;
servo down_p;
servo right_p;
void for_delay() {
unsigned long starttimer=millis(); //starts 0.5 seconds delay timer
{
unsigned long current_time = millis();
elapsed_time = current_time - starttimer;
}
while(elapsed_time < interval); //leaves loop 0.5 seconds has passed
}
void setup() {
left_r.attach(3);
down_r.attach(5);
right_r.attach(6);
left_p.attach(9);
down_p.attach(10);
right_p.attach(11);
// start position
left_r.write(35);
down_r.write(35);
right_r.write(35);
left_p.write(160);
down_p.write(150);
right_p.write(150);
for_delay();
left_p.detach();
down_p.detach();
right_p.detach();
left_r.detach();
down_r.detach();
right_r.detach();
}
void loop() {
while(serial.available()){
citire = serial.read();
//rotatie
//left_r
if(citire == 97){ //a
left_r.attach(3);;
if(flag){
left_r.write(35);
for_delay();
flag = false;
}else{
left_r.write(125);
for_delay();
flag = true;
}
}
}
}
i thinking maybe should use resistor in line regulator powers servo sure voltage under 6v.
or maybe there problem code, should use instead?:
code: [select]
for(pos = 0; pos < 60; pos+=60) { //opens arm 60 degrees
unsigned long servomillis = millis();
if(servomillis - previousmillis > servointerval) //created delay 15 milliseconds before next pulse
{
previousmillis = servomillis;
myservo.write(pos); //moves 5 degrees every 15 milliseconds
}
}
i hope understand problem , can me.
thanks lot!
later edit:
- servos use are: towerpro mg995 , dgservo s05nf std - both datasheets said accept voltage between 4.8 , 6v
- second code not mine, found here, on forum
maybe you're running them past extremes, far 1 way or other?
some tolerant of that, others not much.
have done servos before or hodge-podge of code , components hoped work?
they go while , poop? poop right away?
maybe you're trying work , wrecking them?
no resistor help,
7.5v might enough 6v out, if not there no damage.
why won't people sketch out doing, post meaningful photos of setups , on?
some tolerant of that, others not much.
have done servos before or hodge-podge of code , components hoped work?
they go while , poop? poop right away?
maybe you're trying work , wrecking them?
no resistor help,
7.5v might enough 6v out, if not there no damage.
why won't people sketch out doing, post meaningful photos of setups , on?
Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > Servos keep damaging
arduino
Comments
Post a Comment