Broken Light Photo Interrupter module HW-487

46

SKU: SE1184 Category:

Description

Broken Light Module uses digital interface 13 with LED to build a light-shielding module and simple circuit, making a light-shielding warning light. Using 13 built-in LEDs in the digital interface to connect a light saver sensor to the digital interface 3. When the light protector sensor detects a signal button, the LED will turn on; otherwise, it will be closed.

The photo interruption module triggers a signal when light is blocked between the opening of the sensor. The photo interrupter module consists of an optical emitter/detector on the front and two resistors (1 kΩ and 33 Ω) on the back.

Connection:

  1. – (left) GND
  2. + (center) 5V
  3. S (right) Pin 3

Features:

  1. Small size
  2. Low Cost
  3. good performance

KEYES KY-010 Photo interrupter module for arduinoKY-010 Fritzing custom part image

SPECIFICATIONS

This module consists of an optical emitter/detector and 3 male header pins on the front. On the back there are two resistors of 1kΩ and 33Ω.

The sensor uses a beam of light between the emitter and detector to check if the path between both is being blocked by an opaque object.

Operating Voltage 3.3V ~ 5V
Board Dimensions  18.5mm x 15mm [0.728in x 0.591in]

CONNECTION DIAGRAM

Connect the power line (middle) and ground (left) to +5V and GND respectively. Connect signal (S) to pin 3 on the Arduino.

KY-010 Arduino
– (left) GND
middle +5V
S (right) Pin 3
Arduino KY-010 connection diagram

KY-010 ARDUINO CODE

The following sketch will light up the LED (pin 13) on the Arduino when there’s an object blocking the path between the sensor’s gap.

int Led = 13; // define LED pin
int buttonpin = 3; // define photo interrupter signal pin
int val; //define a numeric variable
void setup()
{
	pinMode(Led, OUTPUT); // LED pin as output
	pinMode(buttonpin, INPUT); //photo interrupter pin as input
}
void loop()
{
	val=digitalRead(buttonpin); //read the value of the sensor 
	if(val == HIGH) // turn on LED when sensor is blocked 
	{
		digitalWrite(Led,HIGH);
	}
	else
	{
		digitalWrite(Led,LOW);
	}
}

Package Includes:

1 X Broken Light Module

Additional information

Weight 0.01 kg
Dimensions 3 × 3 × 1 cm

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.