Introduction
With the intensification of our aging process, there is a kind of society in today's society, "the weak group of long-term bed bed", especially those who have almost unconscious vulnerable groups, especially their Cleaning treatment of the size. However, due to the large number of disadvantages, the shortage of nursing staff is shortaged, and the contradiction between the family nursing of these vulnerable groups is increasingly high. At present, the long-term bed bed patients in the market are cleaner care machines in "Intelligent Nursing". It has been automatically identified and recycled and recycled and automatic drying, and reached the requirements of "humanized" nursing. But in the process of use, special "accompanying people" is still required. For the vast majority of modern families, this will be a heavy burden, while also limiting the size of the cleaning machine in the family. Generalization, therefore, society urgently needs a new type of clean care machine that enables "unattended" function on the basis of existing care. In this paper, the main controller of the PIC18F87K22 single-chip microcomputer, using Siemens Module TC35i, transmitting the caremaker alarm information in real time in the form of "mobile phone SMS" to the settlement patient's guardian mobile phone, and the guardian can also use "mobile phone SMS" The form of sending a command remote control home care machine, innovatively realizes the "unmanned care" function of the family's long-term beds, will have a large extent to a large extent to the long-term bedridden patient family's family And the cost of nursing expenses is urgent to solve social problems.
1 System composition and working principle
The system is mainly composed of a main control board, a keyboard, and a display module, a sensing / transmitter module, an actuator module, a GSM communication module (TC35I), and user mobile phones (Figure 1). When the system works, the PIC microcontroller will take the water temperature, wind temperature, flow, water tank level of the care machine, collect the upper limit of the bucket dirt upper limit alarm, leakage detection alarm, etc., each 500ms. When a detection parameter has an alarm, the care machine except for the corresponding sound and light alarm prompt information, and the alarm information will be sent to the manager of the program setting through the GSM module in the form of "mobile phone SMS", prompting the guardian in time. Go home.
2 system hardware design
System hardware includes power module design, PIC microcontroller main control board circuit design, button design, LCD display design, sensor / transmitter circuit design, voice circuit design, GSM communication module circuit design, and peripheral drive execution agency circuit design.
2.1 MCU chip selection
Since the single-chip communication is communicated between the SMM communication module (TC35i), it is necessary to provide serial port communication with the ZigBee module in the future, it is necessary to have at least two serial ports; the system needs to collect a total 10-channel detection parameter such as wind temperature, water temperature. In the end of the warmth of warm water and warm air drying after the end of the size, multiple timers are required; the motor speed is required to be controlled by the PWM manner. Considering the above requirements, this system uses MicroeHip's PIC18F877K22 single-chip microelectric machine, which integrates 4KB SRAM, 128KB EPROM, 69-bit I / O, 2 enhanced EUSART, 24-digit A / D converter, 5 16-bit timers, 7 CCP modules, and 3 ECCP modules, their resources fully meet the needs of the system.
Be
2.2 Sensor / Transmitter Interface Design
The sensors used by the care machine include the detection of wind temperatures, water temperature, water flow, size, collection, collection bucket, and the upper limit of the bucket dirt, the lower limit of the liquid level in the liquid level. Among them, the stool uses infrared light transmission principle, combined with the stool ingredients to absorb the infrared light absorption and partition mechanism to determine whether there is a stool discharge; urination is determined by analyzing the change of the electricity capacity of the collection seat, and these sensors are rising sun cleaning equipment. The non-contact size of the company specially developed non-contact size detects the sensor. The wind temperature, the water temperature sensor adopts a new type of thermistor PT3M-K51F-BLT1 sensor, which is suitable for measuring the wind temperature and is suitable for measuring water temperature. There are two, one is two, one is "high position" detection sensor, and the other is "extreme position" detection sensor. When the dirt position reaches the "limit position" alarm, the system automatically stops processing for urination. Prevent dirt overflow. The main sensor interface circuit is shown in Figure 2.
Be
Be
2.3 Voice interface circuit design
When there is a alarm, there is a corresponding voice prompt, the voice portion uses a special speech processing chip WT588D-20SS, which is powerful and easy to use. In addition, a special memory TS25L-16AP has a 16M NOR FLASH, which can well complete the voice prompt function by cooperating with the voice chip.
2.4 LCD and Keyboard Interface Circuit Design
To meet the manual control needs of the nursing machine, the dedicated keyboard is designed. This keyboard and the CPU interface use 8-bit I / O line parallel input and output mode. The LCD displays the use of the RT12864 graphic dot type liquid crystal display module that can easily implement real-time display of the detection parameters and control parameters.
2.5 GSM Communication Module Circuit Interface Design
2.5.1 TC35i module introduction
The TC35i module is an industrial-grade GSM module that supports short message service (SMS), data communication, and voice communication. The power supply section, GSM baseband processor, Flash flash memory, radio frequency section, antenna and ZIF (zero-insertion) connector The composition is composed (Figure 4). The baseband processor is the core of TC35i, mainly processing voice and data signals within the GSM terminal and covers all analog and digital functions in the cellular RF device. The TC35i module has 40 pins, which are drawn through a ZIF connector. These 40 pins are divided into 5 classes, namely power, data input / output, SIM card, audio interface, and control.
2.5.2 TC35i module interface circuit design
The interface between the TC35i and the PIC microcontroller and the SIM card is done by the ZIF connector, as shown in Figure 5. The main pins used in the zif connector in this system are as follows: 1 to 5 pins are the working voltage input VBATT + of TC35i, and the recommended voltage is 4.2VDC, and the 6th to 10th pins are power supply (GND). The 15th pin is a starter IGT (Ignition), which is valid. The external triode Q1 of this system is connected to the I / O RC5 foot of the PIC18F87K22. When the RC5 generates a high level greater than 100 ms, the start foot IGT is turned on and GND. Turn low, start the GSM module. Data input / output, DSR0, RING0, RTS0, DTR0, and DCD0, respectively, DSD0, CTS0, RTS0, DTR0, and DCD0, respectively. The data input / output interface of the TC35i is actually a serial asynchronous transceiver that is compliant with the ITU-T RS232 interface criteria. It has a fixed parameter: 8-bit data bits and 1 bit stop bit, no calibration bit, bit rate can be selected between 300bps ~ 115kbps, default 9600, support standard AT command set. In this system, only RXD0, TXD0 is connected to the RXD, TXD pin of the PIC microcontroller, namely, that is, the communication of the microcontroller and TC35i is done by these two serial ports. TC35i uses an external SIM card, set 24 to 29 to connect to the CCDET2 pin of the SIM card to the CCIF of the zif, used to detect whether the SIM card in the SIM card holder is inserted, if it is already inserted, CCIN The foot is high, otherwise it is low, so it can determine whether the SIM card is ready by reading the CCIF CCIF pin level of the single-chip programming. CCIO is a serial data cable that completes data input and output of TC35i and SIM cards. The 32nd pin is control foot SYNC, and the function in this system is to indicate the working state of TC35i.
3 system software design
3.1 System main programming
The system main program flow chart is shown in Figure 6, software programming is implemented with MPLAB V8.63, and the compiler uses Hi-Tech CCompiler.
Be
After power-on, first initialize the single-chip microcomputer and the GSM module, and then perform button scanning and processing, enter the nursing machine default fully automatic mode, automatically perform data acquisition and processing. When there is a alarm, in addition to the corresponding processing, the GSM module will automatically send the alarm information to the patient's monitor in the form of "mobile phone SMS", and the guardian can also send a command remote control home in the form of "mobile phone SMS". The operating machine is running to realize the "unmanned care" function of the careter.
3.2 GSM Short message handler design
GSM Short message delivery is essentially the process of sending text messages to guardian mobile phones through the AT command. The TC35i short message module has two working modes, set with the "At + CMGF = n" command, n = 0 is PDU mode; n = 1 is text mode. Since the data sent and received in this system is based on English-based alarm status and command words, n = 1. AT + CMGS is selected for the Select Message. The following is an example of "Dirty Full Alarm" alarm, and its implementation process is explained.
4 Conclusion
This design innovatively realizes the "unmanned care" function of the family's long-term bed beds, and will have a large extent to solve the problems of the shortage and nursing costs of family accompanying staff in my country's long-term bed beds. The good products of benefiting vulnerable groups and improve social people's livelihood have broad market application prospects.
Be
Reprinted from -Wiku Electronic Market Network
Our other product: