Octopus Photo Interrupter Sensor(EF04012)
11. Octopus Photo Interrupter Sensor(EF04012)#
Photo Interrupter Sensor is a sensor module based on ITR9608 photoelectric switch that can be used with micro:bit.
The 3-pins ports is easy to plug and play. It can work with micro:bit in 3V.
|ITR9608 Optoelectronic switch||Built-in infrared transmitter and receiver tube|
|LED with signal||Signal Indicator|
|Working Voltage||DC 3.0V-5.0V|
|Pins Definition||1-Signal 2-VCC 3-GND|
|Response||Quick to response with high sensitivity|
|Stability||Stable and durable|
11.4. Outlook and Dimensions#
11.5. Quick to Start#
Connect to P1 port as the picture shows.
Take sensor:bit for example
Program as the picture shows#
Show the value variable. Add 1 on the value variable each time when the Photo Interrupter Sensor detects a value.
You can also download it directly below:
The on start micro:bit shows number 0, the counting system would add one each time when objects are put on the Optoelectronic switch.