CN112269342B - Multi-path serial port communication circuit board - Google Patents

Multi-path serial port communication circuit board Download PDF

Info

Publication number
CN112269342B
CN112269342B CN202011231831.1A CN202011231831A CN112269342B CN 112269342 B CN112269342 B CN 112269342B CN 202011231831 A CN202011231831 A CN 202011231831A CN 112269342 B CN112269342 B CN 112269342B
Authority
CN
China
Prior art keywords
driver
pin
module
differential
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011231831.1A
Other languages
Chinese (zh)
Other versions
CN112269342A (en
Inventor
代剑峰
张春辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongxing Times Technology Co ltd
Original Assignee
Beijing Zhongxing Times Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongxing Times Technology Co ltd filed Critical Beijing Zhongxing Times Technology Co ltd
Priority to CN202011231831.1A priority Critical patent/CN112269342B/en
Publication of CN112269342A publication Critical patent/CN112269342A/en
Application granted granted Critical
Publication of CN112269342B publication Critical patent/CN112269342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Systems (AREA)
  • Connector Housings Or Holding Contact Members (AREA)

Abstract

The invention relates to a multi-path serial port communication circuit board which comprises a control module, a serial port communication circuit, a differential-to-single-end and single-end-to-differential module, a focusing circuit and a power supply module, wherein the control module is used for controlling the serial port communication circuit; the serial port communication circuit comprises an RS422 module, an RS485 module and an RS232 module which are all connected with the control module; the focusing circuit comprises a motor driver, the motor driver is connected with the control module, and the motor driver is used for driving a motor for driving the lens to be focused; the automatic focusing drives the motor through the motor driver, and the motor is used for driving the lens of the photoelectric equipment to rotate, so that the automatic focusing is realized, and a user can observe a screen and focus while operating the optical equipment; meanwhile, the automatic serial port communication circuit provides RS422, RS485 and RS232 serial ports, provides various serial data interfaces and can receive and send various signals.

Description

Multi-path serial port communication circuit board
Technical Field
The invention relates to the technical field of circuits, in particular to a multi-path serial port communication circuit board.
Background
The existing photoelectric equipment has fewer serial ports, and when the interface needs to be expanded, more serial ports can be obtained only by connecting a plurality of circuit boards in series, so that the communication requirement of a photoelectric product is met, but the size is increased, the reliability is reduced, the whole structure is complex, problems are easy to occur, and the problems are not easy to be solved; meanwhile, when the existing photoelectric equipment is used, a screen needs to be observed firstly, and then manual focusing is carried out on the photoelectric equipment, so that the use is inconvenient.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a multi-channel serial port communication circuit board, which is capable of facilitating a user to focus an optoelectronic device, and simultaneously providing a greater variety and number of serial ports, and capable of receiving and transmitting a greater variety of signals.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention relates to a multi-path serial port communication circuit board which comprises a control module, a serial port communication circuit, a differential-to-single-end and single-end-to-differential module, a focusing circuit and a power supply module, wherein the control module is used for controlling the serial port communication circuit;
the serial port communication circuit comprises an RS422 module, an RS485 module and an RS232 module which are all connected with the control module;
the differential-to-single-end and single-to-differential module is used for signal conversion and long-distance transmission of photoelectric equipment;
the focusing circuit comprises a motor driver, the motor driver is connected with the control module, and the motor driver is used for driving a motor for driving the lens to be focused;
the power supply module is externally connected with a power supply and is used for supplying power to the control module, the serial communication circuit, the differential-to-single-end and single-end-to-differential module and the focusing circuit.
Further, the control module is an STM32 single chip microcomputer.
Further, the RS422 module is including corresponding RS422 driver and the RS422 interface of connecting, the RS485 module is including corresponding RS485 driver and the RS485 interface of connecting, the RS232 module is including corresponding RS232 driver and the RS232 interface of connecting, RS422 driver, RS485 driver and RS232 driver with the serial data pin of STM32 singlechip is connected.
Further, the model of the RS422 driver is MAX3490, the model of the RS485 driver is MAX3485, and the model of the RS232 driver is MAX3232
Furthermore, the differential-to-single-end and single-to-differential module includes a driver, the model of the driver is MAX3490, and two sides of the driver are connected to corresponding interfaces and preset on the optoelectronic device.
Further, the model of motor driver is DRV8833CPWP, motor driver's signal input part with the STM32 singlechip is connected, motor driver's signal output part is connected with the motor.
Furthermore, the power supply module comprises a voltage conversion chip, the model of the voltage conversion chip is TPS5430, the input end of the voltage conversion chip is externally connected with a power supply, and the output end of the voltage conversion chip transmits a power supply signal to the control module, the serial communication circuit, the differential-to-single-end and single-end-to-differential module and the focusing circuit.
The invention has the beneficial effects that: according to the multi-path serial port communication circuit board, automatic focusing is achieved by driving the motor through the motor driver and driving the lens of the photoelectric equipment through the rotation of the motor, so that the automatic focusing is achieved, and a user can observe a screen and focus while operating the optical equipment; meanwhile, the automatic serial port communication circuit provides RS422, RS485 and RS232 serial ports, provides various serial data interfaces and can receive and send various signals.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that for a person skilled in the art, other relevant drawings can be obtained from the drawings without inventive effort:
FIG. 1 is a block diagram of the present invention;
FIG. 2 is a circuit diagram of a control module of the present invention;
FIG. 3 is a circuit diagram of a focusing circuit of the present invention;
FIG. 4 is a circuit diagram of the RS422 module of the serial communication circuit of the present invention;
FIG. 5 is a circuit diagram of an RS485 module of the serial communication circuit of the present invention;
FIG. 6 is a circuit diagram of an RS232 module of the serial communication circuit of the present invention;
fig. 7 is a circuit diagram of a driver of a differential-to-single-ended and single-to-differential module according to the present invention;
FIG. 8 is a circuit diagram of an interface of a differential to single-ended and single-ended to differential module of the present invention;
fig. 9 is a circuit diagram of the power supply module of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1-9: the multi-path serial port communication circuit board comprises a control module, a serial port communication circuit, a differential-to-single-end and single-end-to-differential module, a focusing circuit and a power supply module;
the serial port communication circuit comprises an RS422 module, an RS485 module and an RS232 module which are all connected with the control module;
the differential-to-single-end and single-to-differential module is used for signal conversion and long-distance transmission of photoelectric equipment;
the focusing circuit comprises a motor driver, the motor driver is connected with the control module, and the motor driver is used for driving a motor for driving the lens to be focused;
the power supply module is externally connected with a power supply and is used for supplying power to the control module, the serial communication circuit, the differential-to-single-end and single-end-to-differential module and the focusing circuit.
In this embodiment, the control module is specifically an STM32 single chip microcomputer, and the specific model is STM32F091RBT6, and the STM32 single chip microcomputer is used as a control core for receiving and forwarding a preset instruction.
In this embodiment, specifically, the RS422 module includes an RS422 driver and an RS422 interface that are correspondingly connected, the RS485 module includes an RS485 driver and an RS485 interface that are correspondingly connected, the RS232 module includes an RS232 driver and an RS232 interface that are correspondingly connected, the full-duplex RS422 employs MAX3490ESA, the transmission rate is up to 10Mbps, the half-duplex RS485 employs MAX3485EESA, the transmission rate is up to 10Mbps, the RS232 employs MAX3232EUE, and the transmission rate is up to 120 kbps;
a receiver output pin RO and a driver input pin DI of the RS422 driver are respectively connected with a PA10 pin and a PA9 pin of an STM32 monolithic chip, and respectively serve as a receiving line RX and a transmitting line TX of a serial data interface UART1, and a homodromous receiver input pin a, an inverse receiver input pin B, a homodromous driver output pin Y and an inverse driver output pin Z of the RS422 driver are respectively connected to an RS422 interface (the interface is in the prior art, and therefore not shown in the drawing);
a receiver output pin RO and a driver input pin DI of the RS485 driver are respectively connected with a PC5 pin and a PC4 pin of an STM32 single chip and respectively used as a receiving line RX and a sending line TX of a serial data interface UART3, and a receiver homodromous input/output pin A and a driver reverse input/output pin B of the RS485 driver are respectively connected into the RS485 interface;
a first transmitter input pin T1IN, a second transmitter input pin T2IN, a first receiver output pin R1OUT and a second receiver output pin R2OUT of the RS232 driver are respectively and correspondingly connected with a PC0, a PC2, a PC1 and a PC3 of an STM32 single chip microcomputer and respectively used as a receiving line RX and a sending line TX of a serial data interface, and a first transmitter output pin T1OUT, a second transmitter output pin T2OUT, a first receiver input pin R1OUT and a second receiver input pin R2OUT of the RS232 driver are respectively connected to the RS232 interface;
in this embodiment, the differential-to-single-ended and single-to-differential module includes a driver, the model of the driver is also MAX3490ESA, and a receiver output pin RO, a driver input pin DI, a homodromous receiver input pin a, an inverse receiver input pin B, a homodromous driver output pin Y, and an inverse driver output pin Z of the driver are connected to corresponding interfaces and preset on the optoelectronic device, so as to meet signal conversion and long-distance transmission requirements of the device.
In this embodiment, specifically, the model of the motor driver is DRV8833CPWP, the motor driver controls the motor by using an H bridge, a first logic input pin AIN1 of the H bridge a, a second logic input pin AIN2 of the H bridge a, a first logic input pin BIN1 of the H bridge B, and a second logic input pin BIN2 of the H bridge B inside the motor driver are respectively connected to PB7, PB6, PB4, and PB5 pins of the STM32 single chip microcomputer, and a first output pin AOU1 of the H bridge a, a second output pin ut2 of the H bridge a, a first output pin BOU1 of the H bridge B, and a second output pin BOUT2 of the H bridge B inside the motor driver are connected to an external motor, so as to output a level to control the motor, and further control a focusing process of the electro-optical device.
Specifically, in this embodiment, the power supply module includes a voltage conversion chip, the model of the voltage conversion chip is TPS5430, an input terminal VIN of the voltage conversion chip is externally connected with a power supply, an output terminal BOOT of the voltage conversion chip transmits a power supply signal to the control module, the serial communication circuit, the differential-to-single-ended and single-ended-to-differential module, and the focusing circuit, and the input voltage range is DC5.5V-36V wide voltage input, and the output is DC3.3V. And power is supplied to the whole circuit.
According to the multi-path serial port communication circuit board, automatic focusing is achieved by driving the motor through the motor driver and driving the lens of the photoelectric equipment through the rotation of the motor, so that the automatic focusing is achieved, and a user can observe a screen and focus while operating the optical equipment; meanwhile, the automatic serial port communication circuit provides RS422, RS485 and RS232 serial ports, provides various serial data interfaces and can receive and send various signals.
Finally, the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all of them should be covered in the claims of the present invention.

Claims (1)

1. Multichannel serial ports communication circuit board, its characterized in that: the device comprises a control module, a serial port communication circuit, a differential-to-single-end and single-end-to-differential module, a focusing circuit and a power supply module;
the serial port communication circuit comprises an RS422 module, an RS485 module and an RS232 module which are all connected with the control module;
the differential-to-single-end and single-to-differential module is used for signal conversion and long-distance transmission of photoelectric equipment;
the focusing circuit comprises a motor driver, the motor driver is connected with the control module, and the motor driver is used for driving a motor for driving the lens to be focused;
the power supply module is externally connected with a power supply and is used for supplying power to the control module, the serial communication circuit, the differential-to-single-end and single-end-to-differential module and the focusing circuit; the control module is an STM32 single chip microcomputer; the RS422 module comprises an RS422 driver and an RS422 interface which are correspondingly connected, the RS485 module comprises an RS485 driver and an RS485 interface which are correspondingly connected, the RS232 module comprises an RS232 driver and an RS232 interface which are correspondingly connected, and the RS422 driver, the RS485 driver and the RS232 driver are connected with a serial data pin of the STM32 singlechip; the model of the RS422 driver is MAX3490, the model of the RS485 driver is MAX3485, and the model of the RS232 driver is MAX 3232; the differential-to-single-end and single-end-to-differential module comprises a driver, the model of the driver is MAX3490, and two sides of the driver are connected to corresponding interfaces and preset on the photoelectric equipment;
the model of the motor driver is DRV8833CPWP, the signal input end of the motor driver is connected with the STM32 single chip microcomputer, and the signal output end of the motor driver is connected with the motor;
the power supply module comprises a voltage conversion chip, the model of the voltage conversion chip is TPS5430, the input end of the voltage conversion chip is externally connected with a power supply, and the output end of the voltage conversion chip transmits a power supply signal to the control module, the serial port communication circuit, the differential-to-single-end and single-end-to-differential module and the focusing circuit;
a receiver output pin RO and a driver input pin DI of the RS422 driver are respectively connected with a PA10 pin and a PA9 pin of an STM32 monolithic chip and respectively used as a receiving line RX and a sending line TX of a serial data interface UART1, and a homodromous receiver input pin A, an inverse receiver input pin B, a homodromous driver output pin Y and an inverse driver output pin Z of the RS422 driver are respectively connected to an RS422 interface;
a receiver output pin RO and a driver input pin DI of the RS485 driver are respectively connected with a PC5 pin and a PC4 pin of an STM32 single chip and respectively used as a receiving line RX and a sending line TX of a serial data interface UART3, and a receiver homodromous input/output pin A and a driver reverse input/output pin B of the RS485 driver are respectively connected into the RS485 interface;
a first transmitter input pin T1IN, a second transmitter input pin T2IN, a first receiver output pin R1OUT and a second receiver output pin R2OUT of the RS232 driver are respectively and correspondingly connected with a PC0, a PC2, a PC1 and a PC3 of an STM32 single chip microcomputer and respectively used as a receiving line RX and a sending line TX of a serial data interface, and a first transmitter output pin T1OUT, a second transmitter output pin T2OUT, a first receiver input pin R1OUT and a second receiver input pin R2OUT of the RS232 driver are respectively connected to the RS232 interface;
a receiver output pin RO, a driver input pin DI, a same-direction receiver input pin A, a reverse receiver input pin B, a same-direction driver output pin Y and a reverse driver output pin Z of a driver of the differential-to-single-end and single-end-to-differential module are connected to corresponding interfaces and are preset on the photoelectric equipment;
the motor driver adopts an H bridge to control a motor, a logic input first pin AIN1 of the H bridge A, a logic input second pin AIN2 of the H bridge A, a logic input first pin BIN1 of the H bridge B and a logic input second pin BIN2 of the H bridge B in the motor driver are respectively and correspondingly connected with PB7, PB6, PB4 and PB5 pins of an STM32 singlechip, a first output pin AOU1 of the H bridge A, a second output pin AOUT2 of the H bridge A, a first output pin BOU1 of the H bridge B and a second output pin BOUT2 of the H bridge B in the motor driver are connected with an external motor and used for outputting a level to control the motor and further control the focusing process of the photoelectric equipment;
the input end VIN of the voltage conversion chip is externally connected with a power supply, the output end BOOT of the voltage conversion chip transmits a power supply signal to the control module, the serial port communication circuit, the differential-to-single end and single-end-to-differential module and the focusing circuit, the input voltage range is DC5.5V-36V wide voltage input, and the output is DC3.3V.
CN202011231831.1A 2020-11-06 2020-11-06 Multi-path serial port communication circuit board Active CN112269342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011231831.1A CN112269342B (en) 2020-11-06 2020-11-06 Multi-path serial port communication circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011231831.1A CN112269342B (en) 2020-11-06 2020-11-06 Multi-path serial port communication circuit board

Publications (2)

Publication Number Publication Date
CN112269342A CN112269342A (en) 2021-01-26
CN112269342B true CN112269342B (en) 2022-04-19

Family

ID=74345031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011231831.1A Active CN112269342B (en) 2020-11-06 2020-11-06 Multi-path serial port communication circuit board

Country Status (1)

Country Link
CN (1) CN112269342B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005034615A (en) * 2003-02-18 2005-02-10 Eamex Co Drive mechanism and drive method thereof
CN101234665A (en) * 2008-03-03 2008-08-06 中国科学院光电技术研究所 Small-sized underwater observation robot
CN101290608A (en) * 2008-06-12 2008-10-22 上海爱瑞科技发展有限公司 Replaceable modular passive serial interface device
CN201673303U (en) * 2010-04-09 2010-12-15 桂林桂光仪器有限公司 Base for electric focusing microscope
CN204989043U (en) * 2015-09-21 2016-01-20 武汉盛华伟业科技有限公司 Foldable high resolution detritus rock core image acquisition transmission device
CN206162511U (en) * 2016-07-23 2017-05-10 山东超越数控电子有限公司 Adjustable serial module of multichannel of compatible X86 and ARM framework platform
CN111862751A (en) * 2020-07-13 2020-10-30 中国人民解放军海军工程大学 Optical fiber gyroscope experimental device capable of coaxially rotating

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10355529A1 (en) * 2003-11-21 2005-07-07 Carl Zeiss Jena Gmbh stereomicroscope

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005034615A (en) * 2003-02-18 2005-02-10 Eamex Co Drive mechanism and drive method thereof
CN101234665A (en) * 2008-03-03 2008-08-06 中国科学院光电技术研究所 Small-sized underwater observation robot
CN101290608A (en) * 2008-06-12 2008-10-22 上海爱瑞科技发展有限公司 Replaceable modular passive serial interface device
CN201673303U (en) * 2010-04-09 2010-12-15 桂林桂光仪器有限公司 Base for electric focusing microscope
CN204989043U (en) * 2015-09-21 2016-01-20 武汉盛华伟业科技有限公司 Foldable high resolution detritus rock core image acquisition transmission device
CN206162511U (en) * 2016-07-23 2017-05-10 山东超越数控电子有限公司 Adjustable serial module of multichannel of compatible X86 and ARM framework platform
CN111862751A (en) * 2020-07-13 2020-10-30 中国人民解放军海军工程大学 Optical fiber gyroscope experimental device capable of coaxially rotating

Also Published As

Publication number Publication date
CN112269342A (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN101751368B (en) Single-board communication method, device and system
WO2004053544A3 (en) Photonic circuit board
EP1213658A3 (en) Optical communication interface module for universal serial bus
WO2020248743A1 (en) Optical module
CN1333560C (en) High-performance optical fibre CAN communication system for strong electromagnetism interference environment
CN112269342B (en) Multi-path serial port communication circuit board
CN103116567B (en) The selection circuit of Multi-serial port
CN202121600U (en) Power failure directly connected Ethernet optical fiber exchanger protected by photoswitch
CN116303205A (en) Three-in-one interface circuit for serial port, control method thereof and serial port system chip
WO1999022455A3 (en) Single-chip transceiver for optical networks
CN215868585U (en) Display screen control board card and display screen control system
CN112583401B (en) Isolated single-wire bidirectional transmission circuit based on digital isolator
CN210488291U (en) Extensible monitoring circuit board
CN208971524U (en) Golden finger module reuse circuit and optical module
CN203086596U (en) Pluggable household pick-up head card employing specific definition
CN214474974U (en) Conversion circuit for realizing signal multiplexing
CN202602676U (en) A CAN signal transmission circuit
CN201114169Y (en) Serial communication interface isolation driver circuit
CN206021053U (en) Tool magazine control circuit
CN205862157U (en) A kind of Ether mac bus system being applied to air-jet loom
CN109120349A (en) Golden finger module reuse circuit and optical module
CN100531346C (en) High speed bidirectional digital interface suitable for micro photo electric imaging system
CN205388688U (en) Analog signal board of sampling based on synchronous serial bus technique
CN203606826U (en) RS232 switching circuit, looping-in communication circuit and multipoint control system
TW432808B (en) Transceiving apparatus and method, receiving apparatus and method, as well as a transmitting apparatus and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant