CN107391032A - LED curtain wall controllers based on K64 MCU - Google Patents

LED curtain wall controllers based on K64 MCU Download PDF

Info

Publication number
CN107391032A
CN107391032A CN201710510991.1A CN201710510991A CN107391032A CN 107391032 A CN107391032 A CN 107391032A CN 201710510991 A CN201710510991 A CN 201710510991A CN 107391032 A CN107391032 A CN 107391032A
Authority
CN
China
Prior art keywords
mcu
curtain wall
chips
led curtain
dmx
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.)
Pending
Application number
CN201710510991.1A
Other languages
Chinese (zh)
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.)
Suzhou University
Original Assignee
Suzhou University
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 Suzhou University filed Critical Suzhou University
Priority to CN201710510991.1A priority Critical patent/CN107391032A/en
Publication of CN107391032A publication Critical patent/CN107391032A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40013Details regarding a bus controller
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks
    • H04L2012/445Star or tree networks with switching in a hub, e.g. ETHERNET switch

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a kind of LED curtain wall controllers based on K64 MCU, the controller includes spread footing and positioned at the control chip being fixedly installed on spread footing, the control chip is the K64 MCU chips of Cortex M4 kernels, control chip be used for the file content of reception is parsed into DMX signals and exported, the spread footing be provided be used for realize SD card read-write SD card interface, the Ethernet interface for realizing network transmission, the DMX interfaces for realizing DMX signal imitations, for realizing GPS pairs when GPS interface in one or more combinations.The LED curtain wall controllers of the present invention have the features such as cost is low, working stability, and synchronization accuracy is high, suitable for big-and-middle-sized LED curtain walls control system.

Description

