I have a motor that is currently being run as a stand alone device that I need to control through my computer so that it only performs 6000 revolutions and then stops. The motor takes in two sets of wires with the following properties.

You say it's currently running as a standalone device but something must be producing the pulses that are driving it. If you have a part number for the motor or a link to it's data sheet that would help. The arduino is capable of producing the pulse sequences you need but without more info we cannot be sure what sequence the pulses need producing in, the current is being drawn by the motor and what other components will/may be needed.

The arduino is capable of producing the pulse sequences you need but without more info we cannot be sure what sequence the pulses need producing in, the current is being drawn by the motor and what other components will/may be needed.

Also, keep in mind that offical Arduinos, and all third-party versions I'm aware of, can only generate PWM signals of the same voltage level as what is powering the microcontroller chip. Therefore on a standard Uno, Mega, or Leonardo, while a constant 3.3 VDC is available the PWM always be at 5 VDC. Therefore, you will have to reduce the voltage of the PWM some how, either by a voltage divider or a uni-directional level shifter circuit.

It looks like the green/blue & red/orange wires are going to switches. As the motor turns does something trip the switches? maybe they count revolutions. The motor is probably using just 2 wires (5v)The MD3110 might be E-San Electronic's dc-to-dc-Charge Pump Voltage Converter.The A29L040L looks like its flash memory.

The motor is enclosed so if there is a switch being tripped I can not see it. I was hoping to do away with the boards (MD3110 and A29L040L) and replace them with the Arduino to run the motor. Does that seem possible? I don't think the motor draws many amp's.

The motor is enclosed so if there is a switch being tripped I can not see it. I was hoping to do away with the boards (MD3110 and A29L040L) and replace them with the Arduino to run the motor. Does that seem possible? I don't think the motor draws many amp's.

The switches are plain to see (image). Do they get tripped when the motor runs? The project could easily be replaced by an arduino but you will need some way of counting revolutions so you know when your at 6000

Maybe I can ditch the whole rig and replace the motor with a parallax servo. Now the big thing is getting it to count to 6000

I'm not sure how (if at all) easy it is to count revolutions of a parallax servo without some kind of external counter. They also tend to rotate quite slow. So how fast can this motor rotate and how accurate must the 6000 revolutions be?Is the entire white casing the motor housing or is the motor embedded in it somewhere and what does it do? Can you photograph the other side so we can see motor & shafts please.Do the switches count revolutions, it looks like the plastic bit that trips them is to big to rotate.