Codey OnlineArduino- & ESP32-Komponentenbibliothek › HW-0519 TTL to RS485 Module
HW-0519 TTL to RS485 Module
Schnittstelle

HW-0519 TTL to RS485 Module

Dieses HW-0519 TTL-zu-RS485-Modul ist eine UART-zu-RS485-Interfaceplatine mit automatischer Richtungssteuerung, die zum Verbinden eines seriellen Mikrocontroller-Ports mit einem RS485-Differenzialnetzwerk verwendet wird. Es verbindet sich auf der einen Seite mit den Logikpegeln RXD/TXD und der Versorgung und auf der anderen Seite mit den A/B-Differenzial-Busleitungen, wobei GND zwischen den Geräten مشترег?

Breite: 40 mm

Pinbelegung — HW-0519 TTL to RS485 Module

Pin Signal Beschreibung
GND ground Logic ground reference for power and TTL UART signals.
RXD RX TTL serial input from MCU TX to module for transmission on RS485.
TXD TX TTL serial output from module to MCU RX, carrying received RS485 data.
VCC power Module logic power input for the TTL side, typically 5V.
A+ data RS485 non-inverting differential bus line A.
B- data RS485 inverting differential bus line B.
GND.1 ground RS485-side earth/shield ground connection for bus reference or grounding.

Beispielschaltplan — HW-0519 TTL to RS485 Module

Von Nach Kabel
board:5V x1:VCC red
board:GND x1:GND black
board:D1 x1:RXD green
board:D0 x1:TXD blue
board:GND.1 x1:GND.1 black
x1:A+ x1:A+ yellow
x1:B- x1:B- purple

Arduino-Beispielcode — HW-0519 TTL to RS485 Module

Dieses Beispiel wurde für das arduino-uno geschrieben und kompiliergeprüft. Codey Online passt es für jedes andere unterstützte Board an.

// HW-0519 Auto-Flow RS485 Module
// Simple serial pass-through demo for Arduino Uno.
// Upload this sketch, then open Serial Monitor at 9600 baud.
// Type a message and press Enter; it will be sent to the RS485 module.

void setup() {
  Serial.begin(9600);
  while (!Serial) {
    ;
  }

  Serial.println("HW-0519 RS485 module demo");
  Serial.println("Arduino Uno hardware serial on D0/D1");
  Serial.println("Connect your RS485 bus to A+ and B-.");
  Serial.println("Type in Serial Monitor to send data.");
}

void loop() {
  // Send any bytes typed in the USB Serial Monitor out through the RS485 module.
  while (Serial.available() > 0) {
    char c = (char)Serial.read();
    Serial.write(c);
  }
}

Ähnliche Komponenten

16 Channel 12-Bit PWM Servo Driver I2C

16 Channel 12-Bit PWM Servo Driver I2C

MCP23017 I/O Expander

MCP23017 I/O Expander

PCM1808 ADC Module

PCM1808 ADC Module

Bau dein Arduino- oder ESP32-Projekt mit AI

Beschreib einfach, was du bauen willst. Codey Online schreibt den Code, zeichnet den Schaltplan, kompiliert alles und flasht dein Board direkt aus dem Browser.

Kostenlos starten