I want to make a Proximity sensor circuit which will stop a 12V motor when the object is 25 cm from the sensor. I am using this sensor:
GP2Y0A02YK0F
http://www.pololu.com/catalog/product/1137
The graph suggests that the voltage equivalent for 25cm is around 2.25VDC. This is what I have come up with so far:
A circuit labelled X will have a constant supply of 2.25 V. It is linked with another circuit (of the sensor itself). When the object is more than 25 cm, the voltage in the circuit will be less than 2.25 and there will be a potential difference between the two circuits. This potential difference will drive the transistor Y. This transistor will drive the 12 VDC motor.
When the object approaches the 25cm distance, the PD will become zero and the current through the transistor will stop.
Is this a correct plan?
GP2Y0A02YK0F
http://www.pololu.com/catalog/product/1137
The graph suggests that the voltage equivalent for 25cm is around 2.25VDC. This is what I have come up with so far:
A circuit labelled X will have a constant supply of 2.25 V. It is linked with another circuit (of the sensor itself). When the object is more than 25 cm, the voltage in the circuit will be less than 2.25 and there will be a potential difference between the two circuits. This potential difference will drive the transistor Y. This transistor will drive the 12 VDC motor.
When the object approaches the 25cm distance, the PD will become zero and the current through the transistor will stop.
Is this a correct plan?
Attachments
Last edited: