Computers
Computer Parts
Custom PC Builder
DIY/ Maker
{$smarty.capture.menu}
Activity
Categories
Discussions
Computers
Computer Parts
Custom PC Builder
DIY/ Maker
Inland 4-channel Relay Module - Micro Center
<main> <article class="userContent"> <div class="embedExternal embedImage display-medium float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://us.v-cdn.net/6031942/uploads/076JO06XHF01/image.png" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://us.v-cdn.net/6031942/uploads/076JO06XHF01/image.png" alt="image.png" height="228" width="313" loading="lazy" data-display-size="medium" data-float="none"></img></a> </div> </div> <h2 data-id="introduction"><strong>Introduction</strong></h2><p>Relay Shield employs high quality relay with four channels input and output. It can be connected to 250V/10A AC element or 24V/10A DC element to the maximum, therefore, it can be used to control lights, motors, etc. The modularized design makes it easy to connect to Arduino expansion board. The output state of the relay is shown by a LED for the convenience of actual application.</p><h2 data-id="specification"><strong>Specification</strong></h2><ul><li>Control signal: TTL voltage</li><li>Active at HIGH level </li><li>Rated load:</li></ul><p>10A 250VAC</p><p>10A 125VAC</p><p>10A 30DC</p><p>10A 28VDC</p><ul><li>Rated Through-current: 10A(NO) 5A(NC)</li><li>Max Switching Voltage: 250VAC 30VDC</li><li>Contact actuation time: ﹤10ms</li><li>Definition of module pins:</li></ul><p>i) Pin 1- Pin 4----Controlling end</p><p>ii) Power supply (VCC)</p><p>iii) Ground (GND)</p><h2 data-id="connection-diagram"><strong>Connection Diagram</strong></h2><div class="embedExternal embedImage display-large float-none"> <div class="embedExternal-content"> <a class="embedImage-link" href="https://us.v-cdn.net/6031942/uploads/CV6QVV9XL69J/image.png" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://us.v-cdn.net/6031942/uploads/CV6QVV9XL69J/image.png" alt="image.png" height="341" width="554" loading="lazy" data-display-size="large" data-float="none"></img></a> </div> </div> <h2 data-id="sample-code"><strong>Sample Code</strong></h2><pre class="code codeBlock" spellcheck="false" tabindex="0">int BASE = 2 ; // I/O pin connected to the first relay int NUM = 4; //total number of all relays void setup() { for (int i = BASE; i < BASE + NUM; i ++) { pinMode(i, OUTPUT); //set digital I/O pin as output } } void loop() { for (int i = BASE; i < BASE + NUM; i ++) { digitalWrite(i, LOW); //set digital I/O pin as ‘low’, i.e. turning off the relay gradually delay(200); //delay } for (int i = BASE; i < BASE + NUM; i ++) { digitalWrite(i, HIGH); // set digital I/O pin as ‘high’, i.e. turning on the relay gradually delay(200); //delay } } </pre><p><br></p> </article> </main>