Electronics > Electronics

Help! Quadruped servo problem

(1/2) > >>

saba_rish91:
Hello guys,

I'm building a quadruped robot with 12 DOF. I'm using Arduino UNO and 7.4V LiPO battery (1600mAh).

When I connect the servo, and give command to position at any degree, motors keeps on oscillating or goes from 0 to 180 and back to 0... That is the motors go crazy.

What might be the problem?

ErikY:
Can u post your code?

saba_rish91:
Code was just to position the hip motors at 90 degree and knee motors at 10 degree... Thats all...

Gertlex:
Well it sounds like a code issue...

What happens if you hook up a single servo?

What servos are you using?

Are you regulating the voltage down? A 2S LiPO is closer to 8.4 V fully charged, and hobby servos shouldn't be supplied much more than 6 V.

saba_rish91:
I'm using 7806 metal case voltage regulator to power down LiPO battery.

For Hip and leg, I'm using the following servo motor.
http://robokits.co.in/shop/index.php?main_page=product_info&cPath=2_5&products_id=187

For the knee, I'm using the following servo motor.
http://robokits.co.in/shop/index.php?main_page=product_info&cPath=2_5&products_id=188

When I hook only one servo, it works properly.


--- Code: ---#include <Servo.h>

int i=0;

Servo ser[13];

void setup()
{
  ser[1].attach(1);
  ser[2].attach(2);
  ser[3].attach(3);
  ser[4].attach(4);
  ser[5].attach(5);
  ser[6].attach(6);
  ser[7].attach(7);
  ser[8].attach(8);
  ser[9].attach(9);
  ser[10].attach(10);
  ser[11].attach(11);
  ser[12].attach(12);
 
  delay(1000);
}
 
 
void loop()
{
  ser[2].write(90);
  ser[3].write(0);
  ser[5].write(90);
  ser[6].write(0);
  ser[8].write(90);
  ser[9].write(0);
  ser[10].write(90);
  ser[11].write(0);
  delay(500);
}
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version