5V 2-Channel Relay Module [S116]



https://www.youtube.com/watch?v=w-E8hqNFMdE


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


* Specs

Brand new and high quality.

This module can be used with Arduino Special Sensor Shield V4.0.

You can do some simple design about it.

This is 2-Channel 5V Relay Module for Arduino PIC ARM AVR DSP.

It can be able to control various appliances, and other equipments with large current.

Easy to be controlled by a lots of Microcontrollers.

Just use 5v input signal to control.

Equiped with high-current relay, AC250V 10A, AC150V 10A; DC30V 10A , DC28V 10A.

size:3.9cm x 5.1cm (1.54inch x 2.01inch).


* Contents

- Key Code

#define RELAY1  8                        

#define RELAY2  9                        


void setup()

{    

  pinMode(RELAY1, OUTPUT);       

  pinMode(RELAY2, OUTPUT);

}

 

 void loop()

{

   digitalWrite(RELAY1,LOW);           // Turns ON Relays 1

   delay(500);                         // Wait 

   digitalWrite(RELAY1,HIGH);          // Turns Relay Off

 

   digitalWrite(RELAY2,LOW);           // Turns ON Relays 2

   delay(500);                         // Wait

   digitalWrite(RELAY2,HIGH);          // Turns Relay Off

}



Posted by RDIoT
|

5V Relay Module (KY-019) [S076]




https://www.youtube.com/watch?v=nW7LC4X-6sc


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


* Specs

The company produces relay module can be connected to 240V AC or 28V DC power into a variety of other electrical parts. The relay can be used in anti-theft alarm, toys, etc. Relay is an electrically controlled device. It has a control system (also known as the input circuit) and the control system (Also known as the output circuit).

Commonly used in automation control circuit, it is actually a small Current to control a large current operation "automatic switch." Therefore, the circuit automatically adjusts the play, safety protection, transfer Conversion circuit and so on. Particularly suitable for single-chip control strong electric devices. In the control and use is also very convenient, just give input corresponding output relay different levels, you can Achieved by controlling the relay control purposes other devices, in addition, in the multi-channel relay PCB layout on the use of two lines Layout, user-lead connections. While in the circuit of a DC diode added greatly improved relay

Module to engage current ability to prevent the transistor being burned. In addition, we added a relay this power indicator Lights (except relay all the way), the indicator is red. In brightest relay also adds a status indicator.


* Contents

- Connect

Left

Middle ----- Connect

Right ----- Connect


S ----- D10

+ ----- 5V

- ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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

int pin = 10;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(pin,OUTPUT);

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("S076:5V relay KY-019");


  lcd.setCursor(0,1);

  digitalWrite (pin, HIGH); // relay conduction;

  lcd.print("D10=" + (String)digitalRead(pin) + " - HIGH");

  delay (2000);

 

  lcd.setCursor(0,1); 

  digitalWrite (pin, LOW); // relay switch is turned off;

  lcd.print("D10=" + (String)digitalRead(pin) + " - LOW ");

  delay (2000);


}

Posted by RDIoT
|

Mini Reed Switch Module (KY-021) [S045]



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


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


* Specs

A reed module is a magnetic sensor that is normally open and get closed when exposed to a magnetic field.

In our example turn off the buildin LED on pin 13 if the sensor is closed. For this you need to keep a magnet near the sensor.

The module includes a 10 K Ohm resistor, so no additional parts needed.


* Contents

- Connect

S ----- D2

Middle ----- 5V

- ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

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

int pin = 2;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  pinMode(pin,INPUT);

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("S045:Mini ReadSwtich");

 

  int val = digitalRead(pin);

 

  lcd.setCursor(0,1);

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

 

  if(val==LOW)

  {

    lcd.setCursor(0,2);

    lcd.print("detected");    

  }

  else

  {

    lcd.setCursor(0,2);

    lcd.print("        ");    

  } 

}

'2) Sensor > Reed' 카테고리의 다른 글

Reed Swtich Module (KY-025) [S044]  (0) 2016.09.09
Posted by RDIoT
|