Need help wiring dc motors to motor shield

Need help wiring DC motor with 5 wires to arduino motor shield. Typically each DC motor I dealt with in the past had a two wire connection (one for power and one for ground). The new motors I bought have a 5 pin male connector attached to them and they supplied the female to male wires but, I don’t know where to connect them to. Any help would be appreciated. This project will be a 4wd robot so will need to connect all 4 motors to the shield. I have attached a picture of the motor showing the connector.

With 5 wires it sounds like a bipolar stepper motor. Can you post a photo? And any information on the data plate (manufacturer, model, voltage, rated current, etc.)? Also what motor shield (link)?

Edit: I just realized that it could be a DC motor with a built in encoder, as well.

this is a picture of the motors with the male connectors|500x371

Here is a listing of the specs |375x500

Here is the internal Hall sensor info |500x234

VM, GM: For motor's VCC and GND V, G: sensor power supply S1, S2: Sensor signal output

Here is the motor shield I'm using |500x496

Up to 4 bi-directional DC motors with individual 8-bit speed selection Can run motors on 4.5V to 25V DC. Pull down resistors keep motors disabled during power-up The L293D Motor Drive Shield is a monolithic integrated, high voltage, high current, 4-channel driver. Basically this means using this chip you can use DC motors and power supplies of up to 25 Volts, thats some pretty big motors and the chip can supply a maximum current of 600mA per channel.

twright181: The L293D Motor Drive Shield is a monolithic integrated, high voltage, high current, 4-channel driver....

Haha, funny. That shield with ancient inefficient bipolar chips is basically only ok for small toy motors. Peak current for those chips is 1.2Amp. Motor stall current @9volt is 4.5Amp. Look at the Pololu site for more suitable mosfet based motor drivers. Leo..

So if I swap out the motor shield how do I connect the 5 wires from the motor to the board and shield?

The VM and GM wires connect to the motor shield. Where and how depends on the particular motel shield. The other wires are for the built in encoder and will not connect to the motor shield.

Ok, sounds good I'll give it a try and post my results, thank you for your help