5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



EASY PLUG Super Starter Kit For Arduino Project 10: Photo Interrupter

Posted by Fiona Su on

Overview
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
Component Introduction:

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.

thumb

Upload the Code
Below is an example code.

thumb

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.

thumb

thumb

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.

thumb

Upload the Code
Below is an example code.

thumb

thumb

What You Should See

thumb

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.

thumb

You should be able to see the number of covering the light is showed on the 4-digit LED display, or on the monitor.

thumb

All Tutorial

 Buy here>>EASY PLUG Super Starter Kit For Arduino STEM EDU

0 comments

Leave a comment

Please note, comments must be approved before they are published