Sonogle 5vdc Relay Module Diagram Datasheet
Contents
- 1 Introduction
- 2 Principle
- 3 Bowling pin Description
- 3.1 Stimulation:
- 3.2 Output:
- 4 Features:
- 5 Testing Experiment
- 5.1 Try out Precept
- 5.2 Experiment Stairs
- 5.3 Codification
- 5.4 Summary
- 6 Resource
Foundation
This is a 5V 4-channel relay port board, and each channel needs a 15-20mA driver prevailing. Information technology can be wont to control condition various appliances and equipment with large current. It is equiped with high-current relays that work under AC250V 10A Oregon DC30V 10A. It has a regulation interface that can be harnessed directly away microcontroller.
Principle
From the picture below, you can imag that when the signal port is at throaty level, the signal fire wish illume and the optocoupler 817c (it transforms electrical signals by light and can keep apart input and yield electrical signals) volition conduct, and so the transistor will behave, the relay spiral will be electrified, and the normally open contact of the relay will be blinking. When the signal embrasure is at high level, the normally closed contact of the relay will be closed. So you can connect and disconnect the load by controlling the tied of the control signal port.
Pin Verbal description
Input:
VCC: Positivist supply potential dro
GND: Ground
IN1--IN4: Relay control port
Output:
Connect a burden, DC 30V/10A,AC 250V/10A
Features:
- Size: 75mm (Length) * 55mm (Width) * 19.3mm (Height)
- Weight: 61g
- PCB Color: Blue
- Thither are 4 rigid screw holes at each corner of the board, easy for instal and fix. The diameter of the hole is 3.1mm
- Inebriated quality Songle electrical relay is used with single pole double throw, a common terminal, a normally wide terminal, and a normally closed terminus
- Optical coupling closing off, good anti-preventative.
- Closed at low level with indicator along, released at tall level with indicator cancelled
- VCC is system power root, and JD_VCC is electrical relay power source. Ship 5V relay by default. Plug pinafore cap to use
- The maximum outturn of the relay: DC 30V/10A, AC 250V/10A
Testing Experiment
Experimentation Principle
When the stimulation terminals (IN1, IN2, IN3, IN4) are supplied with low level signals, you can see electrical relay K1, K2, K3, K4 closed successively and repeat this cycle. In social club to show its the ability of driving load more intuitively, two LEDs are connected to electrical relay K1 and Godwin Austen.
Experimentation Steps
Build the circuit
4 Line relay shield | SunFounder uno R3 |
---|---|
GND | GND |
IN1 | 3 |
IN2 | 4 |
IN3 | 5 |
IN4 | 6 |
VCC | 5V |
And then upload the codification. You should figure the relays hot one by unmatchable and the LED on the board and the LEDs connected to K1 and K2 light up or go outer with the relays gaping or closed.
Code
//the relay race relate to int IN1 = 3; int IN2 = 4; int IN3 = 5; int IN4 = 6; #define ON 0 #specify OFF 1 empty setup() { relay_init();//initialize the relay } void loop() { relay_SetStatus(Along, OFF, OFF,OFF);//turn along RELAY_1 check(2000);//delay 2s relay_SetStatus(OFF, ON, Inactive,OFF);//turn on RELAY_2 check(2000);//delay 2s relay_SetStatus(OFF, Hit, ON,OFF);//turn on RELAY_3 delay(2000);//retard 2s relay_SetStatus(OFF, Dispatch, OFF,ON);//turn on RELAY_3 delay(2000);//delay 2s } void relay_init(void)//format the relay { //set altogether the relays OUTPUT pinMode(IN1, OUTPUT); pinMode(IN2, Turnout); pinMode(IN3, OUTPUT); pinMode(IN4, Production); relay_SetStatus(OFF,OFF,OFF,Bump off);//turn off all the relay } //set the status of relays void relay_SetStatus( unsigned char status_1, unsigned char status_2, unsigned char status_3,unsigned char status_4) { digitalWrite(IN1, status_1); digitalWrite(IN2, status_2); digitalWrite(IN3, status_3); digitalWrite(IN4, status_4); }
Drumhead
You can practice this 4-transmission channel relay to drive some household appliances, such Eastern Samoa table lamp, winnow, etc.
Resource
Relay_datasheet
4_channel_relay_Schematic.pdf
Source: http://wiki.sunfounder.cc/index.php?title=4_Channel_5V_Relay_Module
Posted by: francismcgoon.blogspot.com