Human body impedance measurement system based on single chip microcomputer

Publisher:幸福微风Latest update time:2011-09-06 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

Medicine Impedance measurement is a detection technology that uses the electrical properties and changes of biological tissues and organs to extract biomedical information related to the physiological and pathological conditions of organisms. It usually uses driving electrodes to send a small alternating current (or voltage) signal to the detection object, and simultaneously measures the voltage (or current) signals at both poles to calculate the corresponding impedance, which is then applied to different purposes.

This design uses the serial port of MSP430F149 to perform long-distance real-time transmission via RS485. The host computer can process the real-time data by drawing curves and saving data.

1 System Structure

The system uses TI's MSP430F149 microcontroller. The microcontroller has 60 KB Flash and 2 KB RAM, and has powerful data processing capabilities. The microcontroller controls the frequency and amplitude of the sine wave by sending frequency words and amplitude words to AD9852. After the sine wave is processed by circuits such as current-to-voltage and power amplification, it is isolated and acts on the human body through coil T1. At the same time, the relative amount of current and voltage induced by coils TF1 and T2 is converted by the process control amplifier and true effective value, and then enters the microcontroller for A/D conversion. The microcontroller calculates the resistance based on the current and voltage values, and then transmits it to the PC through the serial port. The system structure block diagram is shown in Figure 1.

The structure diagram of human body impedance measurement system based on single chip microcomputer

2 Hardware Circuit

2.1 MCU Control AD9852 Circuit

As shown in Figure 2, the MCU P1.0~P1.7 are connected to the data and address pins of AD9852 through multiplexing, and P2.3~P2.7 are connected to the five more important control pins of AD9852. The MCU mainly controls the frequency and amplitude of the sine wave generated by AD9852 by outputting amplitude and frequency words to DDS.

Connection circuit between single chip microcomputer and AD9852

2.2 Current and voltage measurement circuit

Figure 3 shows the principle of the current measurement circuit. In order to accurately measure the current at different amplitudes, a programmable amplifier is added before the peak-to-peak value to effective value circuit. The microcontroller controls the output gain so that even if the front-end voltage is very small, it can be increased to a certain level to achieve accurate measurement. Similarly, the same schematic diagram is used in the current measurement circuit.

Current measurement circuit principle

[page]

2.3 RS485 Circuit

In the MCU and RS485 communication conversion circuit shown in Figure 4, three optocouplers are used to isolate the MCU circuit and the RS485 bus to improve the anti-interference ability of the system. SP485E is used to support the RS485 serial protocol, but because the working logic of SP485E is TTL level, and the logic current of RS232 communication is not TTL level, it is necessary to use SP232 device for level conversion, as shown in Figure 5. RS485 works in half-duplex communication state, and the input/output direction of data is controlled by CTR485.

Single chip microcomputer and RS485 communication conversion circuit

3 Software Design

The software of this system is written in C language and is written and debugged in the IAR EmbeddedWorkbench environment. The software flow is shown in Figure 6. The microcontroller software is mainly divided into two parts. One part controls AD9852 to generate a sine wave, and performs A/D conversion on the voltage and current, and then performs calculations. The other part transmits the collected data to the PC. The software flow is shown in Figure 8.

[page] Software Process

4 Experimental Results

Practice has shown that the amplitude of the sine wave has little effect on the impedance amplitude value, while the frequency has a greater effect on the impedance amplitude value. When using egg white for the experiment, it was found that as the frequency increases, the impedance value decreases, and the higher the egg white concentration, the greater the impedance. When the sine wave frequency is 440 kHz, the current and voltage are adjusted to 0.7 ~ 2.5 through the programmable amplifier, and the relationship between the non-inductive resistance and the voltage and current ratio is shown in Figure 9.

Non-inductive resistance and voltage

In the figure, the horizontal axis is U/I and the vertical axis is R/10. It can be seen from the figure that the two are approximately linearly related within the allowable error range.

Conclusion

This design provides a method for measuring human body impedance, which can be used as an auxiliary function of medical instruments, provide a certain reference for tissue diagnosis, etc., and can be transplanted to different applications.

Reference address:Human body impedance measurement system based on single chip microcomputer

Previous article:Design of video character overlay system based on MAX7456
Next article:Single chip microcomputer realizes dual mode of traffic light control system

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号