Contents

Interfacing KY-008 Laser Transmitter Module with Arduino

KY-008 Laser Transmitter Module Features

This Laser module emits a small intense focused beam of visible red light.  The operating voltage is 3-5 V and the required current is 40mA.

Note

Since the required current is 40 mA and the Arduino pins can supply this current, this module can be connected directly to Arduino. If need be more than 40mA, direct connection to Arduino will damage the Arduino. In that case, you need to use a laser driver to connect the laser module to Arduino.

KY-008 Laser Transmitter Module Pinout

This module has 3 pins:

  • VCC: Module power supply – 5 V
  • GND: Ground
  • S: Signal pin (to activate and disactivate laser)

You can see the pinout of this module in the image below.

Required Materials

Hardware Components

Arduino UNO R3 × 1
KY-008 Laser Transmitter Module × 1
Male to Female jumper wire × 1

Software Apps

Arduino IDE

Interfacing KY-008 Laser Transmitter Module with Arduino

Step 1: Circuit

The following circuit shows how you should connect Arduino to this module. Connect wires accordingly.

Step 2: Code

Upload the following code to Arduino.

  /*
  Made on 18 Nov 2020
  By Mehran Maleki @ Electropeak
  
Home
*/ void setup() { pinMode(7, OUTPUT); } void loop() { digitalWrite(7, HIGH); delay(1000); digitalWrite(7, LOW); delay(1000); }

In this code, we first set the Arduino pin number 7 as the output, because we are going to control the laser with it. Then we turn the laser on and off every second.

Uploading above code, the laser connected to the Arduino will turn on and off every second.

Liked What You See?​
Get Updates And Learn From The Best​

Comments (3)

  • Microprocessors and Sensors – Safa Fathima Reply

    […] (2021). Interfacing KY-008 Laser Transmitter Module with Arduino. [online] Available at: https://electropeak.com/learn/interfacing-5v-650nm-ky-008-laser-transmitter-module-with-arduino/ [Accessed 16 Mar. […]

    March 16, 2023 at 9:32 pm
  • nick Reply

    The picture of the module pinout in the “Transmitter module” section and the “required Materials ” section seems to have been reversed, the other pictures in the article are all the correct way round. The very top picture is correct, the fritzing diagram of the circuit is correct.

    August 27, 2024 at 3:07 pm
    • Mohammad Damirchi Reply

      Hi Nick,
      Due to the manufacturing timing, the pinout of the module may be reversed. It’s recommended to double-check the pin names on the module before connecting it.

      August 28, 2024 at 5:49 am

Leave a Reply

Your email address will not be published. Required fields are marked *