CN214067633U - Multi-path steering engine network controller - Google Patents

Multi-path steering engine network controller Download PDF

Info

Publication number
CN214067633U
CN214067633U CN202023282603.5U CN202023282603U CN214067633U CN 214067633 U CN214067633 U CN 214067633U CN 202023282603 U CN202023282603 U CN 202023282603U CN 214067633 U CN214067633 U CN 214067633U
Authority
CN
China
Prior art keywords
pin
circuit
electrically connected
power supply
steering engine
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
CN202023282603.5U
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.)
Kunming Metallurgy College
Original Assignee
Kunming Metallurgy College
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 Kunming Metallurgy College filed Critical Kunming Metallurgy College
Priority to CN202023282603.5U priority Critical patent/CN214067633U/en
Application granted granted Critical
Publication of CN214067633U publication Critical patent/CN214067633U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The utility model discloses a multichannel steering wheel network controller, be equipped with power supply circuit on the controller, power supply circuit's power is acquireed from the host computer through RS422 bus circuit interface, and the power of acquireing provides operating voltage for the controller after voltage conversion, the controller includes singlechip and extension circuit, storage circuit, the emulation reset circuit who is connected with the monolithic is electromechanical respectively, be equipped with CAN bus interface circuit, warning indicating circuit on the singlechip, extension circuit and storage circuit all acquire operating voltage from the host computer through RS422 bus circuit interface, emulation reset circuit acquires the power through power supply circuit, extension circuit is equipped with a plurality of steering wheel interfaces, and the host computer just CAN realize the remote control to single steering wheel through sending steering wheel angle control command for the controller. The utility model discloses a system simple structure, development cost is low, and scalability is strong, can a plurality of steering engines of connection control, and the application scene is comparatively extensive.

Description

