The subject matter herein generally relates to air pollutants, and more particularly to a device for detecting a quantity of an air pollutant and a method thereof.
Electronic devices such as smart phones may include a gyroscope and an accelerometer to detect positions and moving distances of the device. If the device can further include an air pollution detecting function, it can greatly help a user thereof to escape from the source of the air pollution.
Implementations of the present technology will now be described, by way of example only, with reference to the attached figures.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features. The description is not to be considered as limiting the scope of the embodiments described herein.
Several definitions that apply throughout this disclosure will now be presented.
The term “coupled” is defined as connected, whether directly or indirectly through intervening components, and is not necessarily limited to physical connections. The connection can be such that the objects are permanently connected or releasably connected. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
In general, the word “module” as used hereinafter refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language such as, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware such as in an erasable-programmable read-only memory (EPROM). It will be appreciated that the modules may comprise connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
The air detection system 12 can include a calculating module 120 and a displaying module 122. The modules 120-122 can include one or more software programs in the form of computerized codes stored in the storage system (not shown) of the device 1. The computerized codes can include instructions executed by the CPU 17 to provide functions for the modules 120-122.
The calculating module 120 can determine whether the quantity of the air pollutant is greater than the threshold value. In detail, the threshold value of the air pollutant corresponds to a predetermined resistance between two electrodes of the air detection unit 11. In at least one embodiment, a change in the resistance between the two electrodes of the air detection unit 11 is caused by a product of a catalytic reaction between the air pollutant and a material of the air detection unit 11 when the product passes through a transistor gate electrode of the air detection unit 11. Thus, a larger quantity of the air pollutant corresponds to a higher degree of the resistance between the two electrodes. A smaller quantity of the air pollutant corresponds to a lower degree of the resistance between the two electrodes. When the quantity of the air pollutant is greater than the threshold value, the activating unit 160 of the PCB 16 can turn on the gyroscope 13 and the accelerometer 14 to detect the positions and moving distances of the device 1. In at least one embodiment, the calculating module 120 can calculate the relationship between the quantity of the air pollutant and the positions and moving distance of the device 1 relative to a horizontal orientation and a vertical orientation of the device 1.
Referring to
Referring to
At block 30, air can be fed into a device to detect a quantity of the air pollutant. A type of the air pollutant can be predetermined.
At block 32, whether the quantity of the air pollutant exceeds a threshold value can be determined. In detail, the threshold value of the air pollutant corresponds to a predetermined resistance between two electrodes of an air detection unit of the device. In at least one embodiment, a change in the resistance between the two electrodes is caused by a product of a catalytic reaction between the air pollutant and a material of the air detection unit when the product passes through a transistor gate electrode of the air detection unit. Thus, a larger quantity of the air pollutant corresponds to a higher degree of the resistance between the two electrodes. A smaller quantity of the air pollutant corresponds to a lower degree of the resistance between the two electrodes.
At block 34, a gyroscope and an accelerometer of the device can be turned on when the quantity of the air pollutant exceeds the threshold value.
At block 36, positions and moving distances of the device can be obtained from the gyroscope and the accelerometer, and a relationship between the quantity of the air pollutant and the positions and moving distances of the device can be calculated. The relationship can be calculated relative to a horizontal orientation and a vertical orientation of the device. In at least one embodiment, the relationship can be calculated at predetermined distance intervals of the device moving. In other embodiments, the relationship can be calculated at predetermined time intervals of the device moving.
At block 38, the relationship between the quantity of the air pollutant and the positions and moving distances of the device can be displayed on a display. In at least one embodiment, the relationship is displayed as a line graph. Points of the line graph can correspond to the relationship between the quantity of the air pollutant relative to the vertical orientation of the device verses the relationship between the quantity of the air pollutant relative to the horizontal orientation of the device.
The embodiments shown and described above are only examples. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure up to, and including, the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201410790355.5 | Dec 2014 | CN | national |