5V Relay Module (KY-019) [S076]
https://www.youtube.com/watch?v=nW7LC4X-6sc
*GitHub : https://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);
}
'2) Sensor > Relay' 카테고리의 다른 글
8 Channel Solid State Relay Module [S168] (0) | 2016.09.09 |
---|---|
12V Delay Timer Adjustable Relay Module (NE555) [S165] (0) | 2016.09.09 |
5V Relay Low Level Trigger [S155] (0) | 2016.09.09 |
5V 4-Channel Relay Module [S147] (0) | 2016.09.09 |
5V 2-Channel Relay Module [S116] (0) | 2016.09.09 |