LinkNode Relay 1Channel Module
Introduction
The Relay Module is a digital normally-open switch. Through it, you can control circuit of high voltage with low voltage, say 3V on the controller. There is an indicator LED on the board, which will light up when the controlled terminals get closed. The peak voltage capability is 250V at 10 amps.The Module Operating Voltage 3.3V, max 3.6V .
Wiring & Running
The Relay module is connected to the base shield J2:
Relay Signal --> LinkNode D1 G2
Simple Code
/* LinkNode Relay-1Channel the Relay will turn on for 0.5s and then turn off for 0.5s, and so on. This example code is in the public domain. */ int RelayControlPin = 2; void setup() { // initialize the digital pin as an output. pinMode(RelayControlPin, OUTPUT); } void loop() { digitalWrite(RelayControlPin, HIGH); // set the relay on delay(500); // wait for a second digitalWrite(RelayControlPin, LOW); // set the relay off delay(500); // wait for a second }