Input voltage: 5V DC
Input current: 30mA
Wavelength: 650nm
In this tutorial, we will show you how the Laser Diode Module works with Arduino together. The materials needed are listed as below:
Arduino Uno
Female to male jumper wire
USB Cable Type A to B
Diagram above shows the Laser Diode Module pinout, which contains Signal (labeled as S), GND (labeled as -) and the middle pin indicates +5V. The connection between Laser Diode Module and Arduino Uno is described in detailed way as below:
Signal -> Pin 8
GND -> GND
+5V -> 5V
Download the source code attached here and open it via Arduino software or IDE.
Choose the correct board and port before uploading the code into the board.
Upload the source code into Arduino Uno.
From the source code, "delay (1000)" means that the duration goes for 1 second. Both "digitalWrite (LaserPin, HIGH)" and "digitalWrite (LaserPin, LOW)" indicates when the input voltage is high or low, which light up or fade out the Laser Diode respectively. The expected outcome should be:
The Laser Diode light up for 1 second.
The Laser Diode fade out for 1 second.
Repeat the 2 steps above until stop supplying the voltage into Laser Diode Module.
Input voltage: 5V DC
Input current: 30mA
Wavelength: 650nm
In this tutorial, we will show you how the Laser Diode Module works with Arduino together. The materials needed are listed as below:
Arduino Uno
Female to male jumper wire
USB Cable Type A to B
Diagram above shows the Laser Diode Module pinout, which contains Signal (labeled as S), GND (labeled as -) and the middle pin indicates +5V. The connection between Laser Diode Module and Arduino Uno is described in detailed way as below:
Signal -> Pin 8
GND -> GND
+5V -> 5V
Download the source code attached here and open it via Arduino software or IDE.
Choose the correct board and port before uploading the code into the board.
Upload the source code into Arduino Uno.
From the source code, "delay (1000)" means that the duration goes for 1 second. Both "digitalWrite (LaserPin, HIGH)" and "digitalWrite (LaserPin, LOW)" indicates when the input voltage is high or low, which light up or fade out the Laser Diode respectively. The expected outcome should be:
The Laser Diode light up for 1 second.
The Laser Diode fade out for 1 second.
Repeat the 2 steps above until stop supplying the voltage into Laser Diode Module.
No comments:
Post a Comment