Arduino Blog #7 Blinking 5 laser modules

in #blog6 years ago

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.

20180425_172317_HDR.jpg

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.

20180425_172407_HDR.jpg

The Connection of Lasers to Arduino

rr.png

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.

20180425_172548_HDR.jpg


ee

Sort:  
Loading...

Coin Marketplace

STEEM 0.35
TRX 0.12
JST 0.040
BTC 70601.11
ETH 3576.21
USDT 1.00
SBD 4.78