Skip to content
Advertisements

Arduino KY-008 LASER module

 

                 Hi, this is a fast tutorial about the KY-008 LASER module, I wanted to show you how it works before I use it in projects (as I do always), and also to test my new shooting setup and location.

the KY-008 is a very compact laser module, easy to use, it contains 3 pins, I’m just using 2 of them here, even if I tried to use different codes and wiring, they didn’t affect as long as the (-) is connected to GND and (S) to 5V, some says there are 3 pins just because it’s a part from the 3 pinned module because they used a standard 3 wires connectors and some says that it should be connected to regulate the current to avoid destroying the module.

I’ll use the two pins wiring and if the module start showing some major problems I’ll let you know.

téléchargement

 

Wiring:

azedsq

Code:

//This code is to use with Laser module KY-008 it turns on for 2secs and turns of for 2secs
//Refer to SurtrTech.com for more information


int Laser = 6;

void setup() {
pinMode(Laser,OUTPUT);
}

void loop() {
digitalWrite(Laser,HIGH);
delay(2000);
digitalWrite(Laser,LOW);
delay(2000);

}
Advertisements

Yassine View All

Electronics, Automation engineering student... I try to share my little experience with other electronics amateur.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: