Pduino + Motors

Hi all;

I'm very new to Arduino and I'm having a bit of trouble.

I need to be able to control the speed of a motor while using Pure Data with Pduino. My initial problem is getting the motor working at all. I've 2 small motors (only need to use one though) and both of them have 2 input pins on them, but I've no idea what each of them are. All the tutorials I've seen involving motors, they all have 3 pins; so I'm really unsure of how the wiring should be. For example http://arduino.cc/en/Tutorial/Knob

Secondly I'm not 100% on what I'd have to do in Pure Data in order to control the knob. I'd like to use an [osc~] or [phasor~] object to control the speed of the motor.
Can anyone help me here please?

I also have a sensor triggering audio, so that takes up a couple of pins, but I still have plenty.

Thank you :slight_smile:

You need to clarify whether you're dealing with a plain old DC motor, or a servo, or something else. Their characteristics are completely different and until you know what you're dealing with it will be impossible to advise how to drive it.