Wisdom community equipment position detection device
Technical Field
The utility model relates to a position detection technical field especially relates to a wisdom community equipment position detection device.
Background
At present, the management of modern communities is gradually scientific and standardized, and all devices in the communities are placed in the most reasonable positions, so that the optimal layout of all devices in the aspects of balanced cost, attractiveness, occupied space and the like is realized. If the position of the equipment moves, the reasonability of the layout is destroyed, and the traffic is possibly influenced, so that the equipment with the moved position needs to be found and returned in time in the community management process.
Generally, the position detection of the device is mainly realized by using several sensors such as a capacitive sensor, an inductive sensor, an electromagnetic sensor and the like, but the sensors currently have the defects of low measurement accuracy, poor linearity and the like, so that the determination result of the position of the device is inaccurate, the position movement may be under-reported or misinformed, and the efficiency of community device management is reduced.
SUMMERY OF THE UTILITY MODEL
In view of this the utility model provides a wisdom community equipment position detection device to solve the problem that traditional wisdom community equipment position detection device detects the precision low, the linearity is poor of community equipment position.
The technical scheme of the utility model is realized like this: the utility model provides a wisdom community equipment position detection device, includes singlechip, AD conversion module, position sensing element, emitting diode, first current-voltage conversion circuit, second current-voltage conversion circuit, adder, subtracter and inverting amplifier, wherein:
the position sensitive element is laid on the ground and located between the equipment and the ground, a photosensitive surface of the position sensitive element is opposite to the bottom of the equipment, the light emitting diode is installed at the bottom of the equipment and electrically connected with the single chip microcomputer, the light emitting diode emits light towards the photosensitive surface of the position sensitive element, the position sensitive element is provided with a first electrode and a second electrode, the first electrode outputs a first current when the position sensitive element receives the illumination of the light emitting diode, and the second electrode outputs a second current when the position sensitive element receives the illumination of the light emitting diode;
the input end of the first current-voltage conversion circuit is connected with the first electrode, the input end of the second current-voltage conversion circuit is connected with the second electrode, the first current-voltage conversion circuit is used for converting the first current into voltage and carrying out reverse amplification, and the second current-voltage conversion circuit is used for converting the second current into voltage and carrying out reverse amplification;
the input end of the adder is respectively connected with the output ends of the first current-voltage conversion circuit and the second current-voltage conversion circuit, the two input ends of the subtracter are respectively connected with the output ends of the first current-voltage conversion circuit and the second current-voltage conversion circuit, and the subtracter is used for subtracting the output of the second current-voltage conversion circuit from the output of the first current-voltage conversion circuit;
the input end of the inverting amplifier is connected with the output end of the adder, and the output ends of the inverting amplifier and the subtracter are respectively connected with the single chip microcomputer through the AD conversion module.
Optionally, the first current-voltage conversion circuit includes an operational amplifier U1 and a resistor R1, the first electrode is connected to an inverting input terminal of the operational amplifier U1, a non-inverting input terminal of the operational amplifier U1 is grounded, an output terminal of the operational amplifier U1 is connected to an inverting input terminal of the operational amplifier U1 via a resistor R1, an output terminal of the operational amplifier U1 is further connected to an input terminal of the adder, and an output terminal of the operational amplifier U1 is further connected to a non-inverting input terminal of the subtractor.
Optionally, the inverting amplifier includes an operational amplifier U3, a resistor R5, and a resistor R6, an output end of the adder is connected to an inverting input end of the operational amplifier U3 through the resistor R5, a non-inverting input end of the operational amplifier U3 is grounded, an output end of the operational amplifier U3 is connected to an inverting input end of the operational amplifier U3 through the resistor R6, and an output end of the operational amplifier U3 is further connected to an input end of the AD conversion module.
Optionally, the second current-voltage conversion circuit includes an operational amplifier U4 and a resistor R7, the second electrode is connected to an inverting input terminal of the operational amplifier U4, a non-inverting input terminal of the operational amplifier U4 is grounded, an output terminal of the operational amplifier U4 is connected to an inverting input terminal of the operational amplifier U4 through a resistor R7, an output terminal of the operational amplifier U4 is further connected to an input terminal of the adder, and an output terminal of the operational amplifier U4 is further connected to an inverting input terminal of the subtractor.
Optionally, the resistance of the resistor R1 is the same as that of the resistor R7, and the resistance of the resistor R5 is the same as that of the resistor R6.
Optionally, the operational amplifier U1 and the operational amplifier U4 are both OP797 chips, and the operational amplifier U3 is an OP497 chip.
The utility model discloses a wisdom community equipment position detection device has following beneficial effect for prior art:
(1) the utility model discloses a wisdom community equipment position detection device has realized the non-contact detection to the community equipment position through position sensing element, has that response speed is fast, the precision is high, the characteristics that the linearity is good, and the definite result of equipment position is accurate, avoids appearing the missing report or the wrong report of position shift, has improved the efficiency of community equipment management;
(2) the utility model discloses a hardware circuit that wisdom community equipment position detection device first current-voltage conversion circuit, second current-voltage conversion circuit, adder, subtracter and inverting amplifier constitute can the influence of maximum reduction device error itself, and hardware circuit's output has directly reflected the position of equipment, need not further mathematical processing, has simplified software design.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of the position detection device for smart community equipment of the present invention;
FIG. 2 is a schematic diagram of a position sensor according to the present invention;
fig. 3 is a circuit diagram of the first current-voltage conversion circuit, the second current-voltage conversion circuit, the adder, the subtractor, and the inverting amplifier of the present invention.
Description of reference numerals:
10-a position sensitive element; 20-a light emitting diode; 30-equipment.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative work all belong to the protection scope of the present invention.
As shown in fig. 1, the device for detecting the location of the smart community device in this embodiment includes a single chip, an AD conversion module, a location sensitive device 10, a light emitting diode 20, a first current-voltage conversion circuit, a second current-voltage conversion circuit, an adder, a subtractor, and an inverting amplifier.
The position sensitive element 10 is laid on the ground and located between the device 30 and the ground, a photosensitive surface of the position sensitive element 10 is opposite to the bottom of the device 30, the area of the position sensitive element 10 is not smaller than the cross-sectional area of the bottom of the device 30, the light emitting diode 20 is installed at the bottom of the device 30 and electrically connected with the single chip microcomputer, the light emitting diode 20 emits light towards the photosensitive surface of the position sensitive element 10, as shown in fig. 2, the position sensitive element 10 has a first electrode and a second electrode, the first electrode outputs a first current I1 when the position sensitive element 10 receives illumination of the light emitting diode 20, and the second electrode outputs a second current I2 when the position sensitive element 10 receives illumination of the light emitting diode 20.
The position sensor 10 of the present embodiment is a linear position sensor 10, and has P, I, N three-layer structure, the P layer is a photosurface which is an active region for photoelectric conversion, and two ends of the photosurface are respectively a first electrode and a second electrode with signal outputs for outputting photocurrent. When the light spot emitted by the led 20 irradiates a certain point on the P layer, charges are generated at the position, and the charges flow to the first electrode and the second electrode respectively in the form of currents, so as to form a first current I1 and a second current I2. The resistance on the P layer is uniform, I1 and I2 have the relationship I1/I2 ═ L-X)/(L + X), where L is the distance from the P layer midpoint O to the electrode and X is the distance from the incident light spot to the P layer midpoint O, and the above formula is transformed to obtain (I2-I1)/(I2+ I1) ═ X/L. When the community device 30 of this embodiment is in the correct position, the led 20 is aligned with the point O, i.e. X is 0, I2 is I1; if the position of the device 30 changes, the position of the light spot on the photosensitive surface irradiated by the light emitted from the led 20 changes, and the value of (I2-I1)/(I2+ I1) changes and is not zero, so that whether the position of the device 30 changes can be determined by detecting (I2-I1)/(I2+ I1).
As shown in fig. 3, the first current-voltage conversion circuit includes an operational amplifier U1 and a resistor R1, the second current-voltage conversion circuit includes an operational amplifier U4 and a resistor R7, the resistor R1 has the same resistance as the resistor R7, the adder includes an operational amplifier U2, a resistor R2, a resistor R3, a resistor R4 and a resistor R5, the subtractor includes an operational amplifier U5, a resistor R8, a resistor R9, a resistor R10 and a resistor R11, and the inverting amplifier includes an operational amplifier U3, a resistor R5 and a resistor R6. The specific circuits of the adder and the subtracter are common, and the principle is not described here. The operational amplifier U1 and the operational amplifier U4 are both OP797 chips, and the operational amplifier U3 is OP497 chips.
The first electrode is connected with the inverting input end of an operational amplifier U1, the non-inverting input end of the operational amplifier U1 is grounded, the output end of the operational amplifier U1 is connected with the inverting input end of the operational amplifier U1 through a resistor R1, the output end of the operational amplifier U1 is also connected with the input end of an adder, and the output end of the operational amplifier U1 is also connected with the non-inverting input end of a subtracter; the output end of the adder is connected with the inverting input end of an operational amplifier U3 through a resistor R5, the non-inverting input end of an operational amplifier U3 is grounded, the output end of the operational amplifier U3 is connected with the inverting input end of an operational amplifier U3 through a resistor R6, and the output end of an operational amplifier U3 is also connected with the input end of an AD conversion module; the second electrode is connected with the inverting input end of an operational amplifier U4, the non-inverting input end of the operational amplifier U4 is grounded, the output end of the operational amplifier U4 is connected with the inverting input end of the operational amplifier U4 through a resistor R7, the output end of the operational amplifier U4 is also connected with the input end of an adder, and the output end of the operational amplifier U4 is also connected with the inverting input end of a subtracter.
In this embodiment, the first current-voltage conversion circuit is configured to convert the first current I1 into a voltage and perform inverse amplification, the second current-voltage conversion circuit is configured to convert the second current I2 into a voltage and perform inverse amplification, and the subtractor is configured to subtract an output of the second current-voltage conversion circuit from an output of the first current-voltage conversion circuit. Analysis shows that the output of the first current-voltage conversion circuit is-I1 × R1, the output of the second current-voltage conversion circuit is-I2 × R7, the output of the adder is-I1 × R1-I2 × R7, the output of the inverting amplifier is (I1 × R1+ I2 × R7) R6/R5, and the output of the subtracter is I2 × R7-I1 × R1. Thus, the output of the inverting amplifier and the output of the subtracter are respectively input to the singlechip through the AD conversion module, the singlechip can perform simple division operation on the two output values, namely, the ratio of I2 × R7-I1 × R1 to (I1 × R1+ I2 × R7) R6/R5, namely the ratio of [ (I2-I1)/(I2+ I1) ] R5/R6 is calculated, and the value of (I2-I1)/(I2+ I1), namely the value of X/L, can be obtained under the known conditions of R5 and R6, so that the coordinate X of the light spot is obtained. If the values of R5 and R6 are selected to be equal, the (I2-I1)/(I2+ I1) can be directly obtained, the hardware output can directly reflect the position of the equipment, and the calculation step is simplified.
Thus, the position sensitive element 10 has the advantages of wide frequency spectrum response, high response speed, relatively simple signal processing, high geometric resolution, capability of performing non-contact measurement and the like, the embodiment realizes non-contact detection on the position of the community equipment through the position sensitive element 10, and has the characteristics of high response speed, high precision and good linearity, the determination result of the position of the equipment is accurate, the missing report or the false report of position movement is avoided, and the efficiency of community equipment management is improved. And the influence of the error of the device can be reduced to the greatest extent through a hardware circuit consisting of the first current-voltage conversion circuit, the second current-voltage conversion circuit, the adder, the subtracter and the inverting amplifier, the output of the hardware circuit directly reflects the position of the equipment, further mathematical processing is not needed, and the software design is simplified.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.