Electronics

Laser Receiving Module Laser output High Level Non-modulator Tub Sensor

AED 9.50

1

Description

The Laser Non-modulator Tub Sensor Receiving Module is essential for enthusiasts and developers working with Raspberry Pi and Arduino projects. This sensor is designed to receive laser output and decode it into digital data, adding a new dimension to your electronic circuits.

 

Features:

  • Versatile Compatibility: Compatible with both Raspberry Pi and Arduino platforms, providing flexibility for a wide range of projects.
  • Digital Data Decoding: Capable of receiving laser signals and decoding them into digital data for seamless integration into your applications.
  • Output Control: The module outputs a high-level (5V) signal when it receives a laser signal and transitions to a low level when no laser signal is detected.
  • Compact Design: With dimensions of 24 x 15 x 8 mm (LxWxH) and weighing only 3g, this module is compact and lightweight, making it easy to incorporate into your projects.
  • Wide Operating Range: Operates efficiently in temperatures ranging from -30ºC to 85ºC, ensuring reliability in various environmental conditions.

 

Specifications:

  • Working Voltage: 5V DC
  • Operating Temperature: -30ºC ~ 85ºC
  • Dimensions: 24 x 15 x 8 mm (LxWxH)
  • Weight: 3g
  • Output Levels: High when laser signal detected, low when no laser signal is received.
  • Application: Ideal for electronic circuits, offering a valuable tool for hobbyists and professionals alike.

 

Arduino Code:

This Arduino code is for a laser sensor module. It continuously reads the digital signal from the laser sensor connected to pin 2 (SENSOR_PIN). When the sensor detects a laser (HIGH signal), it activates an action (e.g., turns on a buzzer) connected to pin 8 (ACTION_PIN). If no laser is detected (LOW signal), it deactivates the action. The code includes serial communication for monitoring the sensor's status, and there's a delay of 200 milliseconds between each iteration in the loop function.

const int SENSOR_PIN = 2;   // Pin 2 for the sensor
const int ACTION_PIN = 8;   // Pin 8 for the action to do something

void setup() {
  Serial.begin(9600);
  Serial.println("Robojax.com Laser Module Test");

  // Set pin modes
  pinMode(SENSOR_PIN, INPUT);
  pinMode(ACTION_PIN, OUTPUT);
}

void loop() {
  // Read laser sensor
  int detected = digitalRead(SENSOR_PIN);

  // Perform action based on the laser detection
  if (detected == HIGH) {
    digitalWrite(ACTION_PIN, HIGH);  // Turn on the action
    Serial.println("Detected!");
  } else {
    digitalWrite(ACTION_PIN, LOW);   // Turn off the action
    Serial.println("No laser");
  }

  delay(200);
}

 

 

Package Includes:

1 x Laser Receiving Sensor Module