Brazil - Rio de Janeiro
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #7 on: December 03, 2012, 12:16:51 pm » |
Ok folks,
Thank you for the help!
Anyway, the motors are standard servor motors.
I have to control de speed -> and <- the forward/backward movement.
So, it will be 3 standard servo motors where sometimes one will do movements back and forth while another one will do a single forward slow movement, the third an slower backward movement, etc, in fact there isn't a predicted movement but a single bunch of "you three go and do this choreography".
I guess I have the solution:
Arduino software will receive a array with "positions", like (of course it's an simple example):
motor_1 = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] motor_2 = [ 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10 ] motor_3 = [ 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5 ]
I don't know exactly how to deal with this idea, but seems fair that the slower motor has "more turns" to do.
Considering a small delay time, probably the gap will never be really noticed.
And I can use specific amount of positions and speeds, I mean, I can consider only 8 different end positions and 6 different speeds, so that I have the size of the loop and the array well defined.
I don't know, I have to try it.
It's more complex than I would like, but I guess moving 3 motors independently would be complex any way.
So, any different idea would be nice.
[]s Alex Rio de Janeiro
|