Summary of the invention
To be overcome the problems, such as present in the relevant technologies at least to a certain extent, the application provides a kind of old solitary people monitoringSystem.
The scheme of the application is as follows:
A kind of old solitary people monitor system, comprising: the data acquisition device at old solitary people is set, is arranged in guardianMonitor device at member;
The data acquisition device includes: the first controller, the heart rate sensor connecting respectively with first controller,Gas sensor, acceleration transducer and the first wireless communication module;
The heart rate sensor is used to detect the heart rate value of the old solitary people, and sends described for the heart rate valueOne controller;
The acceleration transducer is used to detect the angle value of the old solitary people body inclination, and the angle value is sent outIt is sent to first controller;
The gas sensor is used to detect harmful gas concentration value around the old solitary people, and by harmful gasBulk concentration value is sent to first controller;
The heart rate value, the angle value and the harmful gas concentration value are passed through described first by first controllerWireless communication module is sent to the monitor device;
The monitor device includes: second controller, the display screen connecting respectively with the second controller and the second nothingLine communication module;
Second wireless communication module is used to receive the heart rate value that the first communication module is sent, the angleValue and the harmful gas concentration value, and institute is sent by the heart rate value, the angle value and the harmful gas concentration valueState second controller;
The second controller is for controlling the display screen to the heart rate value, the angle value, the pernicious gasConcentration value is shown.
Preferably, in a kind of achievable mode of the application, the monitor device further include: alarm;
The second controller is also used to judge whether the harmful gas concentration value is more than default harmful gas concentration thresholdValue;And the alarm equipment alarm is controlled when the harmful gas concentration value is more than default harmful gas concentration threshold.
Preferably, in a kind of achievable mode of the application, the second controller is also used to judge the angle valueIt whether is more than preset angle angle value threshold value;And the alarm report is controlled when the angle value is more than the preset angle angle value threshold valueIt is alert.
Preferably, in a kind of achievable mode of the application, the gas sensor includes: the first adjustable potentiometer;
The adjustable potentiometer is used to adjust the detection sensitivity of the gas sensor.
Preferably, in a kind of achievable mode of the application, it is the green light of 515nm that the heart rate sensor, which selects wavelength,As probe source.
Preferably, in a kind of achievable mode of the application, the display screen includes: the second adjustable potentiometer;
Second adjustable potentiometer is used to adjust the brightness of the display screen.
Preferably, in a kind of achievable mode of the application, first wireless communication module and described second is wirelesslyCommunication module is ZigBee communication module.
Preferably, in a kind of achievable mode of the application, the baud rate section of the ZigBee communication module is2400-115200;
The ZigBee communication module has 8 optional common communication baud rates in the baud rate section.
Preferably, in a kind of achievable mode of the application, first controller and the second controller areSTC12C5A60S2 single-chip microcontroller.
Preferably, in a kind of achievable mode of the application, the acceleration transducer is 3-axis acceleration sensor.
Technical solution provided by the present application can include the following benefits:
Data acquisition device is arranged at old solitary people, by heart rate sensor, acceleration transducer and gas sensorAcquire the heart rate value of old man, the angle value of body inclination and the harmful gas concentration value of surrounding, and by above-mentioned collected dataIt is sent to the monitor device being arranged at care provider, care provider is to the heart rate value of old man, the angle value of body inclination and weekThe harmful gas concentration value enclosed is analyzed, and the physical condition of old man is judged by heart rate value, passes through the angle value of body inclinationJudge whether old man falls down, is judged around old man by the harmful gas concentration value around old man with the presence or absence of toxic gas.It keeps awayOld man's heart attack, cerebral hemorrhage, accidental falls, the higher fortuitous event of the occurrence frequencies such as gassing are exempted from.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, notThe application can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related toWhen attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodimentDescribed in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appendedThe example of the consistent device and method of some aspects be described in detail in claims, the application.
Fig. 1 is the structural schematic diagram for the old solitary people monitor system that the application one embodiment provides, referring to Fig.1, a kind ofOld solitary people monitor system, comprising: the data acquisition device 1 at old solitary people is set, the monitoring at care provider is setDevice 2;
Data acquisition device 1 includes: the first controller 11, the heart rate sensor 12 connecting respectively with the first controller 11,Gas sensor 13, acceleration transducer 14 and the first wireless communication module 15;
Heart rate sensor 12 is used to detect the heart rate value of old solitary people, and sends the first controller 11 for heart rate value;
Acceleration transducer 14 is used to detect the angle value of old solitary people body inclination, and sends the first control for angle valueDevice 11 processed;
Gas sensor 13 is used to detect the harmful gas concentration value around old solitary people, and harmful gas concentration value is sent outIt is sent to the first controller 11;
First controller 11 sends heart rate value, angle value and harmful gas concentration value by the first wireless communication module 15To monitor device 2;
Monitor device 2 includes: second controller 21, and the display screen 22 connecting respectively with second controller 21 and second is wirelesslyCommunication module 23;
Second wireless communication module 23 is used to receive the heart rate value of first communication module transmission, and angle value and pernicious gas are denseAngle value, and second controller 21 is sent by heart rate value, angle value and harmful gas concentration value;
For controlling display screen 22 to heart rate value, angle value, harmful gas concentration value is shown second controller 21.
First controller 11 can be, but not limited to second controller 21 as following several controllers:
The PIC16C54C single-chip microcontroller of one: PIC16 series of scheme is master controller, and PIC single chip microcomputer is a kind of peripheral controlIntegrated circuit belongs to multi-functional CPU.PIC16C54C is fabricated using high-tech micron, and inside is double containing 33 instructionsThe instruction form of sexual norm, 512 internal data memories of byte memory 25,8 and 8 programmable timers, 12 doubleTo independent control pin, RC, XT, HS, LP may be selected in four and shake mode.But the program burn writing of the single-chip microcontroller can only carry out oneIt is secondary.
Two: STM32 series monolithic of scheme is master controller, and STM32 is a semiconductor micro-control for having ST company to developDevice processed.32 8-digit microcontrollers have the features such as Digital Signal Processing, performance are high, function consumption is low, circuit integration, convenient operation.Work power supply is 12V-36V but control pin can receive 5V voltage, and operating temperature is born at minus 40 DEG C to 85 DEG C, and temperature is mostBig bearing value is 105 DEG C, the included capacitance-resistance oscillator in inside, reset circuit and clock module.But it is on the high side, it is mainly used in doctorTreat mechanism.
The STC12C5A60S2 single-chip microcontroller of three: 51 series of scheme is Master control chip.STC12C5A60S2 is single in 51 seriesBelong to mainstream single-chip microcontroller in piece machine, be to be improved on the basis of common 8051, inherit 8051 repertoire, except alsoIt is optimized.The speed of service is traditional 10 times or so, and the program of vast capacity is increased using the high-end industrial technology of FLASHMemory can carry out erasable and modification, increase the serial ports that can carry out program burn writing to single-chip microcontroller at any time, 40 ports include 32Controllable port, carries A/D (8 10, tunnel) digital-to-analogue conversion, 1280 byte RAM have individual PCA counter array, splitIt is lower to send out equipment requirement.
Using expense, lower, easy to use, the convenient and fast single-chip microcontroller of written in code is controlled as first as far as possible in the present embodimentDevice 11 and second controller 21, PIC16 series monolithic not can be carried out program burn writing repeatedly, although and STM32 series is oneA powerful single-chip microcontroller but higher cost, STC12C5A60S2 single-chip microcontroller can complete all functions, and expense is lower, generationCode is write simply, and performance is sufficient for needing, and it is bigger to comprehensively consider advantage.Preferably, STC12C5A60S2 single-chip microcontroller is chosen to makeFor the first controller 11 and second controller 21 in the present embodiment.
STC12C5A60S2 singlechip minimum system circuit includes singlechip controller, crystal oscillating circuit and power supply power supply electricityRoad.STC12C5A60S2 single-chip microcontroller is increased on the basis of the institute of 8051 single-chip microcontrollers functional such as instruction, pin functionBy force, for program internal memory available space up to 62K, the FLASH technique of use, which even more allows memory space to have, can insert except and rewrite functionEnergy.
Fig. 2 is the circuit structure of the data acquisition device 1 for the old solitary people monitor system that the application one embodiment providesFigure, the connection type of data acquisition device 1 is referring to Fig. 2.
Fig. 3 is the circuit structure diagram of STC12C5A60S2 single-chip microcontroller, and referring to Fig. 3, the first controller 11 passes through power circuit 3The power supply of power supply, the first controller 11 is made of two negative pins and a positive pin, two negative pin ground connection, anodePin is connected with the power switch of power circuit 3.When power switch is opened, power circuit 3 is connected, and power circuit 3 is single-chip microcontrollerSystem provides positive 5V operating voltage.
Single-chip microcontroller operating rate is related with the crystal oscillator frequency of single-chip microcontroller, the crystal oscillator frequency of the single-chip microcontroller normally based on 51 kernelsRate value is 12MHz or 11.0592MHz.If the crystal oscillator frequency of single-chip microcontroller is 11.0592MHz, the serial ports calculated is logicalBelieve that baud rate is precisely an integer 9600, and what is calculated using the crystal oscillator of 12MHz is not an integer, therefore is usedThe crystal oscillator of 12MHz is more inconvenient.SCM system in the present embodiment will select the crystal oscillator of 11.0592MHz.
In order to design convenient and flexible operation, the gas sensor 13 in the present embodiment be can be, but not limited to as MQ-135 gasBody sensor 13.13 module of MQ-135 gas sensor uses stannic oxide for gas sensitive, by by the conductance of inside modulesRate is converted to required gas concentration signal, and output end is the form output of analog quantity.And the harmful gas concentration in air withThe size of conductivity is proportional.
13 module of MQ-135 gas sensor is in total there are four control port: VCC control port, the port GND, the port DO andThe port AO.Wherein VCC control port connects with positive 5V supply voltage, and the port GND ground connection, the port DO is TTL digital output endMouth (passes through the output of digital quantity 0 and 1 to determine whether detecting the presence of pernicious gas).Without using the end DO in the present embodimentMouth is therefore hanging.The port AO is analog output port (the signal imitation output of module detection is voltage value) and single-chip microcontrollerDefault pin be connected (pin has analog conversion function, and the processing by scm software program can obtain corresponding gasBulk concentration value), as the information transmission between the module and single-chip microcontroller.
MQ135 gas sensor 13 is very high to ammonia, sulfide, the sensitivity of benzene series steam, to smog and other nocuousnessThe monitoring of gas is also highly desirable.
Detailed process is as follows for the processing of scm software program: analog quantity being converted to using STC12C5A60S2 single-chip microcontrollerDigital quantity, or analog quantity is converted to digital quantity using special modulus conversion chip ADC0832, ADC0809.ProfessionJust converted good data, user use IIC agreement either other certain agreements to modulus conversion chip in the chipsThe value after specific conversion can be read.And it is obtained using the analog-digital conversion function of STC12C5A60S2 single-chip microcontroller itselfThe detailed process of specific digital quantity is, first with ADConvert () transfer function acquisition analog value (namely voltageValue), it obtains and utilizes after analog value digital filtering function DigitalFiltering () taking the analog value received,It averages again after sequenc-ing cluster, the average value that finally this is calculated utilizes analog quantity (voltage value) sum number of softwareTransformation curve relational expression between word amount is converted to specific digital quantity.
Process are as follows: beginning → calling ADConvent () obtains analog data → ranking method sorts analog quantity → and distinguishesRemove 6 statistical averages → analog-to-digital conversion formula among 2 maximum values and 2 minimum values → calculating and is converted to digital quantity.
Further, gas sensor 13 includes: the first adjustable potentiometer, and adjustable potentiometer is used for regulating gas sensor13 detection sensitivity.
Heart rate sensor 12 selects Pulse Sensor sensor, and Pulse Sensor sensor is a kind of in the prior artHeart rate sensor 12.
Pulse Sensor sensor can issue probe source, and probe source enters after human finger artery, lead toDetector APDS-9008 detection reflected light is crossed, the optical signal of reflected light is received, the optical signal of reflected light is converted into electric signal,The electric signal of output reflection light, electric signal amplify via amplifier after filter capacitor processing, are output to by MCP6001External processor, output at this time is analog voltage, this voltage value and measured heart rate lead at certain relationshipCollection voltages value is crossed, then by certain conversion, is converted to specific heart rate value.Heart rate sensor 12 connectsThe default pin of STC12C5A60S2 single-chip microcontroller.
The mode that voltage value converts specific heart rate value is specific as follows: calculating Pulse using the timing function of single-chip microcontrollerThe interval time of two high-voltage values of Sensor sensor output first will carry out initial configuration to timer, be initialized as everyIt is AD converted every 2 milliseconds of timers, voltage value is obtained from Pulse Sensor sensor, and this voltage value is returned and is countedIt calculates and compares, after obtaining voltage value, the voltage value obtained at this time and a fixed voltage threshold are compared, when at this timeThe voltage acquired from module is greater than threshold value, then the time at this time will be stored in a variable and be named as T1, thenVoltage value is obtained from module again, when the voltage value obtained is similarly greater than fixed threshold value next time, againThe time at this time is saved into a variable, while being named as T2;The time of T2-T1 is exactly the heart time of interval twice, soHeart rate value can be calculated in the 1 minute time divided by T2-T1 afterwards.
Further, it is the green light of 515nm as probe source that heart rate sensor 12, which selects wavelength,.Excessive chromatic colourPeople can be allowed to feel tired, excessively deeply warm color makes human feelings thread heavy.Red and yellow can be dazzling to people feeling, cyan andGreen can allow people to feel nice and cool and tranquil.
Since red and yellow is dazzling, light is reflected by force, and cyan and green, absorption and reflection to light are all comparedIt is moderate, so comparing adaptation to the nervous system of human body, cerebral cortex and eye retina.Selecting wavelength is the green light of 515nmIt is smaller as stimulation of the probe source to human body.
Acceleration transducer 14 to progress static weight acceleration analysis under human body inclination and impact condition and can moveState accelerates measurement, threshold values can be arranged by software programming, is compared by the data detected with setting value, judge human bodyWhether the sign that occurred movement is had.
Preferably, acceleration transducer 14 can be, but not limited to as tri- axis acceleration sensor of ADXL345.ADXL345 belongs toDigital obliquity sensor, the module have 3.3V and 5V dual power supply operating voltage, and use can be directly attached with single-chip microcontroller,The access of SPI and IIC digital interface is provided.
A total of 10 control ports of tri- axis acceleration sensor of ADXL345 use four control ports in the present embodiment, bySingle-chip microcontroller in this present embodiment is 5V power supply, therefore selects the 5V control port and microcontroller power supply of the acceleration sensorAnode is connected, and the port GND connects single-chip microcontroller cathode, this is communicated using IIC so SCL (analog clock signal) port is connected toThe P00 pin of single-chip microcontroller, (data transmission) port SDA connect the default pin of single-chip microcontroller.
The software realization mode of three axis acceleration sensors is as follows: 3-axis acceleration sensor 14 is communicated using single-chip microcontroller IICThe specific angle-data that agreement is obtained from module, this program will read specific angle using AngleObtain () functionAngle value mainly obtains specific value in AngleObtain () function by function Multiple_read_ADXL345 (), andIt stores data in BUF then data separating, isolated data is then calculated specific pitch angle, are then judged againWhether pitch angle is greater than preset angle angle value threshold value, is then judged as that old man falls down if it is greater than preset angle angle value threshold value.Here numberPrimary function according to acquisition is by Multiple_read_ADXL345 () Lai Shixian.
When code goes to Multiple_read_ADXL345 () function, Multiple_read_ADXL345 () is executedCorrelative code reads exercise data, first sends initial signal, then retransmits the order of device address and write signal, thenMemory unit address is sent, which is sent since 0X32 and then once sends initial signal, and sends reading letterNumber device address, the data of 6 addresses are then continuously read since 0X32, and store the data in temporary array BUF []In, then it is respectively present in BUF [0] to BUF [5] since the data of 6 addresses continuous the 0X32 of address.If data saveFinish, return to 1, be returned to data 0 if do not finished, until return data be 1 position, just finish the acquisition of data,Then stop signal is retransmited, and is delayed 5 milliseconds, the function is then exited, continues to execute other control routines.
Data acquisition device 1 in the present embodiment is arranged at old solitary people, passes through heart rate sensor 12, acceleration sensingDevice 14 and gas sensor 13 acquire the heart rate value of old man, the angle value of body inclination and the harmful gas concentration value of surrounding, andSend above-mentioned collected data to the monitor device 2 being arranged at care provider, heart rate value of the care provider to old man, bodyThe harmful gas concentration value of the inclined angle value of body and surrounding is analyzed, and the physical condition of old man is judged by heart rate value, is led toThe angle value for crossing body inclination judges whether old man falls down, judged by the harmful gas concentration value around old man be around old manIt is no that there are toxic gases.Avoid old man's heart attack, cerebral hemorrhage, accidental falls, the occurrence frequencies such as gassing are higherFortuitous event.
Old solitary people monitor system in some embodiments, monitor device 2 further include: alarm 24;
Second controller 21 is also used to judge whether harmful gas concentration value is more than default harmful gas concentration threshold;AndControl alarm 24 is alarmed when harmful gas concentration value is more than default harmful gas concentration threshold.
Further, second controller 21 is also used to judge whether angle value is more than preset angle angle value threshold value;And in angleControl alarm 24 is alarmed when value is more than preset angle angle value threshold value.
Preset angle angle value threshold value can be set to 90 degree.Default nocuousness gas concentration threshold can be 1000Pmm.
When second controller 21 judges that current concentration of toxic gases is more than default harmful gas concentration threshold either human bodyAngle be greater than 90 degree (fall determine) alarm 24 will be started and alarm.
Alarm 24 can be buzzer.
Triode is set in alarm 24, and triode one end connects a positive 5V power supply, and it is default that the other end connects single-chip microcontrollerPin.It is high level that the single-chip microcontroller, which presets pin, under default situations, and triode cut-off passes through alarm 24 without electric current at this time,Alarm 24 is not rung.
When meeting alert if, one low level of pin is preset to this, at this time triode ON, has electricity in alarm 24Stream passes through, and issues alarm sound.
Old solitary people monitor system in some embodiments, display screen 22 include: the second adjustable potentiometer;
Second adjustable potentiometer is used to adjust the brightness of display screen 22.
Old solitary people monitor system in some embodiments, the first wireless communication module 15 and the second wireless communication module 23It is ZigBee communication module.
What the wireless communication surveillance system of present mainstream was mainly taken be Wi-Fi, Bluetooth, Wireless USB,Cellular, ZigBee etc..The characteristics of according to communication mode: as Wi-Fi is suitable for mass data transmission in fixed range;Bluetooth transmission range is shorter, is suitable for mobile wearable device;And ZigBee then has ground transmission rate low and transmission rangeGreatly, low feature is consumed.When selecting wireless communication module, the channel radios such as Wi-Fi, Bluetooth, ZigBee have been comprehensively consideredBelieve module.Transmitting is realized according to the communication of ZigBee is selected the characteristics of the old solitary people monitor system of the present embodimentHold the real-time Data Transmission of (data acquisition module) and receiving end (data reception module).
Wi-Fi, Bluetooth, ZigBee performance for wireless communications table of comparisons are as follows
Preferably, in a kind of achievable mode of the application, the baud rate section of ZigBee communication module is 2400-115200;
ZigBee communication module has 8 optional common communication baud rates in baud rate section.
That Texas Instruments' production is selected in the present embodiment has string based on ZigBee CC2530F256RHAR chipThe DL-20 communication module of port communications function is as ZigBee communication module.The ZigBee communication module has RX and TX pin, leads toCross serial communication protocol and external processor communication, baud rate can from 2400 to highest 115200 have altogether 8 oftenCommunication baud rate is voluntarily selected for user, is not required to be appreciated that the specific communication protocols inside ZigBee in specific communication processView controls fast speed that is relatively easy, while communicating, can achieve 3300bps with highest.
Old solitary people monitor system in the present embodiment is due to only needing slave (data acquisition device 1) acquisition systemWith and host (monitor device 2) monitoring system, therefore operating mode selection when, point-to-point operating mode will be selected, simultaneously9600 are set by the speed that data are transmitted.
In summary the old solitary people monitor system in preferred embodiment can effectively realize 1 He of data acquisition deviceThe real-time wireless communication of monitor device 2, effective communication distance are about 250 meters;Heart rate sensor 12 can effectively monitor userHeart rate value;Gas sensor 13 can effectively monitor the fuel gas such as coal gas, methane, liquefied gas, and when harmful gasWhen bulk concentration is greater than 1000Pmm, alarm 24 is able to carry out alarm;Whether acceleration transducer 14 can fall to old man progressAccurate judgement, after Falls Among Old People, alarm 24 is able to carry out alarm.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodimentsUnspecified content may refer to the same or similar content in other embodiments.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, withoutIt can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple "Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includesIt is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portionPoint, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitableSequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the applicationEmbodiment person of ordinary skill in the field understood.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically showThe description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or examplePoint is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are notCentainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be anyOne or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is exampleProperty, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentionedEmbodiment is changed, modifies, replacement and variant.