Computers
Computer Parts
Custom PC Builder
DIY/ Maker
{$smarty.capture.menu}
Activity
Categories
Discussions
Computers
Computer Parts
Custom PC Builder
DIY/ Maker
Inland 8-channel 5V Relay Module - Micro Center
<main> <article class="userContent"> <h2 data-id="inland-8-channel-5v-relay-module">Inland 8-channel 5V Relay Module</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/BYP2EAI4TFN5/image.png" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://us.v-cdn.net/6031942/uploads/BYP2EAI4TFN5/image.png" alt="image.png" height="233" width="553" loading="lazy" data-display-size="large" data-float="none"></img></a> </div> </div> <h2 data-id="introduction"><strong>Introduction</strong></h2><p>Arduino Relay Shield employs high quality relay with eight channels input and eight channels 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 luminous diode 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><ol><li>) Pin 1 - Pin 8----Controlling end</li><li>) Power supply (VCC)</li><li>) Ground (GND)</li></ol><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/G1NFQ64DFFDX/image.png" rel="nofollow noreferrer noopener ugc" target="_blank"> <img class="embedImage-img" src="https://us.v-cdn.net/6031942/uploads/G1NFQ64DFFDX/image.png" alt="image.png" height="356" width="555" 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 by the first relay int NUM = 8; //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 ‘low’, i.e. turning on the relay gradually delay(200); //delay } </pre> </article> </main>