The project goal:
-Activate motor 1 when object with sensor mounted moves in one direction(linear)
-Activate motor 2 when object with sensor mounted moves in opposite direction(linear)
*But the object may switch positions causing this linear motion to vary in terms of x and y axis.
I was leaning towards an accelerometer but with the axis possibly changing that may not work.
- I need the motor to run as long as the object keeps moving.
I am new to this but think it's my best option to achieve my goal.
Please help and thank you for your time.