DZ292 Laser Receiver Module (DZ292) [S035]



https://www.youtube.com/watch?v=iPmirgi-yPs


* GitHubhttps://github.com/rdiot/rdiot-s035.git


* Specs

PCB size:1.52*2.22cm

work voltage:5V

Output:

output high level when receive laser signal;

output low level when not receive laser signal.


* Contents

- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004


int laserPin = 2; // Laser

int laserRcvPin = 7; // Laser Receiver


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(laserPin,OUTPUT);

  pinMode(laserRcvPin,INPUT);


  digitalWrite(laserPin, HIGH);

  delay(1000);


  lcd.clear();

}


void loop()

  lcd.setCursor(0,0);

  lcd.print("S035:DZ292 LaserRCV");


  int rcv = digitalRead(laserRcvPin);


  lcd.setCursor(0,2);

  lcd.print("laser value=" + (String)rcv);


  if(rcv == 1)

  {

    lcd.setCursor(0,3);

    lcd.print("laser detected");

  }

  else

  {  

    lcd.setCursor(0,3);

    lcd.print("                    ");

  }

}

Posted by RD IoT RDIoT

댓글을 달아 주세요

Laser+LED 2 in 1 module [D048]



https://www.youtube.com/watch?v=Bc94zOHalu8


* Specs

Size : 5.9 x 11mm

Wavelength : 650nm

Output Power : 2-5mw

Working Voltage : 4.5V

Posted by RD IoT RDIoT
TAG Laser, LED

댓글을 달아 주세요

Red Laser Cross Line Module + [D037]



https://www.youtube.com/watch?v=qVOGWEY-NjI


* Specs

Output Power : 5mw

Wavelength : 650nm

Working Voltage : 3~5V

Working Temperature : +10 ~ +40C

Laser Shape Line

Focusable : Yes

Material and Color Metal

Lens Glass

Dimensions : 12*12*40mm

Posted by RD IoT RDIoT
TAG Laser

댓글을 달아 주세요

Red Laser Line Module - [D036]



https://www.youtube.com/watch?v=XdRZttM1YHQ

* Specs

Output Power 5mw

Wavelength 650nm

Working Voltage 3~6V

Laser Shape: Line

Focusable Yes

Material and Color: Metal

Dimensions: diameter 12mmxlength36mm

Posted by RD IoT RDIoT
TAG Laser

댓글을 달아 주세요

650nm Laser Diode Module (KY-008) [D004]



https://www.youtube.com/watch?v=7h7lJ4rDAcQ


* GitHub : https://github.com/rdiot/rdiot-d004.git


* Specs

High Quality 650nm Laser sensor Module 6mm 5V 5mW Red Laser Dot Diode Copper Head KY-008

Product Details:

Laser sensor Module

Condition: New

Operating voltage 5V

Output wavelength 650 nm

3 pins module

With fixed bolt hole for easy installation

Color: show as pictures

PLS NOTE that due to lighting effects, monitor's brightness / contrast settings etc, there could be some slight differences in the color tone of the pictures and the actual item!


* Contents

- Key Code

#include "U8glib.h"

U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);

 

int laserPin = 10;

int btnPin = 2;

 

void setup() {

  // put your setup code here, to run once:

   pinMode (laserPin, OUTPUT); // laser

   pinMode (btnPin, INPUT); // button

}

 

void loop(void) {

  // picture loop

  u8g.firstPage();  

  do {

    draw();

  } while( u8g.nextPage() );

  

  // rebuild the picture after some delay

  delay(500);

}

 

void draw(void) {

  u8g.setFont(u8g_font_9x15B);

  u8g.setPrintPos(0, 12); 

  u8g.println("Laser Emit");

 

  u8g.setFont(u8g_font_fub17);

  u8g.setPrintPos(0,40);

 

  int btn = digitalRead(btnPin);

  u8g.print("btn="+(String)btn);

 

  if(btn == 1)

  {

    digitalWrite (laserPin, HIGH);

  }

  else

  {

    digitalWrite (laserPin, LOW);

  }

 

/*

   digitalWrite (laserPin, HIGH); // Turn Laser On

   delay (1000); // On For Half a Second

   digitalWrite (laserPin, LOW); // Turn Laser Off

   delay (500); // Off for half a second

*/

 

}

Posted by RD IoT RDIoT

댓글을 달아 주세요