ขอวงจรแปลงสัญญาณ RS-232 เป็น RS-485
LSVคลังสมองออนไลน์ "ปีที่21"
พฤษภาคม 03, 2024, 06:12:49 PM *
ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น
 
   หน้าแรก   ช่วยเหลือ เข้าสู่ระบบ สมัครสมาชิก  
หน้า: [1]   ลงล่าง
  พิมพ์  
ผู้เขียน หัวข้อ: ขอวงจรแปลงสัญญาณ RS-232 เป็น RS-485  (อ่าน 7978 ครั้ง)
ahedownload
member
*

คะแนน0
ออฟไลน์ ออฟไลน์

กระทู้: 7


« เมื่อ: กรกฎาคม 12, 2007, 01:26:58 PM »

ขอวงจรแปลงสัญญาณ RS-232 เป็น RS-485 และขอวงจรแปลงกลับด้วยครับ  คือผมต้องการส่งข้อมูลให้ไปได้ไกลๆนะครับ แต่ว่าผมอยากได้วงจรมาทำเองนะครับ จะได้เข้าใจหลักการการทำงาน ช่วยผมด้วยนะครับ Roll Eyes 


บันทึกการเข้า

worathep-LSV team
.กลุ่มผู้มีน้ำใจงาม.
member
*

คะแนน712
ออฟไลน์ ออฟไลน์

กระทู้: 5066


รุ่งเรืองอิเล็กทรอนิกส์


อีเมล์
« ตอบ #1 เมื่อ: กรกฎาคม 13, 2007, 10:05:27 AM »

ลองดูอันนี้ครับ รูปอยู่ด้านล่างเรียงรูปที่ 1-2-3

PC  RS485  Interface
M Asim Khan,   asimkhan@sat.net.pk
This interface circuit provides electrically isolated RS485 communication inteface to the PC serial port the isolation circuit protect the PC from direct connection to hazardous voltages.
___________________ ___________________ __
 
Figure 1: Circuit Diagram of Isolated RS485 Interface
Figure 1 shows the circuit diagram of RS485 interface. Connector K1 is linked to the serial port of the PC, power to the PC side of the circuit is derived from the signal lines DTR and RTS. Positive supply is derived from RTS and negative supply from the DTR line. The RTS line is also used to control the data direction of RS485 driver IC U4.
Optical isolation is achieved by optocouplers U1, U2 and U3. Opto U1 is used to control the data direction of U4 opto U2 provide RXD line isolation while opto U3 provide TXD line isolation.
The other side of the isolator carries TTL levels. This side is powered by an unregulated dc supply between 9V and 18V dc. IC U5 provide 5V regulated output and IC U4 provide the RS485 bus interface. The TXD and RXD lines status are provided by data indicating LEDs. The interface has been tested at the baud rate of 19.2k baud.
For Data Reception            RTS = 1  (at +ve level)
For Data Transmition          RTS = 0 (at -ve level)
DTR line is always set to 0  (at -ve level)
Figure 2 & 3 shows the component layout of the isolator pcb and the track patterns respectively.

 
Figure 2: Component layout of the Isolator PCB
 
Figure 3: Track patterns of the Isolator PCB
Component details of the project.
 1       4    C1,C2,C3,C6       100nF
 2       1    C4                10uF 16V
 3       1    C5                470uF 25V
 4       3    D1,D2,D3          1N4148
 5       2    D4,D5             LED RED 3mm
 6       2    D7,D6             TRANSIL 6.8V
 7       1    D8                1N4003
 8       1    K1                DB9 R/A PCB PLUG
 9       1    K2                PCB TERMINAL BLOCK 4 WAY
10       3    R1,R2,R3          1K8
11       2    R7,R4             4K7
12       2    R5,R8             1K
13       3    R9,R12            150R
14       1    R6                680R
15       2    R11,R10           10R
16       1    R13               120R
17       2    U3,U1             H11L1 OPTO-ISOLATOR
18       1    U2                CNY17-3 OPTO-ISOLATOR
19       1    U4                MAX487, SN75176B
20       1    U5                LM7805
___________________ ___________________ __
 
2 July 2001

บันทึกการเข้า

รับซ่อม TV-computer                    มี TV มือสองขาย  
รับสอนซ่อม-ประกอบคอมพิวเตอร์      มีจอมอนิเตอร์มือสองขาย
ซ่อม อัพเกรด ประกอบคอมฯ             มีคอมพิวเตอร์มือสองขาย
รับติดตั้ง วางระบบแลน อินเตอร์เน็ต
ราคาคุยกันได้ โทร 02-6934724
ahedownload
member
*

คะแนน0
ออฟไลน์ ออฟไลน์

กระทู้: 7


« ตอบ #2 เมื่อ: กรกฎาคม 25, 2007, 12:28:44 PM »

ขอบคุณครับ
บันทึกการเข้า
หน้า: [1]   ขึ้นบน
  พิมพ์  
 
กระโดดไป:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC2 | SMF © 2001-2006, Lewis Media

lsv2555Please follow the new website at https://www.pohchae.com

Valid CSS!