รายละเอียดสินค้า : 2Channel Relay Module 5V with optocoupler protection microcontroller
Module parameters:
1. Size: 50.5mm (length) * 38.5mm (W) * 18.5 (H)
2. Weight: 31g
3.PCB Color: Black
4. The board four weeks with 4 fixing screw holes, hole diameter 3.1mm, easy to install and fixed
5. Relay selection of quality loose music relays SPDT. A common terminal, a normally open, one normally closed terminal
6. optocoupler isolation, good anti-jamming
7. The low pull, high release. Energisation status indicator lights off when you release the status indicator
8.VCC for system power, JD_VCC relay power. You can plug in jumper
Electrical parameters:
Supply voltage: 5VDC, 12VDC
Current: More than 100mA
Load: 250V 10A AC or DC 30V 10A
Wiring instructions:
VCC: positive power supply system
GND: System power supply negative
IN1 - IN2: Relay control port สัญญาณ ทริก >> Active Low
(Do not reversed, resulting in module burn We do not give to be returned.)
CODE : ทดสอบการทำงาน
/*...............................................................
. Program Test Module Relay 2Channel Working Signal Active LOW .
. By >> WWW.TOMELECTRONICS1.COM
.
........................................................*/
void setup() {
// initialize digital pin 13 as an output.
pinMode(4,OUTPUT);
pinMode(2, OUTPUT);
}
// the loop function runs over and over again forever
void loop()
{
int i = 250;
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(i); // wait for a second
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(i); // wait for a second
digitalWrite(4, LOW);
delay(i);
digitalWrite(4, HIGH);
delay(i);
}