Tags: KY-008, Laser, Transmitter, Module, 650nm, Arduino

Laser Transmitter Module 650nm KY-008 Red Laser

  • 9.00 AED
    • Ex Tax:9.00 AED
    • Brands techmaze
    • Product Code: Digital
    • Availability: In Stock
    Laser Transmitter module KY-008 for Arduino,is one of the more common devices found in Arduino sensor kits.   Coupled with other components, it can be used to create trip wires or optical effects. it  emits a dot shaped, red laser beam.The KY-008 is particularly neat because it c..
    Laser Transmitter module KY-008 for Arduino,is one of the more common devices found in Arduino sensor kits.   Coupled with other components, it can be used to create trip wires or optical effects. it  emits a dot shaped, red laser beam.
    The KY-008 is particularly neat because it can be directly powered from an Arduino output pin as it only draws 30 mA from the processor that has outputs rated for 40 mA.



    Specifications

    The KY-008 Laser transmitter module consists of a 650nm red laser diode head and a resistor. Handle with caution, do not look directly into the laser head.
    Operating Voltage5V
    Output Power5mW
    Wavelength650nm
    Operating Currentless than 40mA
    Working Temperature-10°C ~ 40°C [14°F to 104°F]
    Dimensions18.5mm x 15mm [0.728in x 0.591in]

    This tutorial will help you learn How to use the red laser module KY-008 with the Arduino Uno

    In this tutorial, it shown how to build an optical barrier. The barrier detects any movement between the sender and the receiver. The sender is a laser module (Keyes KY-008) that emits red light (wavelength: 650nm). The laser detector/receiver is an unnamed module that returns either a LOW signal or a HIGH signal (no “analog values” in between)

    KY-008 Connection Diagram

    Connect signal (S) to pin 13 on the Arduino and ground (-) to GND. Middle pin is not used.

    How to build an optical/light barrier with the Arduino, the Keyes laser module (KY-008) and a laser receiver/detector module

    In this tutorial, it shown how to build an optical barrier. The barrier detects any movement between the sender and the receiver. The sender is a laser module (Keyes KY-008) that emits red light (wavelength: 650nm). The laser detector/receiver is an unnamed module that returns either a LOW signal or a HIGH signal (no “analog values” in between)

    How to connect the laser module and laser detector to the Arduino?


    The laser module has three pins. Only two pins are used: The “-” pin is connected to one of the Arduino’s GND pins. The “S” pin of the laser module is connected to the Arduino’s pin “2”. Therby, the laser can be switched off or on by sending either a LOW signal or a HIGH signal. The detector module has also three pins. The module’s “VCC” pin is connected to the Arduino’s “5V” pin and the GND of the module is connected to the Arduino’s GND. Lastly, the signal pin”OUT” of the module is connected to pin “3”.

    How to program the light/optical barrier?
    First, the pin values for the laser and the receiver are initialized. Next, the laser pin is set to OUTPUT mode and the receiver pin is set to INPUT mode. Then, the laser is switched on by setting “pinLaser” to HIGH. In order to monitor the light barrier’s state, a serial connection is started.
    In the loop function, the value of the receiver is read. The retrieved value can either be LOW or HIGH. LOW means that the laser does not reach the detector, e.g., something went through the light barrier and is located between the laser and the detector. Then, the value of the detector is written to the console. Finally, a delay of 1000ms is added for convenience purposes (serial monitor is not “flashing” the values).

     

    1. // (c) Michael Schoeffler 2014, http://www.mschoeffler.de
    2. const int pinLaser = 2; // output signal pin of laser module/laser pointer
    3. const int pinReceiver = 3; // input signal pin of receiver/detector (the used module does only return a digital state)
    4. void setup() {
    5. pinMode(pinLaser, OUTPUT); // set the laser pin to output mode
    6. pinMode(pinReceiver, INPUT); // set the laser pin to output mode
    7. digitalWrite(pinLaser, HIGH); // emit red laser
    8. Serial.begin(9600); // Setup serial connection for print out to console
    9. }
    10. void loop() {
    11. int value = digitalRead(pinReceiver); // receiver/detector send either LOW or HIGH (no analog values!)
    12. Serial.println(value); // send value to console
    13. delay(1000); // wait for 1000ms
    14. }

    If the code has been successfully uploaded to the Arduino, the output on the Serial Monitor (Tools->Serial Monitor, Ctrl+Shift+M) should look like this:

    Serial monitor output of the light barrier example. If something is inside the light barrier, “0” is printed out to the monitor. Otherwise, if the red laser light points to the detecctor, “1” is printed out.

    Remarks:
    The detector’s LED, which is located next to the detector, indicates whether the detector is connected to a power supply.

    Video Tutorial:




    Tags: communication; ir; laser; led; module; wireless