LED curtain wall controllers based on K64-MCU
Technical field
The present invention relates to LED curtain wall control technology fields, are controlled more particularly to a kind of LED curtain walls based on K64-MCU Device.
Background technology
LED curtain walls, as the term suggests be exactly the product that is combined LED technology with curtain wall system, do not influence building its On the premise of its function (such as room lighting daylighting, architectural appearance effect), the expansion and building night vision beautification of building function are realized Purpose.LED curtain walls have the function of LED display and Landscape Lighting concurrently, and brilliant profile, display can be formed by it Picture, word or video.
The characteristics of LED curtain walls are with its low-power consumption, long-life, low cost, is extensively welcome by building designer.Its classification has Two kinds:A kind of rectangle module for being the high-resolution LED curtain wall of surface-mount type, being generally packaged into dot matrix, between each pixel between Away from for 6mm to 12mm.To realize that large scale is shown, it is necessary to by the way of module is assembled, be generally used to show high-resolution The live broadcast of degree, advertisement etc..Another is the relatively low LED curtain walls of the resolution ratio being together in series by lamp bar (or fluorescent tube). Its cost is of a relatively high, and pel spacing typically in more than 30mm, can have very high business with the whole wall face of high building And artistic value.
Use ARM+FPGA dual processor framework, the control of this scheme for the controller of LED curtain walls in the market more Device development cost processed is high, controls relative complex and portable difference.
Therefore, for above-mentioned technical problem, it is necessary to provide a kind of LED curtain wall controllers based on K64-MCU.
The content of the invention
In view of this, it is an object of the invention to provide a kind of LED curtain wall controllers based on K64-MCU.
To achieve these goals, technical scheme provided in an embodiment of the present invention is as follows:
A kind of LED curtain wall controllers based on K64-MCU, the controller include spread footing and positioned at being fixedly installed in Control chip on spread footing, the control chip are the K64-MCU chips of Cortex M4 kernels, and control chip is used for will The file content of reception is parsed into DMX signals and exported, and the spread footing is provided with the SD card for being used to realize SD card read-write and connect Mouth, the Ethernet interface for realizing network transmission, the DMX interfaces for realizing DMX signal imitations, for realizing GPS pairs when GPS interface in one or more combinations.
As a further improvement on the present invention, the SD card interface is carried out data transmission with SD card by SD mode bus, Clock signal that SD bus packets are sent containing from main frame to storage card, two-way command/response signal, 4 two-way data-signals and Power supply and earth signal.
As a further improvement on the present invention, the SD buses include a main frame and multiple slaves, and using synchronization Star topology, the SD buses are provided with some pull-up resistors.
As a further improvement on the present invention, the Ethernet interface includes W5500 chips, and W5500 chips are as ether The control chip of network interface.
As a further improvement on the present invention, the K64-MCU chips are provided with 3 SPI interfaces, can be used for same W5500 Chip is communicated, and the MOSI signal wires of K64-MCU chips connect with the MISO signal wires of W5500 chips, K64-MCU chips The MOSI signal wires of MISO signal wires and W5500 chips connect.
As a further improvement on the present invention, the W5500 chips include TXN/TXP and RXN/RXP two paths of differential signals Line, two paths of differential signals line are connected with the network transformer in Ethernet interface.
As a further improvement on the present invention, the DMX interfaces include RS-485 transceivers, and the RS-485 transceivers are SP3485 transceivers, SP3485 transceivers are connected with UART modules, and the Tx pins of UART modules and Rx pins are respectively equipped with limit Leakage resistance is connected to the DI pins and RO pins of SP3485 transceivers.
As a further improvement on the present invention, the RS-485 transceivers carry out communications, RS-485 using twisted-pair feeder The terminal of transceiver is provided with terminal resistance to eliminate the reflex as caused by distributed inductance and distribution capacity.
As a further improvement on the present invention, the DMX interfaces also include protection circuit, and the protection circuit includes connection In the transient voltage suppressor diode in SP3485 transceiver output ends and it is connected to upper in SP3485 transceiver output ends Pull-up resistor and pull down resistor.
As a further improvement on the present invention, the GPS interface includes NEO-7M chips, for carrying out time synchronized and prison Control controller uses position.
The beneficial effects of the invention are as follows:
The LED curtain wall controllers of the present invention have the features such as cost is low, working stability, and synchronization accuracy is high, suitable for big-and-middle Type LED curtain wall control systems.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in invention, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the module diagram of the Multifunctional LED curtain wall control system based on K64-MCU in the present invention;
Fig. 2 is the module diagram of LED curtain wall controllers in the present invention;
Fig. 3 is the schematic diagram of SD buses in the embodiment of the invention;
Fig. 4 is SD card interface circuit diagram in the embodiment of the invention;
Fig. 5 is ethernet interface circuit figure in the embodiment of the invention;
Fig. 6 is DMX interface circuit figures in the embodiment of the invention;
Fig. 7 is SM16512 chip pin figures in the embodiment of the invention;
Fig. 8 is the application principle figure of SM16512 chips in the embodiment of the invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention Scope.
Join shown in Fig. 1, the invention discloses a kind of Multifunctional LED curtain wall control system based on K64-MCU, the control system System includes:
PC 10, for every frame picture to be divided into multiple pieces and generates the file of specified format, it is distributed to each LED curtains The physical storage device of wall controller;
LED curtain walls controller 20, including some physical storage devices 21 and and physics for being used to store PC distribution of document File content is parsed into DMX signals by the one-to-one control chip 22 of storage device, control chip 22, and defeated according to channel number Go out, control chip is the K64-MCU chips of Cortex M4 kernels;
LED curtain walls 30, be connected with LED curtain wall controllers by bus, LED curtain walls by multiple block LED luminescence units and Corresponding DMX decoders composition, DMX decoders identify and control the colors of RGB tri-, realize that 256 gray levels control.
The global design of Multifunctional LED curtain wall control system relies on the existing technology of Internet of things frame in laboratory in the present invention Frame ISMTA is " internet+intelligence manufacture " Technical Architecture, but there is many difference therewith.Provided making full use of existing software It is adjusted on the basis of source according to the project demands of reality, accelerates the development rate of system, it is ensured that the feasibility of system And stability.
The user software of PC 10 can be divided into light fixture wiring software, web terminal control program and network transmission instrument these three Part:It is the PC control end of system, and user can imitate data format generation according to specified lamp by wiring software and adjust Light file uses for controller;By sending instructions under Web control programs, remote control LED curtains are realized using network transmission instrument The function such as wall or renewal light modulation file;
LED curtain walls controller 20 is the core component of the system, and control is used as from the K64-MCU of Cortex M4 kernels Core, MQX-Lite real time operating systems are carried, realize ethernet communication, SD card read-write, the function such as at GPS pairs, read simultaneously Light modulation file in SD card simultaneously exports multigroup DMX signals according to DMX512 agreements, realizes effective control to LED curtain walls;
LED curtain walls 30 are formed by connecting by more DMX light fixtures or lamp bar, and its kernel is exactly DMX decoders, are to realize that light is imitated The basic part of fruit.DMX decoders are mainly used in receiving the DMX signals that LED curtain walls controller is sent, and are assisted according to DMX512 View is parsed, and is realized control and is managed each LED.
The overall flow of control system is as follows:
PC 10 will be divided into multiple pieces according to the hardware installation scenarios of Practical Project per frame picture, and generate specified format File, physical storage device corresponding to each control chip is distributed to by TCP or manual mode;Control chip is by text Part Context resolution is exported to RS485 buses into DMX signals, and according to channel number, is identified and is controlled by the DMX decoders of lamp interior The colors of RGB tri- processed, realize that 256 gray levels control.
The present invention uses distributed storage technology, by the light modulation data storage after video file dividing processing in each LED In curtain wall controller, make its load balancing;The data volume of very little is only needed to can be achieved with together between each LED curtain walls controller Step, does not interfere with overall execution efficiency;Desalinate host-guest architecture, under offline mode, master controller only serves synchronous effect, Do not do centrally stored;And a LED curtain wall controller goes wrong and does not interfere with whole system, and this mode not only increases Reliability, concurrency and the access efficiency of system, are also easy to extend, zmodem, breach the bottleneck of original system.
The present invention is a distributed system realized by multi-controller, and the cascade necessarily involved between a controller is asked Topic.For original scheme by the way of Ethernet cascade, reason is high-speed communication, and 10Mbps bandwidth is used for quick transmission and adjusted enough Light data and control signal.But after employing distributed storage technology, it is not necessary to the substantial amounts of light modulation data of transmission, it is only necessary to transmit Synchronizing signal, data volume are minimum.So the solution of the present invention selection is communicated using RS485 buses, communication the advantage is that Mode is simple, easy exploiting, anti-interference, and cost reduces much with respect to ethernet communication.RS485 traffic rates are configured to after tested 2Mbps can comply fully with requirement with proper communication.
It is a main trend of LED curtain wall control system future developments to support isomery layout.Nowadays many related LED curtain walls Control system, when engineering is laid out, requirement light fixture is arranged according to the shape of rule, and some are with the M*N of rule rectangle LED Module is as display medium.LED curtain walls control based on DMX512 agreements is then more rare to the design of isomery layout, but It is one kind as Landscape Lamp application, the characteristics of generally requiring according to building, such as the roof of ball-type, the wall of column type etc., Illuminant arrangement is carried out, so the present invention devises a kind of LED curtain wall control systems for supporting isomery to be laid out, so as to greatly improve it Practicality.
The function needs to coordinate host computer light fixture wiring software to use, and according to engineering demand, user can be with arbitrarily devised cloth Line mode, such as the wiring of S types, Z-type wiring or other any-modes.User can import arbitrary format video file, wiring Software can be serialized output and dim file for binary file.Whether LED curtain walls controller can enable according to DMX passages And the data length sent controls the bright dark and number of LED, so as to support isomery to be laid out.
Join shown in Fig. 2, the LED curtain walls controller 20 based on K64-MCU in the present invention, including spread footing 23 and positioned at solid Loaded on the control chip 22 on spread footing, control chip is the K64-MCU chips of Cortex M4 kernels for Dingan County (MK64FX512), it be grace intelligence Pu (NXP) company newest release in 2014 a 32 based on Cortex M4 kernels Microcontroller, there is FLASH and 256KB RAM on 512MB pieces;Dominant frequency highest is configured into 200MHz;24 tunnels are single-ended and 4 tunnels are poor The A/D module (16 high accuracy) divided;8 PWM passages;1 SDHC (SD card) controller;5 UART modules;1 USB 2.0OTG interface;Up to 100 I/O pins.In addition, chip supports that voltage range is 1.71V~3.6V, operating temperature is -40 DEG C~105 DEG C.
In addition, telescopic backboard 23, which contains core board, externally provides basic interface and other functions, including for realizing SD Block the SD card interface 231 read and write, the Ethernet interface 232 for realizing network transmission, the DMX for realizing DMX signal imitations Interface 233, for realizing GPS pairs when GPS interface 234.
SD card interface 231:SD card interface is carried out data transmission with SD card by SD mode bus, SD bus packets containing main frame to The clock signal of storage card transmission, two-way command/response signal, 4 two-way data-signals and power supply and earth signal.SD Bus includes a main frame and multiple slaves, and using synchronous star topology, and SD buses are provided with some pull-up electricity Resistance.
SD card is big as a kind of memory capacity, and read or write speed is fast, the cheap and physical storage device that is convenient for carrying, It is widely used in various LED curtain walls control systems.By set these registers can K64 as main frame and SD card from Machine is communicated.SDHC is the storage card of new generation for meeting the specifications of SD 2.0, and feature is high power capacity (being more than 2G, less than 32G), its Corresponding file system is also lifted to FAT32 from FAT16.SD card defines two kinds of communication protocols:SD mode bus and SPI are total Ray mode.Because SPI mode is single wire transmission, SD patterns can select 4 lines to transmit, by contrast, the transmission of SD mode bus Speed is higher, so the SD patterns of the present invention 4 position datawires of selection, the total line frame graphs of SD such as Fig. 3.
According to SD v2.0 agreements, SD bus packets contain signals below:(1)CLK:The clock signal that main frame is sent to storage card; (2)CMD:Two-way command/response signal;(3) DAT0~DAT3:4 two-way data-signals;(4)VDD、VSS1、VSS2: Power supply and earth signal.
SD buses have the multiple slaves of a main frame and using synchronous star topologies.All storage card common clocks, Power supply and earth signal, order (CMD) and data (DAT0~DAT3) signal are the special signals of storage card, for all card companies of offer Continuous point-to-point connection, typical circuit connection such as Fig. 4.Many chip internals using open-drain design method, therefore When exporting high level, it is necessary to which extraneous pull-up resistor, otherwise can not export high level.When selecting pull-up resistor, it can choose The larger resistance of some resistances, it is possible to reduce stand-by power consumption.Wherein, DATA3 lines must pull up, and so enter SD after the power-up Mode bus.
Ethernet interface 232:Ethernet interface includes W5500 chips, control core of the W5500 chips as Ethernet interface Piece.K64-MCU chips are provided with 3 SPI interfaces, can be used for being communicated with W5500 chips, the MOSI letters of K64-MCU chips Number line connects with the MISO signal wires of W5500 chips, the MISO signal wires of K64-MCU chips and the MOSI signals of W5500 chips Line connects.W5500 chips include TXN/TXP and RXN/RXP two paths of differential signals lines, two paths of differential signals line and Ethernet interface In network transformer connection.
The network communications technology relies on the characteristics such as its transmission speed is fast, network configuration is simple, turns into LED curtain walls control industry Study hotspot.Traditional Ethernet chip such as ENC28J60, DDM900, only encapsulate physical layer (PHY) and medium access control Preparative layer (MAC), is required for software to realize since Internet, such as protocol stack sofeware.The system resource right and wrong that protocol stack takes Chang Keguan's, if operated on the processor of low performance, processor will be unable to timely respond to the request of user.In order to meet While functional requirement, programming efficiency is improved, simplifies circuit design, the system selects the W5500 chip conducts of WIZnet companies Ethernet control chip.W5500 is a devices at full hardware TCP/IP embedded ethernet control chips, is provided for embedded system Eased internet connection scheme.W5500 is integrated with ICP/IP protocol stack, 10/100M ethernet data link layers and thing Layer is managed, and is equipped with RAM up on 32K piece and is cached as data transmit-receive, the processing work of network traffic data is all turned Move on in W5500 integrated hardwares and carry out, such main control chip only needs to undertake the logic task of application layer control information, carries significantly High system development efficiency so that user can just expand network connection in the application using single-chip.In addition hardware TCP/IP Can not be aggressive, ensure that the security for the gateway built on this basis.W5500 chips use efficient SPI protocol, support 80MHz speed, so as to preferably realize that express network communicates.It is as shown in Figure 5 that its schematic diagram is designed according to chip handbook.
K64-MCU has 3 SPI interfaces, can be used for being communicated with W5500, wherein K64 is as main frame, W5500 conducts Slave.SPI protocol typically has 4 lines, wherein one is chip select line, low level is effective.Other three signal wires CLK, MOSI and MISO.It should be noted that as main frame, K64 MOSI signal wires need and W5500 MISO connects, K64 MISO signals Line needs and W5500 MOSI connects.This two paths of differential signals of the TXN/TXP and RXN/RXP of W5500 chips connects with network respectively Network transformer connection in mouth HR911105A.
DMX interfaces 233:DMX interfaces include RS-485 transceivers, and RS-485 transceivers are SP3485 transceivers, SP3485 Transceiver is connected with UART modules, and the Tx pins of UART modules and Rx pins are respectively equipped with current-limiting resistance and are connected to SP3485 receipts Send out the DI pins and RO pins of device.RS-485 transceivers carry out communications using twisted-pair feeder, and the terminal of RS-485 transceivers is set There is terminal resistance to eliminate the reflex as caused by distributed inductance and distribution capacity.DMX interfaces also include protection circuit, protection Circuit includes the transient voltage suppressor diode being connected in SP3485 transceiver output ends and is connected to SP3485 transceivers Pull-up resistor and pull down resistor in output end.
The electrical characteristic of DMX interfaces is to surround industrial standard EIA-RS-485 Interface designs, corresponding to the thing in osi model Layer is managed, using differential transfer mode.Therefore the design for DMX interfaces, is exactly the design to RS-485 interface circuits in fact.It is right For RS-485, it merely specify the electrical characteristic of receiving terminal and transmitting terminal, not provide any data protocol. The communication interface circuit of DMX512 agreements, as shown in Figure 6.
Most basic as the present invention is also most important part, and the quality of DMX interface circuit designs is related to whole system Stability and high efficiency, only the following aspects is reasonably designed, could more effectively reduce circuit design Difficulty and the cost of later maintenance.
(1) RS-485 transceivers select
RS-485 transponder chips are a kind of conventional communication devices.At present, received in the RS-485 of many semiconductor companies Corresponding model can be found in hair device series of products, and these products possess good compatibility, and can directly replace makes With, but should reasonably be selected according to different application scenarios.For example, for external device, because it is to electromagnetism or thunder It is more sensitive to hit impact, integrated ESD (Electro-Static discharge Electro-static Driven Combs) can be selected to strengthen defencive function RS-485 transceivers;For multi-node system, the RS-485 transceivers of optional enhanced I/O unit loads;Should for 3.3V With system, it should from 3.3V RS-485 transceivers.It is 3.3V operating voltage in view of this controller, from a support 3.3V voltage supply, low-power consumption, semiduplex transceiver SP3485.It complies fully with RS-485 serial protocol electrical code, it is allowed to Up to 128 transceivers, and its message transmission rate reaches as high as in the case of load-carrying are connected on same bus 10Mbps, there is driver output short circuit protection function, can be very good the design requirement for meeting this controller.
(2) switching of RS-485 transceiver modes
The Tx pins and Rx pins of UART modules connect respectively a current-limiting resistance be connected to SP3485 chips DI pins and RO pins.RS485 transceivers can only operate in one of " reception " or " transmission " both of which simultaneously, and RE/DE signal clocks are During high level, transmitter is effective, and receiver is forbidden;When RE/DE signal clocks are low level, receiver is effective, and transmitter is forbidden. Generally, the level height of the pin can be directly controlled with a pin of selection control, is controlled here for saving The pin resource of device, a transceiver logic control circuit can be increased to it, using a triode s8050, received and dispatched During data, automatic switchover transceiver mode.
(3) selection of terminal resistance
Actual signal transmssion line all has distributed inductance and distribution capacity, thus can produce a kind of reflex, so as to Cause system out of control.In order to eliminate this reflex, ensure the reliability of RS-485 communication systems, improve the anti-interference of system Ability, suitable terminal coupling resistance generally is installed to the end points of RS-485 communication systems.The size of the terminal resistance depends on The characteristic impedance of transmission cable, due to RS-485 communications generally use twisted-pair feeders, and its characteristic impedance is 120W.Cause This, the terminal coupling resistance R55 as shown in Figure 6 selected by the system also takes 120 Ω.
(4) protecting circuit designed
To improve the security of RS-485 communications, protect RS-485 buses from the impacting with high pressure such as thunderbolt, surge, Jin Erzao Into damaging, it is necessary to add appropriate protection circuit, KE48 circuit parts as shown in Figure 6 to system for RS485 interface circuits. KE48 is a kind of transient voltage suppressor diode, is mainly used in the standard RS-485 multicast systems of asymmetry protection In.It is -7V~+12V that it, which protects voltage range,.The KE48 elements of the system need its No. 1 and No. 2 pins being connected to On two output signal lines of RS-485 communication interfaces, i.e., in A the and B pins output of SP3485 chips, and No. 3 pins directly connect Meet GND.In addition, output terminals A, B add 4.7K pull-up resistor and pull down resistor respectively, there is provided network failure is protected, Ensure to can guarantee that the stable of low and high level exports during no signal, to improve the reliability of RS-485 nodes.
GPS interface 234:GPS interface includes NEO-7M chips, for carrying out the use position of time synchronized and supervisory control device Put.
GPS (Global Position System global positioning systems) is the 1970s by land, sea, and air of the U.S. The Aerospace Satellite navigation positioning system of new generation of joint research and development, its main purpose are provided in real time, entirely for three big field of land, sea and air Weather and global navigation Service, and for some military purposes such as information acquisition, Nuclear detonation monitoring and emergency communications.GPS exists The cesium-beam atomic clock of precision is equipped with every satellite, and is calibrated by ground monitoring station, is realized and UTC (Coordinated Universal Time world's unified times) time synchronized.GPS receives the signal of at least four satellites, according to satellite The positional information of offer, when can calculate receiver position on earth and receiver by EMITTER LOCATION METHOD USING Between and UTC time deviation, and carry out time synchronized calibration.
For the GPS-OEM of this controller from micro- snow electronics NEO-7M modules, it is that the Superminiature GPS of a low-power consumption connects Module is received, the product employs U-blox chips of new generation, and hypersensitivity, precision is high, accurate positioning, has comprehensive work( Can, the smart mobile phone serviced using GPS is embedded in, tablet personal computer, is mainly used in personnel positioning management, equipment tests the speed, logistic car The fields such as track and localization.Applied in this controller, can both be used for doing time synchronized, and this controller can be monitored Use position.
In order to allow GPS module to play peak performance, the actual fabric swatch of GPS interface circuit is most important.Its RF pin The tie point of microstrip line to antenna should be as short as possible, within 2.5cm.Wrapped up around microstrip line with complete GND, in order to subtract Few signal reflex, it should try one's best and avoid 90 degree of wirings, straight line and circular wiring are ideal.Microstrip line part PCB bottoms need to spread Complete copper.Hole is stamped in rf signal line both sides, the interference of outer bound pair signal wire is reduced, is further provided with 100M magnetic beads, specially For suppressing signal wire, the high-frequency noise on power line and spike interference, also there is the ability for absorbing electrostatic pulse.
DMX decoders in the present invention in LED curtain walls 30 include the decoding chip based on DMX512 agreements.Decoding chip is SM16512 chips, it is the SM16512 chips of Shenzhen City Sunmoon Microelectronics Co., Ltd production, and the chip is for full-color LED and the decoding chip researched and developed, possess 4 independent output driving passages control colors of RGBW tetra-, can be defeated by software design patterns Go out the selection (this problem only uses tri- passages of RGB therein) of port number, for realizing 256 grades of gray-scale Control;Output is adopted With SPWM technologies, stable electric current output can be ensured, driving current is up to 3~60mA.Chip SOP16 encapsulating structure is such as Shown in Fig. 7, its pin definition such as table 1.
The SM16512 pins of table 1 define
Data transfer is compatible and extends DMX512 agreements, and DMX signals can identify from two pin input chips of A, B The frequency range of signal is 250kbps to 800kbps.Each built-in chip type EEPROM device, for the address of storage chip, lead to Cross signal wire bus and write the multiple SM16512 chips of the disposable coding automatic of yard mode.
Each decoding chip based on DMX512 agreements is required for being endowed a numeral startup address number, this address Numbering is the initial address of the decoding chip, and stepping address is exactly to refer to the decoding chip simultaneously to produce a few field DMX signals Raw control action.Initial address is used for the addressing of DMX signals, to ensure that decoding chip only produces to belonging to " oneself " control signal Raw reaction.When the field sequence number of DMX packets is that assigned initial address sequence number is identical with the address code of certain decoding chip, Several field DMX signals that decoding chip begins to the field and its afterwards are decoded and produce control action.It is same with this When, other decoding chips being on same link are not reacted DMX signals.Until the control word segment number of DMX packets When being transitioned into identical with the initial address sequence number that next decoding chip is assigned, the decoding chip stops controlled while next The address code of decoding chip plays a role, in slave mode.
Examination is as an example, it is assumed that certain DMX control port drives some decoding chips, then the initial address of first decoding chip It is 001, the initial address of second decoding chip is exactly the stepping address of 001 plus first decoding chip, it is assumed that all solutions The stepping address of code chip is all 3, then, the initial address of second decoding chip is exactly 004, by that analogy, the 3rd solution The initial address of code chip is exactly 007, under standard DMX512 agreements, the initial address of last light fixture and its stepping address It is added no more than 512, but can be more than 512 for the light fixture in this experimental subjects, its end value.Certain address can also It is arranged to discontinuous, the data user rate of such words DMX packets is not just high.
The chip is mainly decorating building and stage-lighting effect LED illumination System and designed, and is highly suitable for needing LED illumination System that will be in parallel designs, and its application principle is as shown in Figure 8.The exception of some decoding chip does not influence it completely The normal work of his chip, compared to market concatenation constant current decoding chip for have more reliability and security, it is easy to maintenance The features such as.
It can be seen from above-mentioned technical proposal the invention has the advantages that:
Whole system needs to support isomery layout, and software operation needs simple;
Controller supports online control function, online to be communicated using Ethernet using ICP/IP protocol, under on line state The effect files in light units switch lamp, information inquiry, light modulation and long-range more new memory can be realized;
Controller supports unit function, each machine in system can hosted, controller can be according to software and hardware Configuration automatic identification the machine is in Host Status either slave status, and all slaves of host synchronization read the effect in memory File plays out;
Support SD or TF card as storage medium;
The DMX signals of controller output are capable of the DMX light fixtures of compatible in the market, and its signal baud rate can configure.Every control Device rear end processed is directly connected to DMX light fixtures, it is not necessary to other sub-controls;
Calculated according to each DMX packets 23ms, the limit of the play frame rate based on DMX512 agreements is 44 frames/second, control Device processed can realize freely adjusting for play frame rate;
Controller can carry out write once location to most DMX decoders of in the market.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the present invention.Any reference in claim should not be considered as to the involved claim of limitation.
Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each embodiment is only wrapped Containing an independent technical scheme, this narrating mode of specification is only that those skilled in the art should for clarity Using specification as an entirety, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art It is appreciated that other embodiment.

Claims (10)

1. a kind of LED curtain wall controllers based on K64-MCU, it is characterised in that the controller includes spread footing and is located at The control chip being fixedly installed on spread footing, the control chip are the K64-MCU chips of CortexM4 kernels, control core Piece is used to the file content of reception is parsed into DMX signals and exported, and the spread footing, which is provided with, to be used to realize that SD card is read and write SD card interface, the Ethernet interface for realizing network transmission, the DMX interfaces for realizing DMX signal imitations, for realizing One or more combinations in GPS interface at GPS pairs.
2. the LED curtain wall controllers according to claim 1 based on K64-MCU, it is characterised in that the SD card interface with SD card is carried out data transmission by SD mode bus, clock signal that SD bus packets are sent containing from main frame to storage card, two-way life Order/response signal, 4 two-way data-signals and power supply and earth signal.
3. the LED curtain wall controllers according to claim 2 based on K64-MCU, it is characterised in that the SD buses include One main frame and multiple slaves, and some pull-up resistors are provided with using synchronous star topology, the SD buses.
4. the LED curtain wall controllers according to claim 1 based on K64-MCU, it is characterised in that the Ethernet interface Including W5500 chips, control chip of the W5500 chips as Ethernet interface.
5. the LED curtain wall controllers according to claim 4 based on K64-MCU, it is characterised in that the K64-MCU cores Piece is provided with 3 SPI interfaces, can be used for being communicated with W5500 chips, MOSI signal wires and the W5500 cores of K64-MCU chips The MISO signal wires of piece connect, and the MISO signal wires of K64-MCU chips and the MOSI signal wires of W5500 chips connect.
6. the LED curtain wall controllers according to claim 5 based on K64-MCU, it is characterised in that the W5500 chips Including TXN/TXP and RXN/RXP two paths of differential signals lines, two paths of differential signals line connects with the network transformer in Ethernet interface Connect.
7. the LED curtain wall controllers according to claim 1 based on K64-MCU, it is characterised in that the DMX interfaces bag RS-485 transceivers are included, the RS-485 transceivers are SP3485 transceivers, and SP3485 transceivers are connected with UART modules, and The Tx pins and Rx pins of UART modules are respectively equipped with the DI pins and RO pins that current-limiting resistance is connected to SP3485 transceivers.
8. the LED curtain wall controllers according to claim 7 based on K64-MCU, it is characterised in that the RS-485 transmitting-receivings Device carries out communications using twisted-pair feeder, and the terminal of RS-485 transceivers is provided with terminal resistance to eliminate by distributed inductance and distribution Reflex caused by electric capacity.
9. the LED curtain wall controllers according to claim 7 based on K64-MCU, it is characterised in that the DMX interfaces are also Including protection circuit, the protection circuit include being connected to transient voltage suppressor diode in SP3485 transceiver output ends, And it is connected to pull-up resistor and pull down resistor in SP3485 transceiver output ends.
10. the LED curtain wall controllers according to claim 1 based on K64-MCU, it is characterised in that the GPS interface bag NEO-7M chips are included, for carrying out the use position of time synchronized and supervisory control device.
CN201710510991.1A 2017-06-28 2017-06-28 LED curtain wall controllers based on K64 MCU Pending CN107391032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710510991.1A CN107391032A (en) 2017-06-28 2017-06-28 LED curtain wall controllers based on K64 MCU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710510991.1A CN107391032A (en) 2017-06-28 2017-06-28 LED curtain wall controllers based on K64 MCU

Publications (1)

Publication Number Publication Date
CN107391032A true CN107391032A (en) 2017-11-24

Family

ID=60334468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710510991.1A Pending CN107391032A (en) 2017-06-28 2017-06-28 LED curtain wall controllers based on K64 MCU

Country Status (1)

Country Link
CN (1) CN107391032A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513401A (en) * 2018-04-09 2018-09-07 横店集团得邦照明股份有限公司 A kind of the large scene control system and its implementation of real-time synchronization
CN108562815A (en) * 2018-06-25 2018-09-21 长春工程学院 Power grid utility power quality control and monitoring system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101553065A (en) * 2008-04-02 2009-10-07 南京汉德森科技股份有限公司 LED atmosphere illumination control system
CN103220851A (en) * 2013-03-22 2013-07-24 深圳市众朝科技有限公司 Programmable light-emitting diode (LED) driving control device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101553065A (en) * 2008-04-02 2009-10-07 南京汉德森科技股份有限公司 LED atmosphere illumination control system
CN103220851A (en) * 2013-03-22 2013-07-24 深圳市众朝科技有限公司 Programmable light-emitting diode (LED) driving control device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
曾红等: "基于W5500的嵌入式系统以太网网关设计", 《网络安全技术与应用》 *
柳春青: "基于DMX512的智能灯光控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
潘永雄: "《STM8S 系列单片机原理与应用》", 28 February 2015, 西安电子科技大学出版社 *
王东波: "基于DMX512协议的照明控制系统设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
隋宗强: "基于STM32单片机的EMS液晶显示触摸屏设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108513401A (en) * 2018-04-09 2018-09-07 横店集团得邦照明股份有限公司 A kind of the large scene control system and its implementation of real-time synchronization
CN108513401B (en) * 2018-04-09 2019-12-10 横店集团得邦照明股份有限公司 real-time synchronous large-scale scene control system and implementation method thereof
CN108562815A (en) * 2018-06-25 2018-09-21 长春工程学院 Power grid utility power quality control and monitoring system

Similar Documents

Publication Publication Date Title
CN107146571B (en) Multifunctional LED curtain wall control system based on K64-MCU
CN207184521U (en) Internet of Things Multifunctional gateway based on NB IoT
CN102289359B (en) Wireless light emitting diode (LED) display screen control system based on ZigBee
CN103257951B (en) Communication management platform
CN102984844A (en) Illumination control system, illuminating device and secondary controller
CN106572183A (en) Intelligent wireless network sensor system possessing power supply management
CN107391032A (en) LED curtain wall controllers based on K64 MCU
CN103532804A (en) Double-Ethernet networking server provided with multi-serial ports
CN206790481U (en) Embedded electric power communication processor based on electric power Internet of Things
CN203151822U (en) Bus type lighting controlling device with address identification
CN103108446A (en) Switchboard internet access indicator light multi-status display system
CN102802316A (en) Lighting control device for realizing transmission of DALI (digital addressable lighting interface) bus protocol through ZigBee
CN204516320U (en) A kind of LED display module with memory function
CN103517530A (en) Fire emergency lighting system distribution electric control device
CN202206429U (en) Central air-conditioning charging data transmission network and manager
CN212064421U (en) Illumination wisdom control system based on 5G communication
CN104299429A (en) Annunciator based on SPI bus control
CN104283922A (en) Urban landscape decorative light control system based on Zigbee communication technology of GPRS/CDMA VPN
CN203431704U (en) IC-chip-controlled light-emitting LED Christmas lamp string
CN113115500A (en) Indicator lamp with position information
CN104616622A (en) LED (Light Emitting Diode) display screen module with memory function
CN206542444U (en) Radar data access device
CN202998149U (en) Zigbee-to-DALI (digital addressable lighting interface) gateway device
CN103528014A (en) LED Christmas light string with IC chip controlling light emitting
CN218959168U (en) LED on-line control system based on FPGA and gigabit Ethernet

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124

RJ01 Rejection of invention patent application after publication