introduction
During the winding process of the spinning machine, it is very important to determine whether the thin thread is broken. Therefore, the spinning breakage detection device is a product that emerged based on actual needs. It can detect and monitor the spinning process. This article designs a multifunctional spinning yarn breakage detection and control device based on actual needs, which can automatically detect yarn breakage, and when the yarn is broken, stop the motor rotation and issue an alarm to remind the staff to facilitate troubleshooting. This device can bring unlimited convenience to the spinners, eliminating the trouble of the spinners constantly observing the yarn status, greatly reducing the labor intensity for the spinners, and at the same time improving the quality of the products, and also providing benefits to the merchants. Bring greater value. At the same time, the device can not only be used in spinning machines, but also in certain manufacturers that produce similar yarns.
1 System functions
Based on the functional requirements of the spinning thread breakage detection device, the circuit of the spinning thread breakage detection and control device mainly consists of the minimum microcontroller system with AT89C2051 as the core, the thread breakage detection module, the LED work indicator module, the spinning machine control module, and the power supply system. etc. circuit composition. Its specific working conditions are as follows:
(1) After powering on, the working LED indicator light will be on. When the button is pressed, the LED indicator light will go off and the spinning machine will start working.
(2) After the spinning machine has been working for 5 seconds, if there is an abnormality in the yarn, the LED work indicator light starts to flash, and the spinning machine is controlled to stop working.
(3) When the yarn works abnormally, the staff will perform yarn maintenance at this time. When the maintenance is completed, the staff can press the button and the work indicator light will stop flashing and turn on, indicating that the yarn is normal and the spinning machine can continue working.
Perform the above steps in sequence.
2 System hardware circuit and principle
The device is planned to be implemented using a circuit with AT89C2051 microcontroller as the core, which is mainly composed of AT89C2051 microcontroller, clock circuit, reset circuit, disconnection detection module, LED indicator light display module, spinning machine control module, power supply system and other circuits. The circuit is shown in Figure 1.
2.1 Minimum microcontroller system
It is mainly composed of AT89C2051 microcontroller, reset circuit and clock circuit. Among them, AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcontroller produced by Atmel Company in the United States. It contains 2 KB of rewritable read-only program memory and 128 B of random data memory. The device adopts Atmel's high-density, non-volatile microcontroller. Produced by volatile storage technology, compatible with the standard MCS?51 instruction system, with a built-in general-purpose 8-bit central processor and FLASH memory unit, the AT89C2051 microcontroller is widely used in electronic products. The clock circuit is composed of the clock terminals of pins 4 and 5 of AT89C2051 (XTAL1 and XTAL2), crystal oscillator X1, capacitors C1 and C2, and adopts on-chip oscillation mode. The reset circuit adopts a simple power-on reset circuit, which is mainly composed of resistor R1 and capacitor C3, which are respectively connected to the RST reset input terminal of AT89C2051.
2.2 Disconnection detection module
It consists of a yarn sensor and a photoelectric coupler, used to detect whether the yarn is broken. The yarn sensor uses the principle of electromagnetic induction. It has a simple structure, is easy to operate, has a wide range of applications, is not affected by environmental humidity and yarn thickness, has low power consumption and stable performance. It is widely used in the non-destructive detection of yarn breakage in the textile industry.
The wire sensor has three color pins: white, brown and green, which are signal output, 24 V DC and 0 V respectively. When there is wire passing through the wire groove, the output is 24 V DC; when there is no wire passing through the wire groove When the yarn passes, the output is 0 V. Therefore, according to the disconnection detection circuit, it can be found that under normal circumstances, the P3.2 pin of the microcontroller receives a high level. When the yarn is abnormal, the P3.2 pin of the microcontroller receives a low level. .
2.3 Command module
It is mainly realized by buttons and is mainly used to control the operation and stop of the spinning machine.
2.4 LED indicator display and control module
It is mainly composed of LED light-emitting diode, resistor R4 and relay for controlling the machine. During normal operation, the LED light is off; if a spinning break is detected, on the one hand, the relay must be triggered immediately to stop the spinning machine, and on the other hand, the LED light must be controlled to flash to remind workers to deal with it.
3 System software design
3.1 Software design ideas
The system's software design uses C language, which can greatly improve the efficiency of program writing. The key to software implementation is spinning yarn breakage detection. Spinning yarn breakage detection is realized through the external interrupt of the microcontroller. Since the P3.2 pin of the microcontroller receives a low level when spinning yarn breaks, the low level triggering method of external interrupt 0 can be used to achieve this. Therefore, when a spinning break occurs, the interrupt service routine of external interrupt 0 is entered to set the spinning break flag. The functions implemented by the software include button functions, relay control functions, and LED display functions. The main program flow chart is shown in Figure 2.
The system initialization mainly includes the initialization of timer 0 and external interrupt 0 interrupts. The spinning disconnection flag is mainly implemented by the interrupt service function of external interrupt 0 and timer 0. Among them, the timing, 0 interrupt service function is used to start external interrupt 0 after 5 seconds timing, and the interrupt service function of external interrupt 0 is used to set the spinning break flag and turn off external interrupt 0.
3.2 Program code
Due to space limitations, part of the program code is given below:
4 Conclusion
This device can detect yarn breakage in time, control the action of the relay to stop the motor, thereby stopping the spinning machine, and alert the staff through the flashing LED light, which improves the intelligence of spinning yarn breakage detection.
Previous article:How to design a thermostatic box temperature control system based on STC89C52 microcontroller
Next article:Design of intelligent electronic heat scale using STC89C52 microcontroller
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- STM32MP157A-DK1 Evaluation + SPI Device
- How to define a const structure variable
- [Silicon Labs BG22-EK4108A Bluetooth Development Review] Received the fastest, unboxing
- Introduction to three interrupt debugging methods of ARM
- Ask a superconductivity question
- CC2640R2F Single Carrier Code
- Essential PCB wiring rules for electronic hardware engineers: basic theories of right-angle routing, differential routing, and serpentine routing
- 【EETALK】What is the difference between traditional Bluetooth and low-power Bluetooth? Will traditional Bluetooth be replaced by low-power Bluetooth in the future?
- Design of multi-parameter water quality monitoring system based on Internet of Things
- How to select PCB isolated power supply