Download datasheet
Main component : SFH 9206 - Reflective Interrupter
• 940nm emitter in combination with a silicon NPN phototransistor
• Optimal operating distance 1 mm to 5 mm
• Daylight cut-off filter
• Emitter and detector electrically isolated
• Soldering Methode: IR Reflow Soldering
• Position reporting
• End position switch
• Speed monitoring and regulating
• Motion transmitter
Sample program
ProximityTest.py
* functions *
import Proximity
def getInfo(Number) : Getting hardware information of device board
Number : connector number of baseboard
def power(milModClass, OnOff) :Power ON/OFF the IR LED.
milModClass : module instance
OnOff : LED power ON(1) and OFF(0). This device need worm up time, it is about 0.5 sec. If you want to use this sensor continually, use holdConnect(milModClass) and holdDisconnect(milModClass), please.
def read() :Reading sensing data
return : Reflecting data
Example:
Proximity.holdConnect(mod0)
Proximity.power(mod0,1)#power ON
time.sleep(0.5)#worm up
Proximity.holdDisconnect(mod0)
...
Proximity.holdConnect(mod0)
readData = Proximity.read(mod0)
print "read data = ",readData
Proximity.holdDisconnect(mod0)