Design of a Lumbar Traction Apparatus Based on AT89C51

Publisher:快乐舞蹈Latest update time:2011-05-17 Keywords:AT89C51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

In medicine, for lumbar diseases such as lumbar disc herniation, physical traction is usually used as a conservative treatment method. Portable and adjustable traction devices can be operated by patients themselves. They are simple and easy to use, suitable for small and medium-sized hospitals and more suitable for long-term rehabilitation at home. The existing portable and adjustable traction devices produced domestically include manual bracket traction and mechanical traction. These traction devices are manually controlled and monitored. The operation is laborious and cannot last for a long time. It is not intuitive. The adjustment is difficult. The traction force generated by the traction device is difficult to maintain accurately. There is no automatic monitoring device, which brings many inconveniences to patients and medical staff. This requires the use of an electromechanical physiotherapy automation system. For this reason, this paper designs a new type of lumbar traction device. It uses the AT89C5l single-chip microcomputer as the microprocessor, cooperates with other auxiliary circuits and is tractioned by a DC motor. Thereby achieving physical therapy for lumbar spine disease. Its single-chip microcomputer control system can ensure the accurate quantification of traction treatment actions, and the traction force and traction time required for traction treatment can be adjusted. It can be precisely controlled and displayed in real time, and the entire traction process is completed automatically.

2 Hardware Implementation of Lumbar Traction Device

The main tasks of the instrument are: keyboard key detection, display of operation setting information and running status, detection and control of pulling force signals, relay control and drive of traction motor, etc. Traction force monitoring and control is the main research goal of this system and the fundamental guarantee of the stability and reliability of this system. According to the requirements of this system, AT89C51 single-chip microcomputer is used as the main control chip. A pulling load sensor is used to detect the traction force value.

2.1 Overall hardware design

Figure 1 shows the hardware composition of the lumbar traction instrument system. The system uses AT89C51 as the main control MCU, which mainly includes the traction force acquisition and detection unit circuit, the traction motor adjustment control circuit, the keyboard control and LED display unit circuit, the system power supply circuit, the alarm circuit and the traction device. The analog signal output by the tension sensor is processed by the signal conditioning circuit, sent to the AID converter to convert it into a digital quantity and then sent to the AT89C51. The single-chip microcomputer makes a judgment based on the traction force and traction time set by the user, generates the pulse signal required to drive the traction motor, and adjusts the control motor and traction device. As a result, the instrument is in three states when working: traction operation, traction holding and traction relaxation. And the monitoring and display of traction force and traction time are realized.

Figure 1 Overall block diagram of the tractor hardware circuit system

2.2 Partial Hardware Circuit Principle

The lumbar traction device uses the AT89C51 single-chip microcomputer as the system control unit, and uses its control capability to realize real-time detection of traction force and monitor the traction force through the LED digital display unit, and realize the drive control of the motor. The conventional unit circuits of the single-chip microcomputer system, such as keyboard design, external memory expansion, and the design and implementation of analog-to-digital conversion interface circuits, are introduced in detail in many example development materials and will not be introduced here. This article aims to use the single-chip microcomputer to realize the development idea of ​​the new application case of the lumbar traction device. The following mainly analyzes the design and implementation of the peripheral measurement and motor control interface circuit.

2.2.1 Principle of traction force collection and detection

The traction force acquisition detection uses a pull-type load sensor as the detection sensor, and the traction force value is obtained by amplification, AID converter conversion and sending to the single-chip microcomputer for counting. The traction device converts the tension on the sensor into a voltage value proportional to it. The strain resistance element of the sensor is shown in Figure 2. The initial resistance of the four strain gauges is equal, and differential cloth and full bridge wiring are used. Because when the sensor is subjected to force, the resistance change direction of the strain resistors Rl and R2 is the same, and the resistance change direction of R3 and R4 is the same. By using differential cloth and full bridge wiring. The voltage value converted by the force on the sensor can be accurately output. After the differential pressure output of the sensor is amplified by the amplifiers OP07 and TL062, the output is sent to the AID converter for data sampling and processing. OP07 is a low drift differential amplifier. We use it as the first stage of amplification. It can accurately amplify the input from the sensor as small as 10μV, and well suppress the interference of common-mode signals; for the second stage amplification, we use a dual-channel operational amplifier TL062, and use the first channel to form a voltage follower to reduce noise and buffer in this circuit. Therefore, the signal output by OP07 passes through this circuit and enters the second channel in a proportional and stable manner. The output of OP07 is amplified by the second channel, and the positive input of the second channel is connected according to Figure 3. By adjusting RW, the positive input of TL062 can be adjusted to set the output zero point, so that the output signal of the analog part is within the linear working range of the A/D converter.

