Method to control sixteen step motors along usb-channel in quasisimultaneous manner

FIELD: information technologies.

SUBSTANCE: in the method for quasisimultaneous control of sixteen step motors from a computer software it is proposed to use a decoder connected to a microcontroller to select one of step motors, directly controlled by a digital code arriving from microcontroller's memory into added D-triggers, outputs of which are connected to motor amplifiers.

EFFECT: it is possible to control sixteen step motors in a quasisimultaneous manner from a PC along a USB bus.

10 dwg, 1 tbl

 

The invention relates to methods for the control of stepper motors via a USB channel using a microcontroller with a USB interface.

Known way to control a stepper motor via USB (Universal Serial Bus - universal serial bus personal computer) [1], which consists in that the control program is developed on a high-level programming language Pascal for a personal computer, is able to write data to the serial port [2]. A personal computer (PC) the program generates a data packet that contains information about the rotation direction and number of steps of the rotor of the stepper motor. The generated data packet is written to the serial port and sends the port driver for the USB channel to the microcontroller (MC) [3], where data is processed and converted into control signals in the form of binary code supplied to the stepper motor driver. The driver performs digital to analog conversion, gain control signals and protecting the microcontroller from the self-induction of the windings.

The disadvantages of the method include a limit on the number of connected motors, determined by the bitness of the microcontroller, as well as the ability to simultaneously manage only one stepper motor, due to universalnosti administering device� program.

The object of the invention is to provide a method kvaziodnorodnoj management sixteen stepper motors from a PC via USB using a microcontroller.

To solve the problem of the invention it is proposed to use a new format of a data packet that is sent via USB from PC to the microcontroller; a decoder (integrated circuit (IC) type CRID) to determine the addresses of stepper motors; D-flip-flops (IC type CTM) for storage and distribution of binary code that defines the direction of rotation of the rotors of the stepping motors [4].

The modified data packet generated by the PC that has the following format: [address stepper motor] [direction of rotation][number of steps]. Address stepper motors are designated by the letters of the English alphabet, example values are shown in Fig.2. Every new batch of data is written Delphi function WriteFile to the serial port opened by Delphi function CreateFile [5]. Data packets are written into corresponding addresses of stepper motors of the memory cell MC, forming an array of information to control the stepper motors.

Software MK uses two arrays of data. The first array, which is formed in the RAM MK at its initialization (startup) MK, consists of 16 rows by 9 columns in each row, corresponding to the number of stepper motor, stores information about the number of steps in decimal form calculus (format: [number] [number]), the direction of rotation of the rotor of the stepping motor (format: [R] or [L]), the address of the engine in binary code (format: [number] [number] [number] [number]), the execution flag indicating the execution or non execution of steps in binary code (format: [number] (0 if all the steps executed by the engine)) and line number of the second array in decimal form calculus (format: [number]). An example is shown in Fig.3.

The second array contains four standard combinations of binary code to rotate the rotors of the stepping motors [6]. An example is shown in Fig.4.

The microcontroller generates the connected to the decoder outputs, four-digit binary combination corresponding to a certain D-trigger signals and enable/disable the permission of the decryption is fed to the inputs of the IC CRED (decoding enabled when the supply voltage low level). Decoder on one of the sixteen outputs connected to the D-triggers, generates a differential signal on the sync input (input To D-flip-flop) IC KTM initializes (starts) recording in memory of the D-flip-flop four-digit binary code received from the MC via the data bus and control a stepper motor.

�igaly with the information outputs of the D flip-flops are control for stepper motors and fed to the respective amplifiers.

The essence of the proposed method lies in the fact that in contrast to the known method of controlling a stepper motor via USB using a microcontroller [Fig.1], data packets coming from the personal computer to the microcontroller, input an address to be added to the decoded decoder circuit that selects one of the sixteen stepper motors, directly controlled digital code coming from the microcontroller in added D-flip-flops whose outputs are connected with the amplifiers engines [Fig.5] [Fig.6].

Rabotospobnost proposed method is tested in the system simulation of electrical processes Multisim 8, where he built a control scheme sixteen stepper motors through a microcontroller [Fig.7, Fig.8, Fig.9, Fig.10]. When modeling real-time microcontroller DD1 was generated four-digit code that was supplied to the decoder DC1, and the signals on/off resolution decoding. A decoder to generate a signal selecting the corresponding D-flip-flop (T-T). Kvaziodnorodnoj microcontroller generated four-digit code corresponding to the direction of rotation of the rotor of the stepping motor, which via the data bus BUS1 was applied to all D-flip-flops, but was recorded only at the address which was determined by the decoder. For display output� signals to D-triggers connected LEDs.

The advantage of the developed method is the ability to control sixteen stepper motors via a USB channel kvaziodnorodnoj. The simulation proved the physical ability to control sixteen stepper motors kvaziodnorodnoj.

SOURCES of INFORMATION

1. http://pic.rkniga.ru/shemotehnika/kompyuter/240-upravlenie-shagovym-dvigatelem-cherez-usb.html

2. M. Sukharev. Golden Book DELPHI. With updates to the 2010 version. - SPb.: Science and Technology, 2010. - 1040 p.

3. Egorov P. V. USB programming Practice. - SPb.: BHV-Petersburg, 2006. - 624 p.

4. Shyla V. L. Popular digital circuits: the manual. 2-e Izd., Rev. - Chelyabinsk: metallurgy, Chelyabinsk DEP., 1989. 352 p.

5. Kuzan D. J., Saparov V. N. Wim32 API in Delphi. - SPb.: BHV-Petersburg, 2005. - 368 p.

6. Prokopenko V. S. Programming of ATMEL microcontrollers in C. - K.: "MK-News", SPb.: "KORONA-VEK, 2012. - 320 p.

A method of controlling a stepper motor via USB (Universal Serial Bus - universal serial bus personal computer) is that a program developed on a high-level programming language Pascal on a personal computer generates a data packet that contains information about the rotation direction and number of steps of the rotor of the stepping motor, which is recorded in the virtual serial port and its driver then sends the packet given�'s on the USB channel to the microcontroller, where it is processed to generate control signals in the form of binary code coming in stepper motor driver for digital to analog conversion, amplification and protection of the microcontroller from the self-induction of the windings,
is characterized in that the data packet generated by the application on a personal computer consists of three parts, the first of which specifies the address of stepper motors and is denoted by the characters of the English alphabet, the second part determines the direction of rotation of the rotors and consists of a single symbol R-right or L-left, and the third part defines the number of steps and denoted by a number in the decimal system, then the data packet is sent over the USB channel to the microcontroller, four digital outputs, which are allocated for recording addresses of stepper motors connected to the decoder, performing the decoding of the address and kvaziodnorodnoj produce selectrows signals in the form of a differential signal levels to enable the entry in D-triggers four-digit information arriving via the shared data bus D-trigger from the microcontroller and indicates the direction of rotation of the rotor, with subsequent preservation in the D-trigger and entering the inputs of the drivers, where it is d / a conversion, amplification and output to stepper motors, which allows kVA�odnovremenno management sixteen stepper motors.



 

Same patents:

FIELD: physics, computer engineering.

SUBSTANCE: invention relates to techniques for controlling display devices. Disclosed is a display device, which comprises a display unit which outputs a plurality of content representations using a plurality of image frames, and a remote control signal receiver which receives a control command from a remote control device for controlling a first content representation from the plurality of content representations. The device also comprises a controller which, if the received control command has no effect on another content representation from the plurality of content representations, performs a control operation according to the received control command, and if the received control command affects another content representation from the plurality of content representations, performs control to output a message notifying on the received control command to the other content representation.

EFFECT: facilitating management of content viewed by multiple users using one remote control device.

15 cl, 25 dwg

FIELD: measurement equipment.

SUBSTANCE: group of inventions relates to the field of leak detection. The leak detection module is proposed, which comprises: multiple wires, comprising one or more collector points; a capacitor for supply of the module with energy in de-energised condition; multiple switches; a processor made as capable of detection of the condition start with disconnected power supply and initiation and control of the specified sequence of switching for the specified multitude of switches during the de-energised condition; and a group of registers made as capable to preserve data of leak detection collected in one or more collector points in process of the specified sequence of switching.

EFFECT: development of leak detection facilities using four-wire cables.

24 cl, 4 dwg

FIELD: oil and gas industry.

SUBSTANCE: group of inventions relates to control of oil production. The invention suggests oil production data support and control method in real time and automated system for its implementation, which contains n actuating mechanisms, n data processing and converting devices corresponding to each actuating mechanism, self-contained control unit, data visualisation unit, mobile communication unit and self-contained data acquisition and storage unit.

EFFECT: development of reliable oil production data support and control method in real time and automated system for its implementation, which ensures continuous monitoring with receipt of true information in real time at any set instant of time with potential timely detection of deviations from the preset operation modes of any actuating mechanism out of n actuating mechanisms coupled to the claimed automated system as well as potential selection of optimal operating modes for actuating mechanisms both at the site of their location and location of data processing and converting devices as well as at any geographic point where mobile communications are ensured for devices, which may be coupled according to the claimed invention as mobile communication units, data visualisation units, and potential control of actuating mechanisms operation.

3 cl, 1 dwg

FIELD: physics; control.

SUBSTANCE: invention relates to telemechanics and automated systems for measuring, monitoring, adjusting, diagnosing and controlling remote objects, and specifically to systems for corrosion monitoring of electrochemical protection of gas pipelines, particularly cathodic protection units. The telemechanical system for monitoring and controlling cathodic protection units of gas pipelines comprises cathodic protection units, a control station with an automated workstation for a controller and a communication channel between cathodic protection stations and the control station. The communication channel is set up by connecting an overhead power line to high-frequency chokes and coupling capacitors, connected to coupling filters which are provided with grounding blades and are connected to high-frequency communication units, one of which is installed at the control station and is linked to the automated workstation of the controller, and the other are installed in the cathodic protection units and are linked to monitoring and control units; furthermore, each anode grounding connection and each pipeline drainage point is connected to a measuring transducer which is linked to the monitoring and control unit.

EFFECT: high reliability of cathodic protection units of gas pipelines.

2 dwg

FIELD: physics, control.

SUBSTANCE: invention relates to automatics and may be used in development of control systems of aviation objects, items of rocket-space engineering and robotic complexes operating under extreme conditions (wide range of temperature variation from -60 to +125°C, mechanical impact in the form of strikes and wideband vibration) in ionising radiation fields. The proposed system comprises actuating elements of a control object, an angular speed sensor, an acceleration sensor, an information collection unit, satellite navigation equipment, an inertial navigation subsystem, control computing devices, a sensor of external impact, a blocking signal generator, a memory with authorized access and actuating elements, a power supply subsystem, an image processing subsystem, a control unit and an optical correction subsystem.

EFFECT: improved efficiency of control system operation, namely, preservation of operability in case of any single failure in system equipment, and also preservation of functioning and accuracy of control in case of parametric changes in components caused by ageing, change of environmental temperature and dose factors of ionising radiation.

24 cl, 24 dwg

FIELD: instrumentation.

SUBSTANCE: proposed system comprises intake-and-discharge sealed station equipped with two-way controlled orifice valve arranged at vessel bottom. It includes device for vacuum feed of samples to measuring device. Said device consists of interconnected intake commutator, flow measuring cell connected to vacuum-pressure control system of said intake-and-discharge vessel. Note here that measuring cell comprises bottom inlet-outlet of fluids and is located at top point of sample feed line to rule out the ingress of said products into the meter at breakage of the film and covered by protection film from above. Besides, this system comprises control, indication and data transfer unit including pneumoelectric and electric devices equipped with programmable logical controller and digital processing program. Note here that it incorporates extra intake-and-discharge station coupled with the first one to make the pump. Said intake-and-discharge stations are identical and consist of two-way orifice valves while top covers accommodate sample level pickups and vacuum and pressure feed valves. Union to feed material at rarefaction of two-way orifice valves of both stations are interconnected via T-bend and flexible hose and connected with top union of flow measuring cell while union to feed material under pressure are interconnected by T-bend with flexible hose to drain measured sample portion in accumulation tank. Accumulation tank comprises union at its top part to receive sample from primary sampling system, measured sample return line, air separator and flushing water feed valve. Its bottom comprises T-bend connected with controlled drain valve and flexible hose for connection with measuring cell bottom union. Note here that air separator is composed of diffuser provided with conical splitter.

