Laser Module(HW-493)

아두위키 : Arduwiki
ArduWiki (토론 | 기여)님의 2024년 7월 10일 (수) 14:40 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

A module that emits a laser with a wavelength of 650nm.

Care should be taken when using it due to the strong light emitted.

Specifications

  • Operating Voltage: 5V
  • Operating Current: less than 40mA
  • Wavelength: 650nm

Example Hardware Used

  • Arduino Board
  • Jumper Cables
  • Laser Module

Connection

Laser Module Arduino
+ 5V
- GND
S D7

Example Code

int laser = 13;

void setup() {
  pinMode(laser, OUTPUT);
  digitalWrite(laser, LOW);
}

void loop() { // Code to turn the light on and off every 0.5 seconds
  digitalWrite(laser, HIGH);
  delay(500);
  digitalWrite(laser, LOW);
  delay(500);
}

Example Code Result