Difference between revisions of "4-Channel High Level Trigger Relay"
Line 25: | Line 25: | ||
Add a certain voltage to the coil and some currents will pass through the coil thus generating the electromagnetic effect. So the armature overcomes the tension of the spring and is attracted to the core, thus closing the moving contact of the armature and the normally open contact (or you may say releasing the former and the normally closed contact). After the coil is de-energized, the electromagnetic force disappears and the armature moves back to the original position, releasing the moving contact and normally closed contact. The closing and releasing of the contacts results in power on and off of the circuit. | Add a certain voltage to the coil and some currents will pass through the coil thus generating the electromagnetic effect. So the armature overcomes the tension of the spring and is attracted to the core, thus closing the moving contact of the armature and the normally open contact (or you may say releasing the former and the normally closed contact). After the coil is de-energized, the electromagnetic force disappears and the armature moves back to the original position, releasing the moving contact and normally closed contact. The closing and releasing of the contacts results in power on and off of the circuit. | ||
− | Testing Experiment | + | =='''Testing Experiment'''== |
− | Experiment Principle | + | ===Experiment Principle=== |
When a low level is supplied to signal terminal of the 4-channel relay, the LED at the output terminal will light up. Otherwise, it will turn off. If a periodic high and low level is supplied to the signal terminal, you can see the LED will cycle between on and off. | When a low level is supplied to signal terminal of the 4-channel relay, the LED at the output terminal will light up. Otherwise, it will turn off. If a periodic high and low level is supplied to the signal terminal, you can see the LED will cycle between on and off. | ||
− | For | + | ===For Arduino=== |
Step 1:Connect the signal terminal CH1、CH2、CH3、CH4of 4-channel relay to digital port 3、4、5、6 of the SunFounder Mega2560 board, and connect an LED at the output terminal. | Step 1:Connect the signal terminal CH1、CH2、CH3、CH4of 4-channel relay to digital port 3、4、5、6 of the SunFounder Mega2560 board, and connect an LED at the output terminal. | ||
+ | {| | ||
4-channel relay Mega2560 | 4-channel relay Mega2560 | ||
CH1 3 | CH1 3 | ||
Line 38: | Line 39: | ||
Step 2: Copy the code to your IDE and then upload to the board | Step 2: Copy the code to your IDE and then upload to the board | ||
+ | <pre> | ||
/*************************************************************************** | /*************************************************************************** | ||
Line 89: | Line 91: | ||
} | } | ||
− | + | </pre> | |
− | + | ||
− | + | ||
The actual figure is shown below: | The actual figure is shown below: | ||
+ | [[File:MG 2752-1.jpg]] | ||
− | + | ===For raspberry pi=== | |
− | For raspberry pi | + | |
Step1:Connect the signal terminal CH1、CH2、CH3、CH4 of 4-channel relay to port 17、18、27、22 of the Raspberry Pi, and connect an LED at the output terminal. | Step1:Connect the signal terminal CH1、CH2、CH3、CH4 of 4-channel relay to port 17、18、27、22 of the Raspberry Pi, and connect an LED at the output terminal. | ||
Line 106: | Line 106: | ||
Step 2: Copy the code and then run the code | Step 2: Copy the code and then run the code | ||
+ | <pre> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
''' | ''' | ||
Line 160: | Line 161: | ||
except KeyboardInterrupt: | except KeyboardInterrupt: | ||
destroy() | destroy() | ||
− | + | </pre> | |
The actual figure is shown below:: | The actual figure is shown below:: |
Revision as of 05:38, 14 September 2016
Contents
Introduction
This is a 4-channel HIGH level trigger relay, applicable to Arduino and Raspberry Pi, Relays are suitable for driving high power electronic devices such as lights, electric fans and air conditions, There are two soldering points for 5V and GND at the two ends of the module. So you can just weld other relay modules to it and have a relay module of more channels, signals of which are independent of each other. You can just unplug the headers to disconnect the device with the module after the experiment and don't need to unscrew the wires in the socket. Kindly reminder: Be careful with your fingers when unplugging the headers.
Sending a HIGH level to SIG; the NPN transistor is energized and the coil of the relay is electrified. Thus, the normally open contact of the relay is closed, while the normally closed contact of the relay will be open. Send a LOW level to SIG; the transistor will be de-energized and the relay will restore to the initial state.
The schematic of the relay module is shown as following:
4_channel_HIGH_Relay_Schematic
Features
1) Support control of 10A 30V DC and 10A 250V AC signals 2) 5V 4-Channel Relay interface board, and each one needs 15-20mA Driver Current 3) HIGH level trigger, with indicator LEDs showing working status 4) With two soldering points for 5V and GND, the module can be extended to 6- or 8-channel relay one with other relay modules 5) Working voltage: 5V; PCB size: 5.6 x 7.5 cm ->2.20 inch x 2.95 inch
Principle of relay
See the picture here: A is an electromagnet, B armature, C spring, D moving contact, and E fixed contacts. There are two fixed contacts, a normally closed and a normally open. When the coil is not energized, the normally open contact is the one that is off, while the normally closed one is the other that is on.
Add a certain voltage to the coil and some currents will pass through the coil thus generating the electromagnetic effect. So the armature overcomes the tension of the spring and is attracted to the core, thus closing the moving contact of the armature and the normally open contact (or you may say releasing the former and the normally closed contact). After the coil is de-energized, the electromagnetic force disappears and the armature moves back to the original position, releasing the moving contact and normally closed contact. The closing and releasing of the contacts results in power on and off of the circuit.
Testing Experiment
Experiment Principle
When a low level is supplied to signal terminal of the 4-channel relay, the LED at the output terminal will light up. Otherwise, it will turn off. If a periodic high and low level is supplied to the signal terminal, you can see the LED will cycle between on and off.
For Arduino
Step 1:Connect the signal terminal CH1、CH2、CH3、CH4of 4-channel relay to digital port 3、4、5、6 of the SunFounder Mega2560 board, and connect an LED at the output terminal.