Print this page

Manual - Modulo Laser

Objetivo


El objetivo de este manual es ofrecer la manera de testear el modulo Laser KY-006 con nuestro Uno R3 haciendo que la luz de este se encienda.


Materiales necesarios:


Diagrama de conexión:

 

SENSOR KY-008

 ARDUINO UNO R3

Pin (S) PIN 13
Pin (-) GND (-)

 


 Codigo utilizado:

void setup ()
{
   pinMode (13, OUTPUT);   // define the digital output interface 13 feet
}
void loop () 
{
   digitalWrite (13, HIGH);   // open the laser head
   delay (1000);      // delay one second
   digitalWrite (13, LOW);  // turn off the laser head
   delay (1000);      // delay one second
}