Manual
Sample program for Arduino™
In this example, IN1 and IN2 are connected to Arduino™ digital
pins 4 and 5.
int IN1 = 4;
int IN2 = 5;
#dene ON 0
#dene OFF 1
void setup()
{
relay_init(); //initialize the
relay
}
void loop()
{
relay_SetStatus(ON, OFF);
//turn on RELAY_1
delay(2000);
//delay 2s
relay_SetStatus(OFF, ON);
//turn on RELAY_2
delay(2000);
//delay 2s
}
//initialize the relay
void relay_init(void)
{
//set all the relays OUTPUT
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
relay_SetStatus(OFF, OFF);
//turn o all the relay
}
//set the status of relays
void relay_SetStatus( unsigned char
status_1, unsigned char status_2)
{
digitalWrite(IN1, status_1);
digitalWrite(IN2, status_2);
}
Disposal
Electronic devices are recyclable waste and must not
be placed in household waste. At the end of its service
life, dispose of the product in accordance with the ap-
plicable regulatory guidelines.
Youthusfullyourstatutoryobligationsandcontribute
to protection of the environment.
Specications
Operating voltage ................. 5 V/DC
Current consumption (max) .. 155 mA (all relays energized)
GPIO current ........................ 2 mA
Number of relays .................. 2
Relay outputs ........................ Changeover contact
.............................................. (30 V/DC, 10 A; 250 V/AC , 10 A)
Dimensions (W x H x D) ....... 39 x 17 x 50 mm
Weight .................................. 30 g
This is a publication by Conrad Electronic SE, Klaus-Conrad-Str. 1, D-92240
Hirschau (www.conrad.com).
All rights including translation reserved. Reproduction by any method, e.g. photo-
copy,microlming,orthecaptureinelectronicdataprocessingsystemsrequirethe
prior written approval by the editor. Reprinting, also in part, is prohibited.
Thispublicationreectsthetechnicalstatusatthetimeofprinting.
Copyright 2020 by Conrad Electronic SE.*2268118_V1_0920_02_m_RR_VTP_GB