| Arduino Forum ::  Members :: CrazyEyesNZ
 Show Posts Pages: [1]
 1 Topics / Robotics / Re: Me and my Quadrabot on: February 13, 2012, 02:28:24 am Opps, I put the wrong code on there, sorry:Code:void doTest(){  for (h=0; h0; d--) //divisions per movement    {      for (e=0; e<12; e++) //servo      {        savepos[e]=test[e][h];        if (h==0) //if first step        {          if (test[e][h]==savepos[e]) //if move-to is equal to          {            move=test[e][h];            myservo[e].write(move);          }          else if (test[e][h]>savepos[e]) //if move-to is greater than          {            c=test[e][h]-savepos[e];            c=c/3;            move=test[e][h]-(c*d);            myservo[e].write(move);          }          else if (test[e][h]test[e][h-1]) //if move-to is greater than            {              c=test[e][h]-test[e][h-1];              c=c/3;              move=test[e][h]-(c*d);              myservo[e].write(move);            }            else if (test[e][h]
 2 Topics / Robotics / Re: Me and my Quadrabot on: February 10, 2012, 04:46:57 pm Sorry I have taken my sweet time returning to this forum, life has been busy. All I've done at this stage is make a to the change to the movements. Now instead of making the foot move from point A to point B, it moves in a path between point A to point B, stopping at a predetermined (set at three in this example) number of points along the path. I have done this in an attempt to create a more accurate path. The path is made from the original coordinates and mathematically added within the program.There are still a few glitches in it and it looks quite dumb imo, but its a start. Code:void doTest(){  for (h=0; htest[e][h-1]) //if move-to is greater than          {            c=test[e][h]-test[e][h-1];            c=c/3;            move=test[e][h]-(c*d);            myservo[e].write(move);            delay(pause);          }          else if (test[e][h]
 3 Topics / Robotics / Re: Me and my Quadrabot on: January 02, 2012, 03:22:29 am @wildbillI changed the code and its working now as it shuold, cheers!  Well, after changing the leg around; I have had to reprogram the movements. I thought I'd do a test gait with it walking on tip-toes. It seems to work alright. Next trick will be to adjust the logic so that when it comes to an object, it has a look up to see if it's a low obstruction, then if it is, lift its body up and walk on tip-toes. I'm not sure how to make it decide when to lower down again... oh well, a problem for another day. Also, I'm not too sure yet, why my LiPo battery isn't giving sufficient power. I will have to investigate that too, but I just wanted to have a bit of a play at the moment. Oh, and the reason that it tips over at the end is because I ran out of range with the external battery wiresFor all those that want to follow a little closer I have set up a Facebook page:http://www.facebook.com/home.php#!/pages/Quadrabot/246637268735818
 4 Topics / Robotics / Re: Me and my Quadrabot on: December 21, 2011, 04:45:07 pm @wildbillThanks again,I'm rewiring at the moment, so I still havent tried it, you saved me some time
 5 Topics / Robotics / Re: Me and my Quadrabot on: December 20, 2011, 11:33:11 pm @PaulS Thanks for the comment. I didnt realize that knowing the model of car you drive makes you a better driver. Thanks for the increase in knowledge @wildbillThanks, that information might actually help me.Ive just changed the front legs over, so I cant test it just yet, but Ive altered the code:Code:  for (k=0; k<=12; k++)  {                                      myservo[k].attach(k+2);  }andCode:for (h=0; h