Hello Dear Makers!, This tutorial is an open source arduino project that teaches how to run 5 laser module to arduino microcontroller this project is very useful for school and indoor activities. you can also use this laser security alarm which i made recently, and laser light shows which i will make soon and many more.
Gather all the Requirements
5 pcs laser modules
Arduino Microcontroller board
Type B usb cable
PC
Breadboard
Jumper wires/optional
The laser module has 2 set of pin the GND or (-) and the pwm pin which is the (+) which will be connected to specific arduino digital pin input. the laser module as 220k ohms resistor built-in so no need to put resistance from the circuit.
The Connection of Lasers to Arduino
Dowload the arduino Desktop IDE: https://www.arduino.cc/en/Main/Software
When the download is finished, un-zip it and open up the Arduino folder to confirm that click yes, there are some files and sub-folders inside. The file structure is important so don’t be moving any files around unless you really know what you’re doing.
SKETCH CODE
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
Upload the sketch to your arduino then Test the laser, it should blink every 1 sec, you can edit the delay time 1000 = 1 seconds from the sketch. these is a parallel circuit. all of the GND pin of the laser is connected to the GND of the arduino and the PWM pin is to D13 one circuit.