Figure 2 Internal structure of the sensor

Figure 3 Traction force acquisition detection circuit

2.2.2 Principle of traction control

The control mechanism used in traction control is composed of a motor, a traction wheel, a ratchet relay, etc. It is a small electric traction system. Figure 4 shows the mechanism diagram of the electric traction part. We use the motor to drive the roller (called the traction wheel) to rotate through the transmission method. The rotation of the roller drives the traction belt wrapped around it to generate traction. In order to achieve the purpose of traction of the traction object. In the figure, the ratchet and the traction wheel are directly connected to the main shaft of the motor. Usually, in the electric traction system using the motor as the power for traction, the motor is controlled by a certain automatic control method. In this device, we also use a single-chip microcomputer and relay control method to realize the control of the motor. In order to maintain the traction force, the control system uses a ratchet relay to achieve it, that is, the ratchet relay is turned off, so that the ratchet cannot rotate. At this time, the pulling force output by the motor is in a maintained state. When the input set intermittent traction time is reached, the ratchet relay is turned on, the ratchet is loosened, the ratchet rotates freely, the traction motor is in a relaxed state, and the traction force is cancelled. When the input set intermittent relaxation time is reached, the ratchet relay is turned on and the motor is started to enter the traction operation state. The control circuit of the motor and relay is shown in Figure 5. The motor start and stop control signal comes from pin P1.3, and the relay on and off control signal comes from pin P1.6.

Figure 4: Electric traction mechanism diagram

3 Software Design

In this software design, the system control program consists of the main program, interrupt service program and other subprograms. The modular programming technology is used in the design. According to the functions of the system, the entire program is divided into the following modules according to the functions completed by each module: main program, interrupt service subprogram, motor traction operation subprogram, function setting subprogram, display subprogram, data processing submodule and traction time analysis subprogram. The system program flow is shown in Figure 6. The system functions are realized in the form of interrupts.

Figure 5 Motor and relay drive circuit

Figure 6 Flow chart of the lumbar traction system

The main program is initialized first, allowing all interrupts to be opened. The timer interrupt is also opened. The main program waits for and responds to interrupts at any time. In the case of no interrupt, the detection program is run to detect whether the system enters the function setting or the traction motor operation processing state. When a timer interrupt is generated, the program jumps to the timer interrupt service subroutine. The keyboard scanning, data acquisition, display and traction time analysis subroutines are run. When the interrupt subroutine is finished, it returns to the main program call.

3.1 Main program design

The main software program is the monitoring program of the system. It mainly completes the initialization, controls the flow of the program, calls subroutines and other functions. Its flow chart is shown in Figure 6. After power-on reset, the program starts to execute. The first is the initialization work, which includes:

·A/D sampling result, BCD conversion result, tension setting value, these storage units’ initial value settings;

· The initial values ​​of the 10-second generator counter, timed on counter, timed off counter, total traction time counter, and timed on preset value, timed off preset value, and total traction time preset value are not set:

Setting the interrupt counter value, adjusting it can change the interrupt response time:

· Set each bit 00H~07H in the 20H unit to 0. Set the motor control port P1.3 to 1 (indicating the motor is off), 17H to 1 (indicating the timed off state), and 0DH to 1 (setting the waiting light to light up):

Timer 0 interrupt service initialization: timer working mode and its initial value setting

Next, check the bit address 00H to determine whether the motor is on. If yes (00H=1), execute the corresponding function of the motor traction operation processing program. If no (00H=0), go to the next step. Check the bit address 01H to determine whether the function key on the keyboard is pressed. If yes (01H=1), execute the corresponding function of the program parameter setting processing. If no (01H=0), return to the detection of whether the motor is on. The main program is executed in a loop.

The flow of the main program is relatively simple, and all the functions that need to be completed are implemented by subroutines.

4 Conclusion

