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

*/

 

}

'3) Actuator > Laser' 카테고리의 다른 글

DZ292 Laser Receiver Module (DZ292) [S035]  (0) 2016.10.05
Laser+LED 2 in 1 module [D048]  (0) 2016.10.05
Red Laser Cross Line Module + [D037]  (0) 2016.10.05
Red Laser Line Module - [D036]  (0) 2016.10.05
Red Laser Point Linear Module [D079]  (0) 2016.09.05
Posted by RDIoT
|

L9110S 2-Channel Dual Motor Driver (L9110S) [B042]



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


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


* Specs

The L9110S 2-Channel motor driver module is a compact board that can be used

to drive small robots. This module has two independent motor driver chips which can

each drive up 800mA of continuous current. The boards can be operated from 2.5V to

12V enabling this module to be used with both 3.3V and 5V microcontrollers.



On-board 2 L9110 motor control chip

Module can be driven by two dc motors at the same time or one phase 4 line 2 type stepping motor

Input voltage: 2.5-12V DC

Each channel has a continuous output current 800 ma

PCB Size: 29.2mm x 23mm



* Contents

- Connect

Motor Driver gnd, vcc --- Arduino gnd, Vcc

B-1A --- A0

B-1B --- A1



- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}

 

void loop() {

  // put your main code here, to run repeatedly

  digitalWrite(A0,HIGH);

  digitalWrite(A1,LOW);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,HIGH);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,LOW);

  delay(2000);

}

Posted by RDIoT
|

ULN2003 Stepper Motor driver (X113647) [B002]



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


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


* Specs

Driver ID : ULN2003AN

Description:

Rated Voltage: DC5V

4-phase

Reduction Ratio: 1/64

Step Torque Angle: 5.625/64

DC Resistance: 200±7% (25)

Insulation Resistance: >10M (500V)

Dielectric Strength: 600V AC / 1mA / 1s

Insulation Grade: A

No-load Pull in Frequency: >600Hz

No-load Pull out Frequency: >1000Hz

Pull in Torque: >34.3mN.m(120Hz)

Detent Torque: >34.3mN.m

Temperature Rise: <40K(120Hz)

Noise: <40dB (120Hz, No load, 10cm)

Board Size: Approx. 29 ×21 mm


* Contents

- Connect

5V -  ----- 5V 

5V +  ----- GND

 

IN1 ----- D8

IN2 ----- D9

IN3 ----- D10

IN4  ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Stepper.h>

 

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

const int stepsPerRevolution = 2048; // 2048(360 Degree), 1024(180 Degree)

 

// IN4, IN2, IN3, IN1

Stepper myStepper(stepsPerRevolution,11,9,10,8); 

 

int val;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  delay(1000);

  

  myStepper.setSpeed(14); 

  lcd.clear();

}

 

void loop()

{ 

  lcd.setCursor(0,0);

  lcd.print("D021:28BYJ-48");

  lcd.setCursor(0,1);

  lcd.print("B002:X113647");

 

  // Left 1 Round

  myStepper.step(stepsPerRevolution);

  val = stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("right=" + (String)val + "  ");

  delay(500);

 

  // Right 1 Round

  myStepper.step(-stepsPerRevolution);

  val = -stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("left=" + (String)val + "   ");

  delay(500); 

}



Posted by RDIoT
|