DC Motor Challenge

graef685 wrote 10/17/2016 at 21:48 1 point

We have 2 DC-Motors with wheels assembled, controlled by any Microcontroller or Computer, e.g. an Arduino.

We have built a vehicle out of these and now we want to perform a 360 degree spin with it under the following requirements:

- One motor runs forward and the other backward with the same speed

- Motor speed is a variable and can be set between 0 and 255

- Charm of a DC-Motor: It takes some little (unkown) time to get them running at full speed and to stop them completely

Our Goal to reach is to spin the vehicle exactly by 360 degrees under following circumstances:

- Motor speed should be customizable, thus still a variable

- this leads to, that the time needed to perform the spin is not fixed, but depends on the motor speed

Create a formula for this or realize it with additional components like sensors. Anything is allowed. Post your code and thoughts here.