window motor

I order a window motor and how would I go about coding for one in arduino? Also, would like to connect a potentiometer do get feedback

Any help you can offer is appreciated.

Thanks.

Well that depends what you want to do. Do you mean a car-window motor? Do you have a suitable motor driver circuit/shield?

[ it helps to give full information in your question - which motor? link to the specification/data sheet, a description of exactly what you want to achieve, etc etc ]

yeh am talking about a car-window motor, i would like to achieve a feedback system on it which i can read on my arduino and if this can be done how would i go about it.
using a potentiometer maybe not sure. i can't find a data sheet, sorry but below there a link of what a car-window motor looks like.

Is it the exact same Model as in the link? And does it say anything on the Motor(label, specs, mod.number)?
Also to drive it correctly I´d youse a Motor Shield.

no there no label or part number but i know you can pick them off ebay go my one from scrap yard cheaper.. can you post a link of the motor shield you think would do the job...

So here are two links for the Motor Shield:

http://www.ladyada.net/make/mshield/

and

http://www.ebay.de/itm/DE-Lager-SainSmart-L293D-Motor-Drive-Shield-Arduino-Mega-UNO-R3-AVR-ATMEL-/170850920709?pt=Wissenschaftliche_Geräte&hash=item27c7822905#ht_3016wt_1396

But I´m not so sure if the shield can handle the Voltage and Amps to drive the Motor. If not I´d try it with a relay but then you can not controll it. So I would go for High Power Mosfets.

I also found this circuit which shows a schematic of a car starter and window motor circuit.

http://wiringschematic.net/wp-content/uploads/2012/04/toyota-hilux-pickup-power-window-control-wiring-diagram_thumb.png