Laser Module(HW-493): 두 판 사이의 차이
(Created page with "{{#seo:|title=아두위키 : 아두이노 레이저 모듈 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, 레이저 모듈, 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 레이저 모듈을 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커수업에 활용가능합니다.}} File:레이저모듈 대표이미지.jpg|center|cla...") |
(차이 없음)
|
2024년 3월 24일 (일) 14:34 판

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);
}