EFFECT: higher accuracy of measurements, continuous sample mixing, sample feed at rarefaction.

1 dwg

FIELD: physics; control.

SUBSTANCE: invention relates to a system of situation-analytical centres of an organisational system. The system comprises a telecommunication network, a control centre, situation-analytical centres, control points of departments of the organisational system, two-way communication means, means of monitoring surveillance objects, which affect the state of operations of the organisational system, and enables automated generation of scenarios using computer systems of the control centre, situation-analytical centres and control points of departments of the organisational system, storage of data on the scenarios in a system for storing data for auditing operations of the organisational system, which is part of the control centre, transmission of data on the scenarios via equipment interfaces of the control centre, situation-analytical centres, control points of departments of the organisational system and over the telecommunication network to computer networks of the control centre, situation-analytical centres and control points of departments of the organisational system, to video systems and a computer for setting up the video system of the control centre and situation-analytical centres, to multimedia screens of the control centre, situation-analytical centres and control points of departments of the organisational system to make decisions based on the generated scenarios.

EFFECT: high efficiency of the decision-making process owing to automated generation of scenarios for solving problem situations.

21 cl, 1 tbl, 30 dwg

FIELD: physics; control.

SUBSTANCE: invention relates to a method of supporting operation of an organisational system. The method comprises steps of forming blocks of standardised data on the state of support objects and operation of the organisational system, critical and allowable performance indicators of the organisational system, control commands for setting support objects into standardised or allowable states depending on the actual situation, setting support objects into standardised states, determining the actual states of support objects, evaluating the actual performance of the organisational system, determining blocks of data on the control commands required in the actual situation, optionally setting the support objects into standardised or allowable states based on the effect thereof on the types of operation in subdivisions of the organisational system and operation of the organisational system as a whole.

EFFECT: high efficiency of controlling information support of operation of an organisational system through automated evaluation of performance indicators of the organisational system and automatic control of support objects of the organisational system based on said evaluation.

24 cl, 50 dwg

FIELD: electricity.

SUBSTANCE: invention relates to the field of electrical engineering and may be used in electric power systems. Smart electric power system intended for improvement of control for utility system includes sensors at different sections of the above utility system with use of data transfer technologies and computer technology such as auxiliary bus structures in order to modernise the electric power system so that it operates effectively and reliably and to support additional services for consumers. The smart electric power system can include a smart distributing device in the utility system (separate from the control centre smart tools) that consists of units generating data at different sections of the electric power system, analyse generated data and modify operation of the respective section automatically.

EFFECT: improved control of the power supply networks.

46 cl, 37 dwg

FIELD: instrument making.

SUBSTANCE: fuzzy adaptive position method of automatic control of objects with discrete executive devices is proposed, which is realised by means of a logic controller and consists in generation of control parameters according to fuzzy rules and feeding these control parameters to an object. Control parameters generation is divided into two levels, at the first of which with the help of fuzzy logic they localise (identify) the control range, where further adaptation will be carried out. Localisation of the control range is carried out by definition of the main (base) value of the control parameter of this range according to the formula: Uad1=Uo(1-β)+Ukβ, where Uad1 - adaptable control parameter, Uo and Uk - control parameters in two extreme (opposite) conditions B of the object, β - normalised equivalent of object condition (β=0 at Bo, β=1 at Bk, where Bo - initial condition of the object, Bk - final condition of the object), taken as the value of the parameter of the adaptive middle position at this range, and at the second level the value of the control parameter is defined with the help of the adaptive three-position control method.

EFFECT: simplicity of realisation, improved quality of control, higher reliability of functioning due to substantial reduction of number of rules and more efficient control.

