Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

Publisher:古宝奇缘Latest update time:2023-10-08 Source: elecfansKeywords:AT89C2051 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.

Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

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.

Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

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:

Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

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.


Keywords:AT89C2051 Reference address:Design of automatic spinning yarn breakage detection system based on AT89C2051 microcontroller

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

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号