"Really stuck " isn't going to get us to do your homework. If you want to solve the problem then stop asking us to do it for your and start researching it. This is not HomeworkRUS.
Use Google with the word "arduino " in front of whatever you are trying to research .
I am trying to get 2 dc motors to work together to position a moving object in between them.
I don't even know what that means. Stop being cryptic and tell us what the object is. You haven't told us anything about the= hardware you are using to drive these motors. If you want help, you have to do your part. Post your code and any documentation or links pertaining to whatever you are using to drive the motors.
The object moves along a fixed axis with values from say 0 to 159 (Max left and max right respectively).
Learn how to flap your wings (move the motors) before trying to fly (position the object)
What I am trying to do is the following:
Say the object is in furthest position 0. Left motor runs in reverse, right in forward until the object approaches the center (80) where they slow until stopping. Should the object move along this axis before center is achieved , the motors adjust accordingly. It should be noted that the object does not move very quickly. I have tried looking at various different PID examples but getting something to control 2 objects from 1 input isnt really covered. [/quote]
This is stupid. If you're not going to tell us what the object is do it yourself.