Quantity | 3+ units | 10+ units | 30+ units | 50+ units | More |
---|---|---|---|---|---|
Price /Unit | $4.89 | $4.79 | $4.64 | $4.44 | Contact US |
2CH 2 Channel 5V Relay Module for Arduino PIC ARM AVR MSP430
This is a 2 channel relay module. It can be used to control the lighting, electrical and other equipments. The modular design makes it easy to expand with the Arduino board or other MCU board PIC, ARM and MSP430. The Relay output state by a light-emitting diode.
Specifications:
- Drive current: 20mA
- Control signal: 5V TTL level
- Maximum switching voltage: 150VAC 24VDC
- Dimension:35mm*50mm*15mm
// ElecFreaks Relay Module Demo
#define S0 2 //Control signal 1 -- Arduino D2
#define S1 3 //Control signal 2 -- Arduino D3
void setup()
{
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
}
void loop()
{
digitalWrite(S0, HIGH); //Open Relay 1
digitalWrite(S1, HIGH); //Open Relay 2
delay(1000);
digitalWrite(S1, LOW); //Close Relay 1
digitalWrite(S2, LOW); //Close Relay 2
}