Laser Module(HW-493) JP

아두위키 : Arduwiki
ArduWiki (토론 | 기여)님의 2025년 3월 27일 (목) 15:17 판 (새 문서: {{#seo:|title=ArduWiki : Arduino レーザーモジュールガイド|title_mode=append|keywords=Arduino, 情報科学, メイカー学習, パフォーマンス評価, レーザーモジュール, Arduino作品, キャップストーン作品, Arduinoサンプルコード|description=Arduinoでレーザーモジュールを制御する方法(基本情報、配線、サンプルコード)を紹介します。情報科学やメイカー授業に活用できます。}} 파...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

650nmの波長のレーザーを発生させるモジュールです。

光が強いため、使用には注意が必要です。

仕様

  • 動作電圧:5V
  • 動作電流:40mA以下
  • 波長:650nm

使用例のハードウェア

  • Arduino board
  • ジャンパーワイヤー
  • レーザーモジュール

接続方法

レーザーモジュール Arduino
+ 5V
- GND
S D7

サンプルコード

int laser = 13;

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

void loop() { // 0.5秒ごとにレーザーを点灯・消灯
  digitalWrite(laser, HIGH);
  delay(500);
  digitalWrite(laser, LOW);
  delay(500);
}

実行結果