Multi-path steering engine network controller
Technical Field
The utility model belongs to steering wheel drive control field, specifically speaking relates to a multichannel steering wheel controller based on C8051F340 singlechip and 74HC595 displacement register extension.
Background
A steering engine is used as a position and angle servo driver, and is often used in various control systems such as robots and unmanned planes. Because the actuating mechanism of the control system usually needs a plurality of steering engines to be matched and completed, the requirement for realizing multipath centralized control on the steering engines is wide. The multi-path control of the steering engine can be realized by generating multi-path PWM signals based on a CPLD, an FPGA, a DSP, a singlechip and the like. CPLD, FPGA's characteristics are that the circuit is customizable, can realize large-scale steering engine control, but development threshold height, with high costs. The DSP and the single chip microcomputer have the characteristics of strong universality, low development cost and relatively simple and convenient development, but are only suitable for occasions with a small number of control steering engines.
In view of this, the present invention is provided.
SUMMERY OF THE UTILITY MODEL
The utility model discloses the technical problem who solves lies in overcoming prior art's not enough, provides a multichannel steering wheel controller based on C8051F340 singlechip and 74HC595 displacement register extension, for solving above-mentioned technical problem, the utility model discloses a technical scheme's basic design is:
the utility model provides a multichannel steering wheel network controller, be equipped with power supply circuit on the controller, power supply circuit's power obtains from the host computer through RS422 bus circuit interface, and the power that obtains provides operating voltage for the controller after voltage conversion, the controller includes singlechip and extension circuit, storage circuit, the emulation reset circuit who is connected with the singlechip electricity respectively, be equipped with CAN bus interface circuit, warning indicating circuit on the singlechip, extension circuit and storage circuit all obtain the power from the host computer through RS422 bus circuit interface, extension circuit is equipped with a plurality of steering wheel interfaces, emulation reset circuit obtains the power through power supply circuit.
Further, power supply circuit includes voltage conversion chip, steering wheel power input interface, power ground wire interface, the model of voltage conversion chip is HT7533, the ground connection of the first pin of voltage conversion chip, voltage conversion chip second pin is connected with RS422 bus interface power electricity, and the ground connection behind electric capacity C2 is connected to the second pin electricity simultaneously, voltage conversion chip third pin is for providing power output end, for the singlechip provides operating voltage, and ground connection behind electric capacity C3 is connected to the third pin electricity simultaneously, and power supply circuit is equipped with the power indicator, the power indicator is connected ground connection behind the second pin electricity of voltage conversion chip.
Further, the singlechip is provided with a crystal oscillator circuit, the crystal oscillator circuit is electrically connected with a forty-seventh pin and a forty-eighth pin of the singlechip, and the type of the singlechip is C8051F 340.
Further, the extension circuit comprises a 74HC595 chip and a steering engine interface circuit, first pins to seventh pins and fifteenth pins of the 74HC595 chip are respectively and electrically connected with first pins of eight steering engine interfaces of the steering engine interface circuit, eighth pins of the 74HC595 chip are grounded, tenth pins and sixteenth pins of the 74HC595 chip acquire power through RS422 interfaces, eleventh pins to fourteenth pins of the 74HC595 chip are sequentially and electrically connected with thirty-sixth pins to thirty-third pins of the single chip microcomputer, the steering engine interface circuit further comprises five steering engine interfaces, the first pins of the five steering engine interfaces are sequentially and electrically connected with forty-fourth pins to forty-fourth pins of the single chip microcomputer, and the first pins of the five steering engine interfaces are simultaneously and electrically connected with resistors and then are connected with a steering engine power supply.
Furthermore, the RS422 bus circuit comprises a MAX3491 chip and a 14-pin RS422 serial bus interface, a second pin of the MAX3491 chip is electrically connected with a resistor R2 and then electrically connected with a twentieth pin of the singlechip, a fourth pin is electrically connected with a thirty-ninth pin of the singlechip, a fifth pin is electrically connected with a resistor R1 and then electrically connected with a thirty-eighth pin of the singlechip, the first pin, the sixth pin and the seventh pin are all grounded, a fourteenth pin is electrically connected with a capacitor C1 and a capacitor C2 which are connected in parallel and then grounded, the fourteenth pin is electrically connected with the output end of the power circuit at the same time, a twelfth pin is electrically connected with a resistor R3 and then electrically connected with the output end of the power circuit, a twelfth pin is electrically connected with a resistor R6 and then electrically connected with an eleventh pin, an eleventh pin is electrically connected with a resistor R4 and then grounded at the same time, a ninth pin is electrically connected with a resistor R8 and then electrically connected with the output end of the power circuit, and a ninth pin is connected with a tenth pin at the same time, the tenth pin is also electrically connected to resistor R9 and then to ground.
Further, the CAN bus interface circuit comprises an MCPL2510 chip, a PCA82C250T chip and a crystal oscillator circuit, wherein a first pin of the MCP2510 chip is electrically connected with a first pin of the PCA82C250T chip, a second pin of the MCP2510 chip is electrically connected with a second pin of the PCA82C250T chip, two joints of the crystal oscillator circuit are respectively and electrically connected with a seventh pin and an eighth pin of the MCP2510 chip, a ninth pin of the MCP2510 chip is grounded, a twelfth pin to a sixteenth pin are sequentially and electrically connected with a sixth pin to a second pin of the single chip, a seventeenth pin is electrically connected with a capacitor and then grounded, the seventeenth pin is simultaneously and electrically connected with a resistor R15 and then connected with a power supply of the RS422 bus circuit interface, an eighteenth pin is connected with the power supply of the RS422 bus circuit interface, a second pin of the PCA82C250T chip is electrically connected with a capacitor C11 and then connected with a third pin, and the second pin is grounded, and the third pin is connected with the, the eighth pin is electrically connected to resistor R16 and then to ground.
Further, the storage circuit comprises an AT24C01 chip, a first pin, a second pin, a third pin and a fourth pin of the AT24C01 chip are all grounded, a fifth pin is electrically connected with a forty-sixth pin of the single chip microcomputer, the fifth pin is electrically connected with a resistor R17 and then is connected with a power supply of the RS422 bus circuit interface, the sixth pin is electrically connected with the forty-fifth pin of the single chip microcomputer, the sixth pin is electrically connected with a resistor R18 and then is connected with the power supply of the RS422 bus circuit interface, a seventh pin is grounded, an eighth pin is connected with the power supply of the RS422 bus circuit interface, and an eighth pin is electrically connected with a capacitor C11 and then is grounded.
Further, emulation reset circuit includes reset circuit and emulation circuit, reset circuit has two connectors, and the connector of resistance R11 is connected with the thirteenth pin electricity of singlechip, and resistance R12's connector is connected with the power supply circuit output electricity, the emulation circuit includes the JTAG interface of ten needles, the first pin of JTAG is connected with power supply circuit's output, and second pin, third pin, ninth pin all ground connection, and fourth pin electricity is connected after resistance R14 and is connected with the sixth pin electricity, and the fifth pin electricity is connected between reset circuit resistance R11 and electric capacity C8, and the seventh pin is connected with the thirteenth pin electricity of singlechip.
Further, alarm indication circuit includes work indicating circuit and alarm circuit, alarm circuit includes the LED pilot lamp, be connected with the twenty-fourth pin electricity of singlechip behind the LED pilot lamp one end electricity connecting resistance R12, the other end is connected with power supply circuit output port electricity, alarm circuit includes triode Q1, is connected with the twenty-third pin electricity of singlechip behind triode Q1's the base electricity connecting resistance R13, and triode Q1's collecting electrode is connected with the buzzer electricity, and buzzer, triode Q1's projecting pole ground connection are connected to power supply circuit's output electricity.
Furthermore, the single chip microcomputer controls a steering engine connected with a PCA module arranged on the single chip microcomputer through a serial communication protocol, and the single chip microcomputer controls the steering engine connected with a steering engine interface expanded out of the 74HC595 chip through the serial communication protocol.
After the technical scheme is adopted, compared with the prior art, the utility model following beneficial effect has.
This multichannel steering wheel network controller's utility model adopts the singlechip to be the control core, and the commonality of singlechip is strong, and the development is comparatively simple, and development cost is low, can satisfy more industrial requirements. The controller is combined with a CAN bus interface, an RS422 bus interface and a self-defined communication protocol, so that the controller CAN be integrated into a robot and other control systems as a single module for use. The PCA module of the C8051F340 singlechip and the 74HC595 extension realize the drive control of 13-path steering engines, and solve the problem that a single singlechip can control a small number of steering engines. The upper computer can realize the remote control of a single steering engine by sending a steering engine angle control command to the controller. The system has the advantages of simple structure, low development cost, strong expandability and good use value.
The utility model discloses a steering wheel network controller has chooseed for use two-wire serial bus electricity erasable read only memory AT24C01, and this chip is used for preserving the steering wheel angle control data that the host computer sent to realize the module back that resets after the outage, resume the control angle of steering wheel last time fast, be favorable to coping with emergency's in the production life emergence more, in time preserve data, reduce the loss.
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention without limitation. It is obvious that the drawings in the following description are only some embodiments, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of a system architecture of a controller according to the present invention;
FIG. 2 is a schematic diagram of a single-chip microcomputer circuit of the controller of the present invention;
FIG. 3 is a schematic diagram of a power supply circuit for the controller of the present invention;
FIG. 4 is a schematic diagram of JTAG and reset circuit of the single chip microcomputer of the present invention;
fig. 5 is a schematic circuit diagram of the RS422 bus of the present invention;
FIG. 6 is a schematic diagram of a CAN bus interface circuit of the present invention;
FIG. 7 is a schematic diagram of the alarm indicating circuit of the present invention;
fig. 8 is a schematic diagram of the memory circuit of the present invention;
fig. 9 is a schematic diagram of the expansion circuit of the present invention;
fig. 10 is a schematic diagram of the main program work flow of the present invention.
It should be noted that the drawings and the description are not intended to limit the scope of the inventive concept in any way, but to illustrate the inventive concept by those skilled in the art with reference to specific embodiments.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the drawings in the embodiments of the present invention are combined below to clearly and completely describe the technical solutions in the embodiments, and the following embodiments are used for illustrating the present invention, but do not limit the scope of the present invention.
In the description of the present invention, it should be noted that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The utility model discloses a controller to the steering wheel, wherein the control signal of steering wheel is cycle 20ms, and frequency 50 Hz's PWM signal carries out the angle rotation through changing the pulse width control steering wheel, and 0.5ms-2.5 ms's pulse width corresponds steering wheel turned angle and is 0-180, and the angle is linear relation with the width of pulse, can show that a is 90(t-0.5), and a represents steering wheel turned angle, and t is that pulse width 0.5 is less than or equal to t and is less than or equal to 2.5.
Example one
As shown in fig. 1 to 10, the multi-path steering engine network controller based on C8051F340 and 74HC595 expansion comprises a power circuit, a single chip, an RS422 bus circuit, a simulation reset circuit, an alarm indication circuit, an expansion circuit, a CAN bus interface circuit, and a storage circuit. The power supply of the power supply circuit is acquired from an upper computer through an RS422 bus circuit interface, the acquired power supply provides working voltage for the controller after voltage conversion, chips of different circuits work differently, required working voltage is different, the alarm circuit in the expansion circuit, the storage circuit, the CAN bus interface circuit and the alarm indicating circuit acquires the power supply from the upper computer through the RS422 bus circuit interface, and the work indicating circuit in the singlechip, the simulation reset circuit and the alarm indicating circuit acquires the working voltage through the power supply circuit.
In this embodiment, the type of the single chip microcomputer is preferably C8051F340, the single chip microcomputer is compatible with an 8051 microcontroller core, can reach 48MIPS, has a programmable counter timer array PCA and up to 40I/O ports, and can well meet the functions and expansion requirements of the controller. The single chip microcomputer is provided with a crystal oscillator circuit, the frequency of the crystal oscillator is 11.0592MHz, the capacitance C5 is 30pF, the capacitance C6 is 30pF, and two ports of the crystal oscillator circuit are respectively and electrically connected with a forty-seventh pin and a forty-eighth pin of the single chip microcomputer. The external clock of the singlechip is 11.0592MHz, the timer 0 is initialized to use the external clock to divide frequency by 8, and 8 bits are automatically reassembled and enabled. Configuration TL0 ═ 0x 94; TH0 ═ 0x 94; the corresponding period is 20 ms. The 5 paths of PWM carried by the singlechip respectively correspond to P12-P16 pins of the singlechip, namely a forty-fourth pin to a forty-fourth pin of the singlechip.
The power circuit comprises a voltage conversion chip, a steering engine power input interface, a power ground wire interface and a power indicator lamp, wherein the voltage conversion chip is HT7533, the HT7533 voltage conversion chip has the characteristics of low power consumption, low drop voltage, high input voltage, high-precision voltage output and the like, and the maximum output current can reach 100 mA. The first pin of the voltage conversion chip is grounded, the second pin of the voltage conversion chip is electrically connected with any one of the third pin, the fifth pin and the sixth pin of the RS422 bus interface, the second pin is electrically connected with the capacitor C2 and then grounded, the third pin of the voltage conversion chip is used for providing a power supply output end and providing working voltage for the single chip microcomputer, and the third pin is electrically connected with the capacitor C3 and then grounded. The power indicator lamp comprises an LED indicator lamp and a resistor R5, the LED indicator lamp is connected with the resistor R5 in series, the other end of the LED indicator lamp is electrically connected with the second pin of the voltage conversion chip, and the other end of the resistor R5 is grounded.
The expansion circuit comprises a 74HC595 circuit, a PCA module and a steering engine interface circuit, wherein the controller is provided with 13 steering engine interfaces which are divided into 8 steering engine interfaces expanded by 74HC595 chips, as shown in figure 9, DJ1-DJ8, and 5 single-chip microcomputers are provided with PWM interfaces, namely PCA modules, as shown in figure 9, DJ9-DJ 13. 74HC595 is an 8-bit shift register with latch function for serial-in and parallel-out, and is commonly used for expanding I/O port of single chip microcomputer to save port resource of single chip microcomputer. 74HC595 at each rising edge of CLK, serial data is input to the shift register from SI, high before and low after. After the 8-bit data input is completed in sequence, if the/G is enabled by the low level output and a rising edge is given to the RCK, the data enters the latch and is output from the QA-QH. Through the P22, P23, P24 and P25 ports of the single chip microcomputer, as shown in fig. 9U4, the output of the 74HC595 expanded 8-path analog PWM signal is realized in cooperation with the timer interrupt service of the single chip microcomputer timer. Before the timer starts counting, SI, CLK, RCK, and/G of 74HC595 are all initialized to 0. The system clock of the singlechip is configured to be 4 times of the external clock, the clock of the timer is configured to use the system clock, the timer is configured to be a 16-bit automatic reinstallation mode, and the timing period is 100us, namely, an interrupt service function is input every 0.1 ms. The steering engine has 3 wiring, is power cord, ground wire, control signal line respectively. The first pins of the steering engine interface are all control signal lines, the second pins are all power lines, and the third pins are all ground lines. The first pins to the seventh pin and the fifteenth pin of the 74HC595 chip are respectively and electrically connected with the first pins of the eight steering engine interfaces of the steering engine interface circuit in sequence; the eighth pin of the 74HC595 chip is grounded, and the tenth pin and the sixteenth pin of the 74HC595 chip are electrically connected with any pin of the third pin, the fifth pin and the sixth pin of the RS422 bus interface to obtain the working voltage of the chip; the eleventh pin to the fourteenth pin of the 74HC595 chip are electrically connected with the thirty-sixth pin to the thirty-third pin of the singlechip in sequence; the first pins of the other five steering engine interfaces are electrically connected with the forty-fourth pin to the forty-fourth pin of the single chip microcomputer in sequence, and the first pins of the five steering engine interfaces are electrically connected with the first pins of the steering engine power input interface of the power circuit after being electrically connected with the resistors R19-R23 at the same time.
Preferably, when the PCA module is set to 8-bit pulse width modulation, the calculation formula of the duty ratio is as follows:
Figure DEST_PATH_GDA0003154692740000061
the duty ratio of the steering engine in a 20ms period is 2.5-12.5% corresponding to 0-180 degrees (0.5-2.5 ms), the corresponding PCA0CPHn value range is 249-224, and the steering engine angle control accuracy of the PCA configuration is about 7 degrees. The program can improve the control precision of the steering engine by changing the setting PCA clock or using 16-bit pulse width modulation. The cycle of the steering engine control signal is 20ms, the time of high level is used for 2.5ms at most, the PCA0CPHn register value of PWM can be set in a PWM interruption service function in a circulating mode in a time-sharing multiplexing mode, and 8 paths of PWM signals can be separated from 1 path of PWM by matching with an external separation circuit, the number of PWM modules carried by a single chip microcomputer is increased, the number of extensible PWM signals is increased, but a PWM signal separation hardware circuit is needed to separate the signals.
The controller is provided with an RS422 serial bus interface, and the RS422 bus has the advantages of strong anti-interference, differential mode transmission, full duplex, long transmission distance and the like, and is a point-to-multipoint serial communication bus. The RS422 bus circuit comprises a MAX3491 chip and a 14-pin RS422 serial bus interface, a second pin of the MAX3491 chip is electrically connected with a resistor R2 and then electrically connected with a twentieth pin of the singlechip, a fourth pin is electrically connected with a thirty-ninth pin of the singlechip, a fifth pin is electrically connected with a resistor R1 and then electrically connected with a thirty-eighth pin of the singlechip, the first pin, the sixth pin and the seventh pin are all grounded, a fourteenth pin is electrically connected with a capacitor C1 and a capacitor C2 which are connected in parallel and then grounded, the fourteenth pin is electrically connected with the output end of the power circuit at the same time, a twelfth pin is electrically connected with a resistor R3 and then electrically connected with the output end of the power circuit, a twelfth pin is electrically connected with a resistor R6 and then electrically connected with an eleventh pin, the eleventh pin is electrically connected with a resistor R4 and then grounded, a ninth pin is electrically connected with a resistor R8 and then electrically connected with the output end of the power circuit, and a ninth pin is electrically connected with a tenth pin after being connected with a resistor R7, the tenth pin is electrically connected with the resistor R9 and then grounded; the first pin, the second pin, the seventh pin and the eighth pin of the 14-pin serial interface are all grounded, the eleventh pin of the serial interface is electrically connected with the twelfth pin of the MAX3491 chip, the twelfth pin of the serial interface is electrically connected with the eleventh pin of the MAX3491 chip, the thirteenth pin of the serial interface is electrically connected with the ninth pin of the MAX3491 chip, and the fourteenth pin of the serial interface is electrically connected with the tenth pin of the MAX3491 chip.
In order to improve the compatibility of the controller, the controller is provided with a CAN bus interface circuit which supports CAN bus communication, the CAN bus interface circuit comprises an MCPL2510 chip, a PCA82C250T chip, a crystal oscillator circuit and a CAN bus physical interface, the MCP2510 chip is an SPI interface and is communicated with a C8051F340 singlechip through an SPI. The PCA82C250T chip drives the CAN controller and a physical interface to provide differential transmission and reception functions, the crystal oscillator frequency of the crystal oscillator circuit is 16MHz, the capacitor C12 and the capacitor C13 are both 30pF, and the CAN bus physical interface is used for being connected with other CAN nodes. The first pin of the MCP2510 chip is electrically connected with the first pin of the PCA82C250T chip, the second pin of the MCP2510 chip is electrically connected with the second pin of the PCA82C250T chip, two interfaces of the crystal oscillator circuit are respectively electrically connected with the seventh pin and the eighth pin of the MCP2510 chip, the ninth pin of the MCP2510 chip is grounded, the twelfth pin to the sixteenth pin are sequentially and electrically connected with the sixth pin to the second pin of the single chip microcomputer, the seventeenth pin is electrically connected with a capacitor and then grounded, the seventeenth pin is electrically connected with a resistor R15 and then connected with a power supply of the RS422 bus circuit interface, the eighteenth pin is connected with the power supply of the RS422 bus circuit interface, the second pin of the PCA82C250T chip is electrically connected with the capacitor C11 and then connected with the third pin, the second pin is grounded, the third pin is electrically connected with any one of the third pin, the fifth pin and the sixth pin of the RS422 bus interface, and the eighth pin is electrically connected with the resistor R16 and then grounded, the sixth pin is electrically connected with the second pin of the CAN bus physical interface, the seventh pin is electrically connected with the first pin of the CAN bus physical interface, and the third pin of the CAN bus physical interface is grounded.
The storage circuit comprises an AT24C01 chip and is used for storing control data of each steering engine. The first pin, the second pin, the third pin and the fourth pin of the AT24C01 chip are all grounded, the fifth pin is electrically connected with the forty-sixth pin of the singlechip, the fifth pin is electrically connected with a resistor R17 and then is connected with a power supply of the RS422 bus circuit interface, the sixth pin is electrically connected with the forty-fifth pin of the singlechip, the sixth pin is electrically connected with a resistor R18 and then is electrically connected with any pin of the third pin, the fifth pin and the sixth pin of the RS422 bus interface, the seventh pin is grounded, the eighth pin is electrically connected with any pin of the third pin, the fifth pin and the sixth pin of the RS422 bus interface, and the eighth pin is electrically connected with a capacitor C11 and then is grounded.
The simulation reset circuit comprises a reset circuit and a simulation circuit and is used for downloading and online simulation debugging of the singlechip program. The reset circuit is provided with two connecting ports, a connector of the resistor R11 is electrically connected with a thirteenth pin of the single chip microcomputer, and a connector of the resistor R12 is electrically connected with the output end of the power circuit. The simulation circuit comprises a ten-pin JTAG interface, a first pin of the JTAG is connected with the output end of the power supply circuit, a second pin, a third pin and a ninth pin are all grounded, a fourth pin is electrically connected with a resistor R14 and then electrically connected with a sixth pin, a fifth pin is electrically connected between a reset circuit resistor R11 and a capacitor C8, and a seventh pin is electrically connected with a thirteenth pin of the single chip microcomputer.
The alarm indicating circuit comprises a work indicating circuit and an alarm circuit, the alarm circuit comprises an LED indicating lamp, one end of the LED indicating lamp is electrically connected with the twenty-fourth pin of the single chip microcomputer after being electrically connected with a resistor R12, the other end of the LED indicating lamp is electrically connected with the output port of the power circuit, the alarm circuit comprises a triode Q1, the base electrode of the triode Q1 is electrically connected with the twenty-third pin of the single chip microcomputer after being electrically connected with a resistor R13, the collector electrode of the triode Q1 is electrically connected with a buzzer, the third pin of the RS422 bus interface, the fifth pin, any pin in the sixth pin is electrically connected with the other end of the buzzer, and the emitter electrode of the triode Q1 is grounded.
After the controller is connected with a power supply, the power supply circuit outputs the input 5V voltage to be 3.3V voltage suitable for a single chip microcomputer and other chips through a voltage conversion chip, after a key of a control reset circuit initializes equipment, online simulation is carried out on a program through a JTAG interface, downloading of the program is started after the simulation is finished, the program is downloaded into the single chip microcomputer, and after the program is processed and analyzed by the single chip microcomputer, signals which can be identified by a PCA module and a 74HC595 circuit are output, so that control over 8-way steering engines and 5-way steering engines is realized through the PCA module and the 74HC595 circuit. A communication protocol is arranged between the single chip microcomputer and the upper computer, as shown in table 1, the upper computer sends a complete corresponding protocol frame, a program modifies values of the array, corresponding steering engine control is achieved, and the array values are input into a storage circuit according to instructions. The program can reduce the timing period of the timer to improve the control precision of the steering engine, and the timing period of the timer needs to be determined by comprehensively considering the program running time and the priority of other functional modules.
As shown in fig. 10, fig. 10 is a schematic diagram of the main program workflow of the present invention, wherein the serial communication protocol involved is specifically defined in table 1, and table 1 is as follows:
Figure DEST_PATH_GDA0003154692740000081
Figure DEST_PATH_GDA0003154692740000091
table 1 frame format for reception and transmission
The single chip microcomputer controls a steering engine connected with a PCA module arranged on the single chip microcomputer through a serial communication protocol, and the single chip microcomputer controls the steering engine connected with a steering engine interface expanded out by a 74HC595 chip through the serial communication protocol. The specific control steps of the controller of this example are as follows:
step S1, after the single chip is electrified, equipment initialization is carried out, wherein the equipment needing initialization comprises a system clock, a PCA module, a timer, an I/O port, an AT24C01/SMBus, a serial port, interrupt enable and priority, initialization controlled by 74HC595 and RS422 bus transmission prohibition, the equipment value is restored to the initial state, and the input of subsequent program data is facilitated; after the initialization is finished, the next step is carried out;
step S2, testing whether the AT24C01 chip works normally by reading and writing one byte of data, if not, starting a buzzer to alarm, ending the program and processing the problem; if the AT24C01 chip works normally, the next step is carried out;
step S3, the steering engine control data stored in the AT24C01 chip for the last time is read back, the value of a count array is recovered, meanwhile, the PCA0CPH0 register is assigned, all the steering engines are recovered to the state before power failure, and the next step is carried out;
step S4, the upper computer can send the corresponding data frame, the program judges whether the upper computer has the complete protocol frame, if not, the program returns to step S4 to cycle, if the complete protocol frame is received, the program performs one step;
step S5, analyzing the control command, judging whether the command is 0x01-0x08, if yes, extracting data, modifying the value corresponding to the count array, and returning to the step S4 for circulation; if not, carrying out the next step;
step S6, judging whether the command is 0x11-0x15, if so, extracting data, modifying the value corresponding to the count array and assigning a corresponding register PCA0CPHn, and then returning to the step S4 for circulation; if not, carrying out the next step;
step S7, judging whether the command is 0x22, if yes, extracting the last value of the data modification count array, and then returning to the step S4 for circulation; if not, carrying out the next step;
step S8, judging whether the command is 0x55, if yes, calling an EEPROM _ WriteArray function to write the count array into the AT24C01 chip, and returning to the step S4 for circulation; if not, the process returns to step S4 to loop.
And the upper machine position controls the corresponding steering engine to rotate through the corresponding data command from the whole flow chart.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and although the present invention has been disclosed with reference to the above preferred embodiment, but not to limit the present invention, any person skilled in the art can make some changes or modifications to equivalent embodiments without departing from the scope of the present invention, and any simple modification, equivalent change and modification made to the above embodiments by the technical spirit of the present invention still fall within the scope of the present invention.

