ماژول مبدل TTL به RS485 دو طرفه

SCM-TTL-RS485

2117-114-3592

25,880 تومان
در حال حاضر موجود نمی باشد

موجودی در حال ارسال به انبار


خرید کالا


علاقه مندان : 11 نفر
وضعیت : فعال

تعداد مرجوعی : 0
دنبال کنندگان : 15 نفر

قدمت : 11 سال و 3 ماه و 2 روز
وزن : 3 گرم

کل فروش : 2813 عدد
تعداد سفارش ها : 364 سفارش

5 از 5.0 با 4 رای
ماژول مبدل TTL به RS485 دو طرفه

این ماژول RS-485 یک رابط خودکار دو جهته پرقدرت از TTL به RS-485 ارائه می دهد.
این ماژول شامل ویژگی محافظت از لایتنینگ و دارای طراحی ضد اختلال است. قرار گیری ترمینال GND در انتهای ماژول باعث کاهش تداخل و در نتیجه بهبود عملکرد ماژول شده است. لازم به ذکر است که این مبدل طبق استاندارد 2.54 میلی متر طراحی شده و شامل مقاومت تطبیق 120 اهم است. این ماژول مبدل از ارتباط بین میکروکنترلرهای چند گانه پشتیبانی می کند (128 دستگاه). از ویژگی های این مبدل می توان به قابلیت hot-swappable اشاره کرد که به منظور جلوگیری از تداخل سیگنال می باشد. این ماژول برای اتصال به MCU دارای یک هدر 4 پین می باشد. این مبدل به طور خودکار از کنترل جهت انتقال داده حفاظت می کند، بنابراین نیازی به پین های اضافی DE / RE نیست. از این مبدل معمولاً برای اتوماسیون صنعتی استفاده می شود.

مشخصات:
سرعت انتقال تا 2.5 مگابیت بر ثانیه تا فاصله تقریبی 1 کیلومتر
مجهز به Multi-drop با قابلیت پشتیبانی از 32 دستگاه در هر باس
مجهز به poly فیوز به منظور محافظت در برابر جریان بالا
مجهز به محافظ اتصال کوتاه و ولتاژ بالا درون بردی
دارای نشانگر LED وضعیت انتقال و دریافت

Description:
The SCM TTL to RS-485 Interface module provides a robust automatic bi-directional interface from TTL to long-line RS-485.
This converter is generally used for industrial automation. This module includes lightning protection design and anti-jamming design. The GND terminal is at the end of the module, so that lightning protection and anti-interference can be achieved. It uses a standard 2.54 mm pitch design. It also includes 120-ohm matching resistance. It supports communication between multiple microcontrollers, allowing up to 128 devices on the bus. It can be hot-swappable, in order to prevent signal interference. The module has a 4-pin header on the assembly for connections to the MCU. This module automatically takes care of data transmission direction control, so it does not require the extra DE/RE pins required by most other RS-485 modules.

Highlights:
1. Compatible with 3.3V and 5.0V power supply.
2. Compatible with 3.3V and 5.0V signal.
3. Absolute using imported chips; industrial design; anti-interference ability; while using more effective 485 lightning protection design can be used in the industrial field and harsh field environments; the working temperature of -40 ℃ to + 85 ℃; transmission distance up to 1 kilometer (made with 850 meters of cable F1.5 tests recommended using in the 800 meters, when more than 800m please add repeaters).
4. Semi-hole process design, thickness 0.8mm, can easily use as a picture board, it can also be welded terminal use.
5. Has RXD, TXD signal indicator lights, monitor send and receive status.

Features:
Transmit and receive indicator LEDs
Speeds up to 2.5Mbit/Sec
Uses differential signaling for noise immunity
Multi-drop supports up to 32 devices on the same bus
Built-in poly fuses for over-current protection
Built-in transient surge protection diodes for over-voltage protection

 

 Arduino code example:

Master RS-485 Device Software

/*
 * SCM TTL To RS485 Master Software
 * Exercise the SCM TTL to RS485 Module.  This code runs on the first (Master)device.
 * Use the SCM_RS485_Slave_Test software for the second (Slave) device
 * This uses the SoftSerial.h library which comes with the Arduino IDE
 * Pins used for the soft serial port are fairly arbitrary and can be changed
 * as needed.  Just redefine them below.
 */
#include <SoftwareSerial.h>
const int SSERIAL_RX_PIN = 10;  //Soft Serial Receive pin
const int SSERIAL_TX_PIN = 11;  //Soft Serial Transmit pin

// Create Soft Serial Port object and define pins to use
SoftwareSerial RS485Serial(SSERIAL_RX_PIN, SSERIAL_TX_PIN); // RX, TX

int byteReceived;
//===============================================================================
//  Initialization
//===============================================================================
void setup()
{
  Serial.begin(9600);           // Start the built-in serial port
  Serial.println("Master Device");
  Serial.println("Type in upper window, press ENTER");
   
  RS485Serial.begin(9600);   // Start the RS485 soft serial port 
}
//===============================================================================
//  Main
//===============================================================================
void loop() 
{
  if (Serial.available())         // A char(byte) has been entered in the Serial Monitor
  {
    byteReceived = Serial.read();                   // Read the byte
    RS485Serial.write(byteReceived);                 // Send byte to Remote Arduino 
  }
  
  if (RS485Serial.available())            //Data from the Slave is available
   {
    byteReceived = RS485Serial.read();    // Read received byte
    Serial.write(byteReceived);           // Show on Serial Monitor
   }  
}

 

Slave RS-485 Device Software

/*
 * SCM TTL to RS485 Slave Software
 * Exercise the SCM TTL to RS485 Module.  This code runs on the second (slave)device.
 * Use the SCM_RS485_Master_Test software for the first (Master) device
 * This uses the SoftSerial.h library which comes with the Arduino IDE
 * Pins used for the soft serial port are fairly arbitrary and can be changed
 * as needed.  Just redefine them below.
 */
#include <SoftwareSerial.h>

const int SSERIAL_RX_PIN = 10;  //Soft Serial Receive pin
const int SSERIAL_TX_PIN = 11;  //Soft Serial Transmit pin

// Create Soft Serial Port object and define pins to use
SoftwareSerial RS485Serial(SSERIAL_RX_PIN, SSERIAL_TX_PIN);

int byteReceived;
int byteSent;
//===============================================================================
//  Initialization
//===============================================================================
void setup() 
{
  Serial.begin(9600);         // Start the built-in hardware serial port
  Serial.println("Slave Device");  
   
  RS485Serial.begin(9600);   // Start the RS485 soft serial port 
}
//===============================================================================
//  Main
//===============================================================================
void loop() 
{
  // Watch for data coming in on the soft serial port.  If found, send a copy to the 
  // hardware port to display on the local serial terminal and also echo a copy back out 
  // the soft serial port to the Master device  
  if (RS485Serial.available())        // If data has come in from Master
  {
    byteSent = RS485Serial.read();    // Read the byte 
    Serial.write(byteSent);           // Show on local Serial Monitor window
    delay(10);              
 
    RS485Serial.write(byteSent);                     // Send the byte back to Master
  }  
}