The innovation of the author of this article is to design a lumbar traction device that can accurately control the traction force and traction time and can display them in real time. The traction process can be completed automatically, and the patient can make appropriate adjustments by himself during the treatment process. Because the system has simple hardware, low cost, high integration, good stability, convenient debugging, strong anti-interference ability, and can realize automatic control of traction force, it has certain practical value, but it still needs to be improved before it can be put into practical use. In order to truly promote the application of intelligent lumbar traction devices, new devices need to be used to make the circuit more compact. Certain technical measures should be taken to improve the mechanical structure design of the traction device, strengthen the reliability of the instrument, and increase the traction force detection in the traction force maintenance stage. When there is a deviation from the set value, the traction system can be controlled to automatically compensate. This is a problem worth exploring.

Through the experimental test system, it is detected that the functions of sensors, control actuators, displays, alarms, etc. are normal and the performance meets the predetermined design requirements.

Keywords:AT89C51 Reference address:Design of a Lumbar Traction Apparatus Based on AT89C51

Previous article:Design of customizable human-computer interaction interface based on P89C51RD2
Next article:Micro Programmable Controller Based on AT89C51 Single Chip Microcomputer

Recommended ReadingLatest update time:2024-11-16 22:01

AT89C51 single-chip microcomputer water lamp C language program and detailed explanation (literacy tutorial)
AT89C51 microcontroller is a microcontroller that we must learn when we study microcontrollers. It is also a textbook for microcontrollers. The following is a method for writing a running light that is suitable for beginners. First, draw a simulation diagram in proteus to facilitate the simulation program Let's wr
[Microcontroller]
AT89C51 single-chip microcomputer water lamp C language program and detailed explanation (literacy tutorial)
Design of CAN Bus Intelligent Node Based on AT89C51 Single Chip Microcomputer
Controller Area Network (CAN) is a fieldbus with international standards and high cost performance. CAN was first introduced by Bosch in 1986 and is a multi-host local network originally used for communication of modern automotive microcontrollers to achieve information exchange between various electronic control de
[Microcontroller]
Design of CAN Bus Intelligent Node Based on AT89C51 Single Chip Microcomputer
Design of a fast charger for electric bicycle based on AT89C51
1. Introduction Electric bicycles are favored by many users because of their pollution-free, noise-free, light and beautiful features. However, their limitations are also exposed in use, such as the battery running out halfway, and the battery life will gradually shorten as the use time increases. This paper a
[Power Management]
Design of a fast charger for electric bicycle based on AT89C51
How to modify the AT89C51 programmer with RTL8139
  I wanted to play with 89C51, but I didn’t have a programmer, so I wanted to make my own programmer. I found a lot of self-made information. Most of them used 89C51 for control logic, which required a programmer to make. The circuits are generally more complicated (the most ez ones also require 30 components), and th
[Microcontroller]
How to modify the AT89C51 programmer with RTL8139
Design and Principle Analysis of Remote Control Alarm System Based on AT89c51 Single Chip Microcomputer
1 Introduction      Due to the rapid economic development, people's living standards have been greatly improved, and the pace of life is getting faster and faster. Therefore, home appliance remote control and family safety are also needed and valued by people. The remote control and alarm device of electrical applianc
[Microcontroller]
Design and Principle Analysis of Remote Control Alarm System Based on AT89c51 Single Chip Microcomputer
C source program of frequency meter based on AT89C51 single chip microcomputer and main functions of frequency meter
    This article is a C source program for a frequency meter based on the AT89C51 microcontroller. The main functions of this frequency meter are as follows:       1. Test functionality       It indicates all the test functions of the digital frequency meter, generally including frequency measurement, period , cumu
[Microcontroller]
C source program of frequency meter based on AT89C51 single chip microcomputer and main functions of frequency meter
AT89C51 instant water heater program
Instantaneous water heater program MCU AT89C51 XAL 12MHz //#pragma SRC  #include reg51.h   #include intrins.h   #include math.h   void delay(unsigned int); //Delay function void display(void); //display functionunsigned  char keysCAN(void); //key scan processing functionvoid  heatCTRl(void); //heating control function
[Microcontroller]
Design of MP3 Solution Based on Single Chip Microcomputer AT89C51SND1C
As people's requirements for portable music players increase, MP3 players have won the favor of music lovers with their small size and good sound quality. At first, MP3 files could only be played by computers. With the development of the Internet, MP3 players were produced. With people's further understanding of MP3
[Microcontroller]
Design of MP3 Solution Based on Single Chip Microcomputer AT89C51SND1C
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号