
Arduino 4 Channel Relay Module 5V
प्रयोगकर्ता पुस्तिका

५V Arduino ४ च्यानल रिले मोड्युल
जब हामी ४ उच्च-भोल्युम नियन्त्रण गर्न चाहन्छौंtage devices such as pumps, fans, actuators… We can use multiple relay modules. However, there is a simpler way is to use a 4-channel relay module. A 4-channel relay module is a combination of 4 relays on a single board.
A 4-channel relay module vs 4 x 1-channel relay modules:
♦— A 4-channel relay module has simpler wiring.
♦— A 4-channel relay module uses less space.
♦— A 4-channel relay module is cheaper.
♦— The programming is the same.
Arduino ४ च्यानल रिले मोड्युलको बारेमा:


रिलेलाई हाई-भोल्युममा कसरी जडान गर्ने भन्ने बारे विस्तृत जानकारीको लागिtage, सामान्यतया बन्द र सामान्यतया खुला बीच के भिन्नताहरू छन्?
यसमा प्रत्येक रिलेको लागि व्यक्तिगत रूपमा कम ट्रिगर र उच्च ट्रिगर बीच चयन गर्न ४ वटा जम्परहरू पनि छन्।
तारिङ रेखाचित्र:
४-च्यानल रिले मोड्युलले धेरै पावर खपत गर्छ। त्यसैले, हामीले Arduino को ५V पिनबाट सिधै मोड्युललाई पावर दिनु हुँदैन। हामीले मोड्युलको लागि बाह्य ५V पावर प्रयोग गर्नुपर्छ।
त्यसैले, हामीले तीनवटा पावर स्रोतहरू प्रयोग गर्नुपर्छ:
♦— A 5V power adapter for Arduino
♦— A 5V power adapter for the 4-channel relay module
♦— A higher-voltag४-च्यानल रिले मोड्युलद्वारा नियन्त्रित चीजहरूको लागि e पावर एडाप्टर (१२VDC, २४VDC, ४८VDC, २२०AC…)
♦— Wiring diagram with three power sources. Power supply for Arduino (not included in the image) can be via either USB cable or power jack.

♦— We can reduce the number of power adapters by using a single 5V power source for both Arduino and the 4-channel relay module.

* NOTE THAT:
If 4 devices that are controlled by a 4-channel relay module use the same voltage, we can use a single high-voltage power adapter for all. However, if they use different voltages, we can use different high-voltage power adapters independently.
४-च्यानल रिले मोड्युलको लागि कसरी प्रोग्राम गर्ने:
♦— Initialize the Arduino pin to the digital output mode by using pin Mode() function.
pin Mode(PIN_RELAY_1, OUTPUT);
pin Mode(PIN_RELAY_2, OUTPUT);
pin Mode(PIN_RELAY_3, OUTPUT);
pin Mode(PIN_RELAY_4, OUTPUT);
♦—Control the relays state by using digital Write() function.
digital Write(PIN_RELAY_1, HIGH);
digital Write(PIN_RELAY_2, HIGH);
digital Write(PIN_RELAY_3, HIGH);
digital Write(PIN_RELAY_4, HIGH);
अर्डिनो कोड:
/*
* Created by ArduinoGetStarted.com
*
* यो पूर्वample कोड सार्वजनिक डोमेनमा छ
*
* Tutorial page: https://arduinogetstarted.com/tutorials/arduino-4-channelrelaymodule
*/
#define PIN_RELAY_1 2 // the Arduino pin, which connects to the IN1 pin of relay module
#define PIN_RELAY_2 3 // the Arduino pin, which connects to the IN2 pin of relay module
#define PIN_RELAY_3 4 // the Arduino pin, which connects to the IN3 pin of relay module
#define PIN_RELAY_4 5 // the Arduino pin, which connects to the IN4 pin of relay module
// the setup function runs once when you press reset or power the board void setup() { Serial. begin(9600);
// initialize digital pin as an output.
pin Mode(PIN_RELAY_1, OUTPUT);
pin Mode(PIN_RELAY_2, OUTPUT);
pin Mode(PIN_RELAY_3, OUTPUT);
pin Mode(PIN_RELAY_4, OUTPUT); }
// लूप प्रकार्य सधैंभरि बारम्बार चल्छ void loop() {
Serial. println (“Turn on all”);
digital Write(PIN_RELAY_1, HIGH);
digital Write(PIN_RELAY_2, HIGH);
digital Write(PIN_RELAY_3, HIGH);
digital Write(PIN_RELAY_4, HIGH); delay(1000);
Serial. println(“Turn off all”);
digital Write(PIN_RELAY_1, LOW);
digital Write(PIN_RELAY_2, LOW);
digital Write(PIN_RELAY_3, LOW);
digital Write(PIN_RELAY_4, LOW); delay(1000); }
द्रुत चरणहरू:
♦— Copy the above code and open with Arduino IDE
♦— Click Upload button on Arduino IDE to upload code to Arduino
♦— Listen the click sound on relays.
♦— See the result on Serial Monitor.

कागजातहरू / स्रोतहरू
![]() |
HOS 5V Arduino 4 च्यानल रिले मोड्युल [pdf] प्रयोगकर्ता पुस्तिका ५V Arduino ४ च्यानल रिले मोड्युल, ४ च्यानल रिले मोड्युल, रिले मोड्युल, मोड्युल |
