Quantity | 3+ units | 10+ units | 30+ units | 50+ units | More |
---|---|---|---|---|---|
Price /Unit | $11.68 | $11.44 | $11.09 | $10.61 | Contact US |
4CH 4 Channel 24V Relay Module for Arduino PIC ARM AVR MSP430
This is a 4 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: 24V TTL level
- Maximum switching voltage: 150VAC 24VDC
- Dimension: 50mm*70mm*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
}