In this arduino project, you will learn about how to use a photo interrupter module to turn on the LED and print the analog value on the monitor.
Component Required:
- EASY plug control board*1
- EASY plug Photo Interrupter Module *1
- EASY plug LED Module *1
- EASY plug 4-digit LED Display Module *1
- RJ11 cable*1
- USB cable*1

Keyestudio EASY plug Photo Interrupter Module
This is a high performance EASY Plug photo interrupter module.
It integrates a photo-interrupter, which belongs to an optical switch of a photo-interrupting photoelectric switch.
The upright part on the module combines an infrared light emitting diode and shielded infrared detector.
By emitting a beam of infrared light from one end to another end, the sensor can detect an object when it passes through the beam.
Useful for many applications such as optical limit switches, pellet dispensing, general object detection, etc.
Note: this module needs to be used together with EASY plug control board.
- Supply Voltage: 3.3V to 5V
- Interface: Digital
Connect It Up
Connect the EASY Plug Photo Interrupter module and LED module to control board using RJ11 cables.
Upload the Code
Below is an example code.
What You Should See
Done uploading the code, powered on, if pick up a piece of paper to cover the light on the groove part of module, you should see the LED is turned on. If no interruption, the LED is off.
Extension Experiment
Adding 4-digit LED Display
Hookup Guide
Connect the EASY Plug crash sensor, 4-digit LED display and LED module to control board using RJ11 cables.
Upload the Code
Below is an example code.
What You Should See
Done uploading the code, if pick up a piece of paper to cover the light on the groove part, the LED is turned on. If no interruption, the LED is off.
You should be able to see the number of covering the light is showed on the 4-digit LED display, or on the monitor.
All Tutorial
- EASY plug Super Starter Kit for Arduino STEM EDU Tutorial
- EASY plug Arduino Project 1: Hello World
- EASY plug Arduino Project 2: LED Light
- EASY PLUG Arduino Project 3: Line Tracking
- EASY PLUG Arduino Project 4: Push Button
- EASY PLUG Arduino Project 5: how to control a relay module
- EASY PLUG Arduino Project 6: to detect whether happen collision or not
- EASY PLUG Arduino Project 7: How to measure the outside force?
- EASY PLUG Arduino Project 8: detect whether there is a magnetic field
- EASY PLUG Arduino Project 9: how to make a countdown Clock?
- EASY PLUG Arduino Project 10: Photo Interrupter
- EASY PLUG Arduino Project 11: Hall Magnetic Detection
- EASY PLUG Arduino Project 12: Analog Temperature
- EASY PLUG Arduino Project 13: Tilt Switch
- EASY PLUG Arduino Project 14: how to use an LCD module
- EASY PLUG Arduino Project 15: How to use Sound Sensor
- EASY PLUG Arduino Project 16: How to detect the water drop?
- Easy PLUG Arduino Project 17: Detect the alcohol content in the Air
- Easy PLUG Arduino Project 18: How to Detect the Water Level
- Easy PLUG Arduino Project 19: Potentiometer
- Easy PLUG Arduino Project 20: Temperature and Humidity
- PLUG Starter Kit For Arduino Project 21: Matrix Display
- Easy PLUG Starter Kit For Arduino Project 22: Acceleration