Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Sharp GP2D15 IR Sensor

Status
Not open for further replies.

rhtank50

New Member
I got my digital IR sensors in the mail the other day and tested them out using a DC power supply and tested the output with an oscilloscope. The output wasn't what I expected (data sheets showed a zero for no detection and a square wave pulse for detection). I got a negative spike .2 V long when nothing was detected and a zero output when something was detected. Will these outputs work when coding my bot?

Thanks for the help,

David
 
Check your datasheet..... the output of this sensor is open collector.... so you are going to need a pull up resistor for your square wave.

Open Collector just means that the device is only able to provide with a ground connections when detecting, when no detecting the pin will be floating. By adding a 4.7K resitor between the outoput and +5V, you will be able to get a 1, when nothing is infront of the sensor and a 0 when there is something.



Links:
https://www.acroname.com/robotics/parts/R49-IR15.html
https://www.acroname.com/robotics/parts/SharpGP2D12-15.pdf
https://www.acroname.com/robotics/parts/sharp_guide.pdf


Ivancho
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top