Go Down

Topic: 2 servos (or any functions) operating simultaneously? (Read 13 times) previous topic - next topic

PaulS

Quote
I think I'm heading in the right direction and what I now understand or at least think I understand is that there is a conversion problem.

But, I'm not going to show you my code.

Quote
It is between the 'serial buffer' and the 'readString' variable which is then indexed to 'n' in 'servo.write()'.

Well, certainly. Fix it. Or not. Only you can see what you are talking about.

Quote
I'm still looking for applicable information on this subject. 

What subject would that be?

evolion

PaulS:

So are your comments serious?
                                       ...joking?
                                 or seriously joking?

the code I've been working on is on post #27
       are you saying you aren't going to post yours?

Well, if you look at post #27, you can see it too
if you were to run it, you can certainly see what it do
Unfixed. And so.

the subject is apparently in the form of a question as the title of the thread (see title)
      any more explanation of my problem would be ad nauseam

If you have any info that could possibly help me solve it, I'd love to know about it. 

AWOL

Quote
the code I've been working on is on post #27
       are you saying you aren't going to post yours?

If you've been working on the code in post #27, presumably it now doesn't look like the code in post #27, so you need to post it again.
Now.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

zoomkat

Quote
the subject is apparently in the form of a question as the title of the thread (see title)
      any more explanation of my problem would be ad nauseam


Well, "2 servos (or any functions) operating simultaneously?" seems to have you stummped. The code only does one thing at a time, but the code itself performs actions so fast you will not be able to detect the individual actions (unless you add delays and such).

Quote
If you have any info that could possibly help me solve it, I'd love to know about it. 


Well, if the "it" problem is a knowledge deficit on your part, it is up to you to get up to speed.
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)

evolion

#34
Jan 26, 2013, 04:51 am Last Edit: Jan 26, 2013, 09:41 am by evolion Reason: 1
AWOL:
I have probably made 100's of changes to the code in #27 by now, except none of them have have brought me any closer to my goal.  Each change has had either no effect, produces undesirable effects, nullifies the code altogether, or doesn't compile.  
I believe each half of the code (PROGMEM with table to Serial buffer) and (Serial.read to index. to .write) are doing things I want to see happen, I just can't seem to integrate them to work together.  Nothing I have done has furthered what is already there.
So, effectively, the code remains unchanged.
 
zoomkat:
I understand that it does one thing at a time and gives the impression of simultaneity, the code you presented to me (2nd half of the code in #27) definitely produces this effect.  I'm still trying to figure out what function/s will replace manually inputting parameters to serial.  

The "it" certainly results from my surplus of ignorance but I'm not sitting idle waiting for someone to bestow their esoteric knowledge unto me, although it would be sweet to be blessed with such an occurrence, not unlike you supplying much the code I'm working with now.  I'm doing my due diligence and have gone through the entire reference especially focused on 'string theory', investigated many of the links provided and their links also, as well as other forums and books.  I'm learning as much as I can as quickly as I can - I may have totally overlooked the exact solution because I didn't know what I was looking at, I don't know.
I'm not going to give up on the issue, I want to understand how it is done, but I'm reaching a threshold of having to re-prioritize in order to meet the deadline for the robotics challenge.  I've figured out a way for a hexapod to use 2 servos to do the work of the 12 originally planned and as long as I am able to get the parts printed it shouldn't be too difficult to make happen.  I won't need to have the servos operate simultaneously.  

I will continue to work on this simultaneous servo problem in my spare time.  In the meantime I built a different style of 'walking' robot prototype using 2 servos out of battery compartments and paperclips.  I've got a couple of other projects that I want to finish/get started after the challenge.  I'll go nuts if I only focus on this problem.

[img][img]

Go Up