Claims (10)

1. The utility model provides a multichannel steering wheel network controller which characterized in that: the controller is characterized in that a power supply circuit is arranged on the controller, a power supply of the power supply circuit is acquired from an upper computer through an RS422 bus circuit interface, the acquired power supply provides working voltage for the controller after voltage conversion, the controller comprises a single chip microcomputer and an expansion circuit, a storage circuit and a simulation reset circuit which are respectively electrically connected with the single chip microcomputer, a CAN bus interface circuit and an alarm indicating circuit are arranged on the single chip microcomputer, the expansion circuit and the storage circuit acquire the power supply from the upper computer through the RS422 bus circuit interface, the expansion circuit is provided with a plurality of steering engine interfaces, and the simulation reset circuit acquires the power supply through the power supply circuit.
2. The multi-path steering engine network controller according to claim 1, wherein: the power supply circuit comprises a voltage conversion chip, a steering engine power input interface and a power ground wire interface, wherein the model of the voltage conversion chip is HT7533, a first pin of the voltage conversion chip is grounded, a second pin of the voltage conversion chip is electrically connected with an RS422 bus interface power supply, a second pin is electrically connected with a capacitor C2 and then grounded, a third pin of the voltage conversion chip is used for providing a power supply output end and providing working voltage for the single chip microcomputer, a third pin is electrically connected with a capacitor C3 and then grounded, the power supply circuit is provided with a power indicator lamp, and the power indicator lamp is electrically connected with a second pin of the voltage conversion chip and then grounded.
3. The multi-path steering engine network controller according to claim 1, wherein: the single chip microcomputer is provided with a crystal oscillator circuit, the crystal oscillator circuit is electrically connected with a forty-seventh pin and a forty-eighth pin of the single chip microcomputer, and the type of the single chip microcomputer is C8051F 340.
4. The multi-path steering engine network controller according to claim 1, wherein: the expansion circuit comprises a 74HC595 chip and a steering engine interface circuit, wherein first pins to seventh pins and fifteenth pins of the 74HC595 chip are respectively and electrically connected with first pins of eight steering engine interfaces of the steering engine interface circuit, eighth pins of the 74HC595 chip are grounded, tenth pins and sixteenth pins of the 74HC595 chip acquire a power supply through RS422 interfaces, eleventh pins to fourteenth pins of the 74HC595 chip are sequentially and electrically connected with thirty-sixth pins to thirty-third pins of the single chip microcomputer, the steering engine interface circuit further comprises five steering engine interfaces, the first pins of the five steering engine interfaces are sequentially and electrically connected with forty-fourth pins to forty-fourth pins of the single chip microcomputer, and the first pins of the five steering engine interfaces are simultaneously and electrically connected with a resistor and then are connected with the steering engine power supply.
5. The multi-path steering engine network controller according to claim 1, wherein: the RS422 bus circuit comprises a MAX3491 chip and a 14-pin RS422 serial bus interface, a second pin of the MAX3491 chip is electrically connected with a resistor R2 and then electrically connected with a twentieth pin of the singlechip, a fourth pin is electrically connected with a thirty-ninth pin of the singlechip, a fifth pin is electrically connected with a resistor R1 and then electrically connected with a thirty-eighth pin of the singlechip, the first pin, the sixth pin and the seventh pin are all grounded, a fourteenth pin is electrically connected with a capacitor C1 and a capacitor C2 which are connected in parallel and then grounded, the fourteenth pin is simultaneously electrically connected with an output end of the power circuit, a twelfth pin is electrically connected with a resistor R3 and then electrically connected with an output end of the power circuit, a twelfth pin is electrically connected with a resistor R6 and then electrically connected with an eleventh pin, an eleventh pin is simultaneously electrically connected with a resistor R4 and then grounded, a ninth pin is electrically connected with a resistor R8 and then electrically connected with an output end of the power circuit, and simultaneously a ninth pin is electrically connected with a resistor R7 and then connected with a tenth pin, the tenth pin is also electrically connected to resistor R9 and then to ground.
6. The multi-path steering engine network controller according to claim 1, wherein: the CAN bus interface circuit comprises an MCPL2510 chip, a PCA82C250T chip and a crystal oscillator circuit, the first pin of the MCP2510 chip is electrically connected with the first pin of the PCA82C250T chip, the second pin of the MCP2510 chip is electrically connected with the second pin of the PCA82C250T chip, the two joints of the crystal oscillator circuit are respectively and electrically connected with a seventh pin and an eighth pin of an MCP2510 chip, a ninth pin of the MCP2510 chip is grounded, a twelfth pin to a sixteenth pin are sequentially and electrically connected with a sixth pin to a second pin of the single chip microcomputer, a seventeenth pin is electrically connected with a capacitor and then grounded, the seventeenth pin is simultaneously and electrically connected with a resistor R15 and then connected with a power supply of an RS422 bus circuit interface, an eighteenth pin is connected with the power supply of the RS422 bus circuit interface, the second pin of the PCA82C250T chip is electrically connected to the capacitor C11 and then to the third pin, meanwhile, the second pin is grounded, the third pin is connected with a power supply of the RS422 bus circuit interface, and the eighth pin is grounded after being electrically connected with a resistor R16.
7. The multi-path steering engine network controller according to claim 1, wherein: the storage circuit comprises an AT24C01 chip, a first pin, a second pin, a third pin and a fourth pin of the AT24C01 chip are all grounded, a fifth pin is electrically connected with a forty-sixth pin of the single chip microcomputer, the fifth pin is electrically connected with a resistor R17 and then connected with a power supply of the RS422 bus circuit interface AT the same time, the sixth pin is electrically connected with the forty-fifth pin of the single chip microcomputer, the sixth pin is electrically connected with a resistor R18 and then connected with the power supply of the RS422 bus circuit interface AT the same time, a seventh pin is grounded, an eighth pin is connected with the power supply of the RS422 bus circuit interface, and the eighth pin is electrically connected with a capacitor C11 and then grounded AT the same time.
8. The multi-path steering engine network controller according to claim 1, wherein: the emulation reset circuit includes reset circuit and emulation circuit, reset circuit has two connectors, and resistance R11's connector is connected with the thirteenth pin electricity of singlechip, and resistance R12's connector is connected with the power supply circuit output electricity, the emulation circuit includes the JTAG interface of ten needles, the first pin of JTAG is connected with power supply circuit's output, and second pin, third pin, ninth pin are all ground connection, and fourth pin electricity is connected after resistance R14 and is connected with the sixth pin electricity, and the fifth pin electricity is connected between reset circuit resistance R11 and electric capacity C8, and the seventh pin is connected with the thirteenth pin electricity of singlechip.
9. The multi-path steering engine network controller according to claim 1, wherein: alarm indication circuit includes work indicating circuit and warning circuit, warning circuit includes the LED pilot lamp, LED pilot lamp one end electricity connecting resistance R12 back is connected with the twenty-fourth pin electricity of singlechip, and the other end is connected with power supply circuit output port electricity, warning circuit includes triode Q1, is connected with the twenty-third pin electricity of singlechip behind the base electricity connecting resistance R13 of triode Q1, and triode Q1's collecting electrode is connected with the buzzer electricity, and buzzer, triode Q1's projecting pole ground connection are connected to power supply circuit's output electricity.
10. The multi-path steering engine network controller according to claim 1, wherein: the single chip microcomputer controls a steering engine connected with a PCA module arranged on the single chip microcomputer through a serial port communication protocol, and the single chip microcomputer controls the steering engine connected with a steering engine interface expanded out by a 74HC595 chip through the serial port communication protocol.
CN202023282603.5U 2020-12-30 2020-12-30 Multi-path steering engine network controller Active CN214067633U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202023282603.5U CN214067633U (en) 2020-12-30 2020-12-30 Multi-path steering engine network controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202023282603.5U CN214067633U (en) 2020-12-30 2020-12-30 Multi-path steering engine network controller

