roboarm project, beginner needs help

Hi guys!

Im a beginner and this is my first post, so please don't be mad at me if I put it in the wrong thread.

I really want to make this project:

I know that i have to use char, strings and for loop, but I dont know how to connect all those things to one code. :frowning:

I would really appreciate your help.

#include <Servo.h>

Servo myservo;
Servo myservo2;
Servo myservo3;

char alphabet[] = { 'a', 'b', 'c', 'd'};
int seq[4][3] = { {85, 100, 45}, {85, 50, 45}, {85, 70, 45}, {85, 90, 45}}
int pos = 0;

void setup() {


  myservo.attach(9);
  myservo2.attach(10);
  myservo3.attach(11);

}

void loop() {
  for ( int i = 0; i < 4; i++;) {
    myservo.write(i);
    myservo2.write(i);
    myservo3.write(i);
  }
}

I have no idea how to make it. I don't know how to write the 2 dimensional for loop to read the sequence. :frowning: please help me!

I'm not sure I understand what you want, but you need to be aware that your for loop will run MUCH faster than the servos can keep up.

And writing the values 0 to 3 to a servo is hardly going to move it at all. The normal range is 0 to 180.

I imagine the 'i' in that loop was intended to be some sort of reference into the seq[] array.

Steve