I have one question . I want to try out a sensor called E18-D50NK, which is a infrared proximity sensor, for obstacle avoidance. More details and information about this sensor can be found here :
It says that the sensor is for arduino, and I also want to try it on a Raspberry Pi. My question is how can I set it up, and what kind of python program would I need to read information from it.
It says that the red wire connects to the voltage which in this case is 4.5 to 5, which the raspberry pi can supply. The green wire connects to GND (ground), and the yellow :connect with single chip microcomputer,output TTL level to microcomputer. And that I am not very sure how and where to connect it.
If anyone knows how to wire up this sensor, and how to write a python program in order to read its information and data, please post and explain below. Thank You !
One other thing is that I think this sensor has analog output, which means that I will need an analog to digital converter, and that is not a problem because I have one, running via I2C.