Codey OnlineArduino- & ESP32-componentenbibliotheek › 4-Channel Optoisolator Board
4-Channel Optoisolator Board
Overig

4-Channel Optoisolator Board

4-kanaals optocoupler-isolatiemodule, spanningsniveau-converterboard voor Arduino en PLC

Breedte: 30.3 mm

Pinout — 4-Channel Optoisolator Board

Pin Signaal Beschrijving
IN1 digital Channel 1 input control signal on the driving side of the optocoupler.
GND ground Input-side ground reference for channel 1 control signal.
IN2 digital Channel 2 input control signal on the driving side of the optocoupler.
GND.1 ground Input-side ground reference for channel 2 control signal.
IN3 digital Channel 3 input control signal on the driving side of the optocoupler.
GND.2 ground Input-side ground reference for channel 3 control signal.
IN4 digital Channel 4 input control signal on the driving side of the optocoupler.
GND.3 ground Input-side ground reference for channel 4 control signal.
U1 digital Isolated channel 1 output terminal for the load or receiving logic input.
GND.4 ground Output-side ground reference for isolated channel 1.
U2 digital Isolated channel 2 output terminal for the load or receiving logic input.
GND.5 ground Output-side ground reference for isolated channel 2.
U3 digital Isolated channel 3 output terminal for the load or receiving logic input.
GND.6 ground Output-side ground reference for isolated channel 3.
U4 digital Isolated channel 4 output terminal for the load or receiving logic input.
GND.7 ground Output-side ground reference for isolated channel 4.

Voorbeeld-aansluitschema — 4-Channel Optoisolator Board

Van Naar Draad
board:D2 x1:IN1 green
board:GND x1:GND black
board:D3 x1:IN2 blue
board:GND.1 x1:GND.1 black
board:D4 x1:IN3 yellow
board:GND.2 x1:GND.2 black
board:D5 x1:IN4 purple
board:GND x1:GND.3 black

Voorbeeld-Arduinocode — 4-Channel Optoisolator Board

Dit voorbeeld is geschreven en compile-gecheckt voor de arduino-uno. Codey Online past het voor je aan naar elk ander ondersteund board.

// 4-Channel Optoisolator Board example
// This sketch drives all four input channels on the optoisolator board.

const int ch1Pin = 2;
const int ch2Pin = 3;
const int ch3Pin = 4;
const int ch4Pin = 5;

void setup() {
  pinMode(ch1Pin, OUTPUT);
  pinMode(ch2Pin, OUTPUT);
  pinMode(ch3Pin, OUTPUT);
  pinMode(ch4Pin, OUTPUT);

  Serial.begin(9600);
  Serial.println("4-Channel Optoisolator Board demo started");
}

void loop() {
  digitalWrite(ch1Pin, HIGH);
  Serial.println("Channel 1 ON");
  delay(500);

  digitalWrite(ch2Pin, HIGH);
  Serial.println("Channel 2 ON");
  delay(500);

  digitalWrite(ch3Pin, HIGH);
  Serial.println("Channel 3 ON");
  delay(500);

  digitalWrite(ch4Pin, HIGH);
  Serial.println("Channel 4 ON");
  delay(500);

  digitalWrite(ch1Pin, LOW);
  Serial.println("Channel 1 OFF");
  delay(500);

  digitalWrite(ch2Pin, LOW);
  Serial.println("Channel 2 OFF");
  delay(500);

  digitalWrite(ch3Pin, LOW);
  Serial.println("Channel 3 OFF");
  delay(500);

  digitalWrite(ch4Pin, LOW);
  Serial.println("Channel 4 OFF");
  delay(1000);
}

Vergelijkbare componenten

AD9850 DDS Signal Generator Module

AD9850 DDS Signal Generator Module

Adjustable Step-down Module 3-40VDC  1.5-35VDC LM2596

Adjustable Step-down Module 3-40VDC 1.5-35VDC LM2596

Breadboard 400 pin

Breadboard 400 pin

DC 12V adjustable timer delay, time delay relay turn off switch module time relay time switch 0~25sec for smart home, automatic control

DC 12V adjustable timer delay, time delay relay turn off switch module time relay time switch 0~25sec for smart home, automatic control

Bouw je Arduino- of ESP32-project met AI

Beschrijf wat je wilt bouwen. Codey Online schrijft de code, tekent het aansluitschema, compileert het en flasht je board rechtstreeks vanuit de browser.

Gratis starten