KY-008 Laser Transmitter Module

The KY-008 Laser Transmitter module can be used as a laser pointer. It emits a dot shaped, red laser beam.

Compatible with Arduino, Raspberry PI, ESP32 and other popular microcontrollers.

KY-008 Fritzing custom part image
KEYES KY-008 Laser transmitter module for Arduino

KY-008 Specifications

This module consists of a 650nm red laser diode head, a resistor and 3 male header pins. Handle with caution, do not point the laser beam directly to the eyes.

Operating Voltage5V
Output Power5mW
Operating Current< 40mA
Working Temperature-10°C ~ 40°C [14°F to 104°F]
Board Dimensions18.5mm x 15mm [0.728in x 0.591in]

Connection Diagram

Connect the module signal pin (S) to pin 13 on the Arduino and ground (-) to GND.

The middle pin on the module is not used.

SPin 13
Arduino KY-008 connection diagram

KY-008 Arduino Code

The following Arduino sketch is a laser blinker. It will continually turn the laser on and off in one second intervals.

int laserPin = 13;

void setup() {                
	pinMode(laserPin, OUTPUT);  // Define the digital output interface pin 13 

void loop() {
	digitalWrite(laserPin, HIGH); // Turn on the laser head
	delay(1000); // wait for one second
	digitalWrite(laserPin, LOW); // Turn off the laser head


Leave a Comment

9 thoughts on “KY-008 Laser Transmitter Module”

  1. Thank You for this short tutorial!!!!!!
    I had bought a laser module but did not know how to use it.. luckily found this site!

  2. Where can I find all the specifications to this module? (i.e. beam divergence, beam power density, etc.)

  3. Hi Arduino Modules, please help me to figure out the durability of the KY-008 Laser transmitter module. Thank you so much.

    • Please kindly inform me of the maximum duration (how many hours) of the KY-008 laser transmitter and the maximum distance the signal from the transmitter can reach the receiver.

      Thank you very much.

  4. Pingback: Laser Transmitter Module Blog #1 – UWE PDT P.Comp
    • Great article! finally an answer to the mysterious middle pin.