#
Product Introduction
The laser module is composed of a 650nm red laser diode head, driving circuit and three male pins, whose role is to generate a red dot shaped laser beam. It should be noted that the laser has powerful energy and highly concentrated beam, laser beam will cause damage to the human eye, do not directly illuminate the laser eyes.
Application reference: This module can be used in laser alarm, laser sight, smart home, etc.
Parameter Specification #
Parameters | Value/Description |
Operating voltage | 3.3V~5V |
Light spot pattern | Red light dot |
Wavelength of light source | 650nm |
power | 5mW |
output signal | Digital signal /PWM signal |
Size | 3.16cm*2.38cm |
Wiring Diagram #
Note:Expansion board is attached to esp32 controller board.
Laser Module | ESP32 |
VCC | 5V |
GND | GND |
Sign | Pin 32 |
Sample Code #
void setup(){
pinMode(32, OUTPUT);//Set pin 32 as an output pin
}
void loop(){
digitalWrite(32, HIGH);//Turn on the Laser Module connected to pin 32
delay(1000);//Wait for 1 second
digitalWrite(32, LOW);//Turn off the Laser Module connected to pin 32
delay(1000);//Wait for 1 second
}
Note: If you are using an Arduino board, then change the pin in the program to PIN7, and then connect the hardware pin to PIN7 and upload the program.
Test Result #
When you have successfully connected the line according to the wiring diagram and successfully uploaded the correct program, your laser module will light up and blink.
Note: After the laser module is lit, do not direct eyes.
Related Resources #