how can i connect photo interrupter and dc motor to arduino l293d?

Im making a model of roller door garage opening system and will be using the following components
motor - http://www.jaycar.co.nz/productView.asp?ID=YG2730&keywords=motor&form=KEYWORD
interrupter - http://www.jaycar.co.nz/productView.asp?ID=ZD1901&keywords=interrupter&form=KEYWORD
arduino - L293d
I need help inorder to connect the motor and interrupter to the arduino which should run the motor in both directions. Basically the motor should rotate the shaft in both directions to open and close the garage door, the purpose of interrupter is the let the motor know that the door is closed or open and i need suggestions as to what i should be using as sensor which could detect any object interrupting the closing of the door and stop the motor. If you suggest me a sensor please also tell me how to connect that sensor to the arduino

1 answer
Jul 30, 2009. 7:21 AMsajan161 says:
You light need a photointerrupter Genie uses this model LTH-301-32 and its manufactured by LITEON

Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!