2 cl, 5 dwg

FIELD: tire industry.

SUBSTANCE: proposed plant contains great number of working units operating successively. Plant is furnished with central processor made for setting successive execution of great number of operations at working stations. Each working station contains at least one unit of indicated working units according to one or several set sequences of tire types. Plant includes also local processor connected with each working station and made for determining type corresponding to drum found in each of said working units. Local processor provides selection of definite procedure from preset group of procedures for each of said working units designed for type of tire corresponding to drum to be used in operation. Invention reduces to minimum downtimes for changing type of tire to be manufactured and makes it possible to manufacture lots of tires of different types without changing equipment producing tire semifinished products.

EFFECT: provision of automatic manufacturing of different type tires.

9 cl, 3 dwg

FIELD: technology for controlling meteorological protection, possible use for actively influencing atmospheric processes to alter weather conditions.

SUBSTANCE: system for controlling meteorological protection of populated territories provides automated coordination of active point effects onto centers of micro-physical processes in atmosphere of protected populated territories in moments of their appearance, if locations of centers of these processes, fields of geo-potential and components of local data characterize processes as potentially dangerous.

EFFECT: increased level of meteorological protection of populated territories, provision of trustworthy advance notifications to population concerning insurmountable and potentially dangerous catastrophic atmospheric events, decreased costs of system installation and of system operation maintenance.

3 cl, 1 dwg

FIELD: technology for testing and controlling systems or elements thereof.

SUBSTANCE: spark-safe instrument for technical service in field conditions includes connectors, first and second elements for accessing data transfer environment, while first element for accessing data transfer network is made with possible communication in accordance to first industrial communication protocol standard, second element for accessing data transfer network is made with possible communication in accordance to second industrial communication protocol standard, processor, keyboard, display, and also either infrared port or replaceable memory block, or memory extension block. Invention includes diagnostic methods, realized by spark-safe instrument for technical service purposes in field conditions.

EFFECT: simplified display of diagnostic information.

11 cl, 7 dwg

FIELD: antitrouble control of electrical equipment and control of power flows in electric power supply networks.

SUBSTANCE: the station of automated control of electric power supply network has an automated controller's position composed of the central processor module, main and two auxiliary monitors, graphic manipulator, keyboard, printer, information processing unit, collective use panel, navigation receiver and a control unit, switchboard unit, communication panel, switchboard, VHF radio set with a receiver, feeder and an antenna, HF radio set with an antenna, information exchange device, data transmission equipment, operational communication equipment, power input unit with two AC external network channels connected to it, long-range communication adapter, lines input unit, long-range communication channels, connecting lines, customers service communication lines, automated manager's position comprising a central processor module, main and auxiliary monitors, graphic manipulator, keyboard, information processing unit, laser range finder and a control unit, as well as remote automated operator's positions.

EFFECT: enhanced efficiency of functioning and provided trouble-free operation of the electric power supply network.

4 cl, 4 dwg

FIELD: computer engineering.

SUBSTANCE: recharge unit emits infrared light from infrared unit in response to recharge request signal received from robot via wireless transceiver, and sends infrared radiation signal in accordance with infrared light radiation. The self-propelled robot communicates with the recharge unit using various data and sends recharge request signal to the recharge unit when accumulator charge level drops below a threshold level and moves back towards the recharge unit using image data input from camera unit as response to infrared radiation signal sent by the recharge unit. The robot has microprocessor for controlling robot movements for providing return to the recharge unit by processing data of infrared light position on picture introduced from camera unit when detecting infrared light presence in the picture.

EFFECT: accelerated return to recharge unit.

16, cl, 2 dwg

FIELD: electronics; computer technology.

SUBSTANCE: method is based upon following steps: reading calibration data out for calibration of industrial equipment in relation to half-finished products to be processed and reading data out on preset maximal number of items to be processed from external data carrier, delivered together with half-finished products; calibration of industrial equipment in correspondence with calibration data of half-finished products delivered; programming of industrial equipment for maximal admitted number of items while using the best possible calibration; comparison of number of items, produced beginning from authorized initial moment of time (real number), with maximal number of items and deliverance of message on maximal number is suppressed by real number.