Publications (1)

Publication Number Publication Date
CN214067633U true CN214067633U (en) 2021-08-27

Family

ID=77369206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202023282603.5U Active CN214067633U (en) 2020-12-30 2020-12-30 Multi-path steering engine network controller

Country Status (1)

Country Link
CN (1) CN214067633U (en)

Similar Documents

Publication Publication Date Title
CN109189714B (en) Arria10 FPGA-based signal processing system with double processing nodes
CN106713094B (en) 1394 data acquisition module
CN201259629Y (en) Configurable I/O module for multiple bus interface
CN214067633U (en) Multi-path steering engine network controller
CN208888626U (en) A kind of automatic Pilot computing system
CN104678809A (en) Universal sensor control equipment and system
CN208477523U (en) A kind of arithmetic system and corresponding electronic equipment
CN206023642U (en) Servo-driver control circuit
CN113467506B (en) Domestic flight controller based on core board design and design method
CN211880165U (en) Integrated controller for small-sized cabled underwater robot
CN106959649B (en) Distributed monitoring system based on double DSPs
CN214623371U (en) Vehicle-mounted Ethernet interface conversion device
CN210867732U (en) SPI changes ethernet interface circuit and frequency conversion controller
CN204423022U (en) Can general purpose transducer opertaing device and system
CN110032107B (en) Logic system and control method for controlling on-off of 4 paths of signals by using 3 relays
CN114238197A (en) Method for building airplane instrument of QNX system based on vehicle gauge chip
CN109582621B (en) Expansion system and method for peripheral interface of servo driver
CN210605410U (en) Control device of omnidirectional movement chassis based on Mecanum wheels
CN208984654U (en) A kind of speed probe polymorphic type signal output apparatus
CN211378040U (en) MODBUS network card
CN210983393U (en) System for realizing self management of functional module through single-wire protocol
CN220511001U (en) Motor driving system
CN213069799U (en) Data processing control board card
CN218634133U (en) Ethernet communication conversion equipment
CN202281940U (en) PLC multifunctional memory module utilizing mode setting switch to perform control

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant