Home Arduino KY-008 Laser Transmitter Module

KY-008 Laser Transmitter Module

by iainhendry

The KY-008 Laser Transmitter Module consists  of a 650nm red laser diode head

Connection

Connect signal (S) to pin 3 on the Arduino and ground (-) to GND. Middle pin is not used in this example.

KY-008 Arduino
S Pin 3
middle N/A
GND

 

 

Code

 

[codesyntax lang=”cpp”]

void setup ()
{
   pinMode (3, OUTPUT); // define the digital output interface 13 feet
}

void loop ()
{
   digitalWrite (3, HIGH); // open the laser head
   delay (1000); // delay one second
   digitalWrite (3, LOW); // turn off the laser head
   delay (1000); // delay one second
}

[/codesyntax]

 

Links

37 in 1 box Sensor Kit For Arduino Starters brand in stock

You may also like

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More