EFFECT: elimination of processing of items being non-authorized for production.

20 cl, 2 dwg

FIELD: control of unmanned flying vehicles.

SUBSTANCE: proposed method includes delivery of control signal from panel for deviation of flying vehicle altitude controls in accordance with preset trajectory of flight, in-flight measurement, calculation of present vertical component of flying vehicle speed and sign of its change in accordance with measurement, comparison of actual measured altitude with preset magnitude; in case actual altitude is lesser than preset magnitude, control signal is corrected for compensation of deviation of altitude from preset magnitude with the aid of feedback signal of actual magnitude of altitude and present magnitude of vertical component of speed. Device proposed for realization of this method is provided with altitude sensor and microprocessor forming the correction signal for control signal.

EFFECT: avoidance of dangerous approach to earth surface.

8 cl, 2 dwg

FIELD: mechanical engineering.

SUBSTANCE: invention refers to the field of automatic control systems for testing machines and benches for endurance tests of mechanical structures. To solve defined task for each subgroup of local extrema (maxima and minima) including homonymous extrema of the same value, own accumulators of differences are used which provide correction of extrema for program control signal for each subgroup. Differences for each subgroup are accumulated until difference between feedback signal extremum and corresponding program signal extremum becomes equal to zero. To calculate true corrections correcting control signal extrema, the device has additionally included elements determining moments for calculating mentioned corrections and regulating order of information transmission between separate units of device. Such elements include service signals delays, service signal pulse width shapers, switches, registers containing updated from section to section of program information about extremum numbers and their ordinates, and memories successively storing after interpolation all intermediate points about currently generated program sections. To maintain constancy of average load rate, the device uses summing unit computing program section span, registers for temporary storing of this information and dividers dividing reference frequency depending on program section span value in such a way that constant average speed of each program section generation is provided independently from its span value change.

EFFECT: improvement of accuracy of loading for tested structures in the points of local extrema of testing program resulting in improvement of accuracy of products life time determination, as well as maintaining constant average loading rate for tested structures.

4 dwg

FIELD: mechanical engineering.

SUBSTANCE: invention refers to the field of automatic control systems for testing machines and benches for endurance tests of mechanical structures. It is achieved by means of the following: control signals at servo drive input are formed via setting extrema of program function, intermediate function values between extrema are interpolated, differences between actual load in local extrema and their program values are measured for each subgroup of the same local extrema. These differences are accumulated in several storages the number of which is equal to number of subgroups. Control signal extrema coming to servo drive are formed as sums of accumulated differences for each subgroup of local extrema and corresponding local extrema of the program. Span of each program section and arrival rate of all intermediate interpolated function values of this section to servo drive input is determined. It is determined as result of reference frequency division by the value proportional to section span.

EFFECT: lowering the loading error in extremum points of program to 0,1% and possibility to select optimal loading rate fro program sections with random span value.

4 dwg

FIELD: mechanical engineering.

SUBSTANCE: invention refers to the field of automatic control systems for testing machines and benches for endurance tests of mechanical structures. To solve defined task for each subgroup of local extrema (maxima and minima) including homonymous extrema of the same value, own accumulators of differences are used which provide correction of extrema for program control signal for each subgroup. Differences for each subgroup are accumulated until difference between load sensor signal extremum and corresponding program signal extremum becomes equal to zero. To calculate true corrections correcting control signal extrema, the device has additionally included elements determining moments for calculating mentioned corrections and regulating order of information transmission between separate units of device. These elements include service signals delays, shapers of service signals pulse width, switches, registers containing updated from section to section of program information about extremum numbers and their ordinates, To maintain constancy of average load rate, the device uses comparator computing program section span and frequency divider dividing reference frequency depending on program section span value in such a way that constant average speed of each program section generation is provided independently from its span value change.

EFFECT: improvement of accuracy of loading for tested structures in the points of local extrema of testing program resulting in improvement of accuracy of products life time determination, as well as maintaining constant average loading rate for tested structures.

4 dwg

Up!