CN102339514B - The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type - Google Patents

The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type Download PDF

Info

Publication number
CN102339514B
CN102339514B CN201010228525.2A CN201010228525A CN102339514B CN 102339514 B CN102339514 B CN 102339514B CN 201010228525 A CN201010228525 A CN 201010228525A CN 102339514 B CN102339514 B CN 102339514B
Authority
CN
China
Prior art keywords
data
adjoint point
point
adjoint
electrode group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201010228525.2A
Other languages
Chinese (zh)
Other versions
CN102339514A (en
Inventor
曾艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Technology and Business University
Original Assignee
Chongqing Technology and Business University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Technology and Business University filed Critical Chongqing Technology and Business University
Priority to CN201010228525.2A priority Critical patent/CN102339514B/en
Publication of CN102339514A publication Critical patent/CN102339514A/en
Application granted granted Critical
Publication of CN102339514B publication Critical patent/CN102339514B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

In anti-pet tread type alarm and number profile thereof, the method for lattice point differentiation foot type includes anti-pet tread type alarm and method two parts of lattice point differentiation foot type in number profile;The latter is embodied in several profile lattice point and distinguishes foot type program, the former by a rectangular frame, set of cells, Single Chip Microcomputer (SCM) system, seal in and go out circuit, be incorporated to go here and there and form into circuit and music circuit, wherein, the top of rectangular frame and bottom are respectively arranged with column and row electrode group, and its wire is sequentially connected respectively to be incorporated to and goes here and there into each parallel input terminal of circuit and each parallel output terminal sealing in and going out circuit.Setting up two-dimensional coordinate system according to the arrangement of two electrode group wires, lattice point that it surrounds is followed the tracks of and is added up in the region trampled by single-chip microcomputer Scanning Detction, block-by-block, number according to lattice point judges foot type and decides whether to send chimes of doom.In described several profile, the method for lattice point differentiation foot type decreases workload of operation, improves the efficiency that detection is analyzed, it is adaptable to burglar alarm works.

Description

The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type
Technical field
The present invention relates to security protection electronic technology field, particularly a kind of anti-pet-treading alarm device.
Background technology
Submit in July, 2010 patent of invention " method that anti-pet tread type alarm and consistency profiles measured area thereof distinguish foot type " of State Intellectual Property Office's office by singlechip technology, follow the tracks of out and trampled the profile in region, area with the region that " method of number grid amount area " detection is trampled, distinguish the foot type of people and toy accordingly, thus be applicable to trampling of alarm people, and avoid the chimes of doom caused due to trampling of toy.
Summary of the invention
It is an object of the invention to provide a kind of method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type, in described several profile, lattice point distinguishes the method for foot type with described anti-pet tread type alarm for physical basis, singlechip technology is adopted to detect the number of lattice point in the region trampled, distinguish the foot type of people and toy accordingly, send chimes of doom when trampling what be subject to people.
The present invention realize its purpose be the technical scheme is that described anti-pet tread type alarm by a rectangular frame, set of cells, Single Chip Microcomputer (SCM) system, seal in and go out circuit, be incorporated to go here and there into circuit, music circuit and number profile in lattice point distinguish foot type program form;Wherein, the top of rectangular frame and bottom are respectively arranged with one group of electrode, it is referred to as row electrode group and row electrode group, each group of electrode includes 72 independently of one another, spacing is uniform, exposed wire, the direction of two groups of arrangements of conductors is mutually perpendicular to, the wire of row electrode group is sequentially connected respectively to and is incorporated to each parallel input terminal gone here and there into circuit, the wire of row electrode group is sequentially connected respectively to each parallel output terminal sealing in and going out circuit, Single Chip Microcomputer (SCM) system is mounted with in several profile lattice point and distinguishes foot type program, its delivery outlet line P3.7 is connected to the input of music circuit, set of cells is as the power supply of this device.
The top of described rectangular frame and the two arrays of electrodes of bottom are dielectrically separated from by the both sides of this framework and are support.
Described Single Chip Microcomputer (SCM) system includes: one piece of single-chip microcomputer and crystal oscillating circuit thereof and electrification reset circuit, random access memory circuit, wherein, random access memory circuit is made up of the RAM of one piece of 74HC373 and 64KB.
Described seal in and go out circuit be made up of 9 pieces of 74HC164 cascades: the signal serial input terminal A of first piece of 74HC164 is connected to the delivery outlet line P1.2 of Single Chip Microcomputer (SCM) system, its highest order outfan QH is connected to the signal serial input terminal A of second piece, the highest order outfan QH of second piece is connected to the signal serial input terminal A of the 3rd piece, the like, the signal parallel outfan of raw 8 (position/blocks) of common property × 9 pieces=72;The clear terminal of 9 pieces of 74HC164 and signal serial input terminal B are all connected to the positive pole of set of cells, and their clock signal input terminal is all connected to the delivery outlet line P1.3 of Single Chip Microcomputer (SCM) system.
Described be incorporated to go here and there be made up of into circuit 9 pieces of 74HC165 cascades: being incorporated to of last block 74HC165 is gone here and there out signal end QH and is connected to the signal serial input terminal DS of previous piece, the like, the signal parallel input of raw 8 (position/blocks) of common property × 9 pieces=72, each signal parallel input also each connects the pull down resistor negative pole to set of cells, being incorporated to of first piece of 74HC165 is gone here and there out signal end QH and is connected to the input port line P1.5 of Single Chip Microcomputer (SCM) system, the data loading control end/PL that is incorporated to of these 9 pieces of 74HC165 is all connected to the delivery outlet line P1.6 of Single Chip Microcomputer (SCM) system, their clock signal input terminal is all connected to the delivery outlet line P1.7 of Single Chip Microcomputer (SCM) system, their clock enables input/CE and is all connected to the negative pole of set of cells.
The row, column electrode group wire of this device arranges in length and breadth in space, forms a network structure, and row electrode and row electrode be mistake at spatial intersecting, and at ordinary times not in contact with, only just being come in contact when trampling together, the point interlocking or contacting just is called lattice point.Being trampled the area area sum equal to the grid of its encirclement in region, the number of the lattice point surrounded in it is not equal to lattice number therein, but, the number of this lattice point obviously can reflect is trampled the size of region area.Therefore, in several profiles of the present invention, the method for lattice point differentiation foot type is included in several profile in lattice point differentiation foot type program, and for distinguishing the foot type of people and toy, its step is as follows:
Step one, initialization single-chip microcomputer:
MOV_SP, 2FH ' storehouse initial value,
CLR_P1.2, P1.3, P1.7, P3.7 ' prepare output signal,
SETB_P1.5, P1.6 ' it is ready for signal,
CLR_F0' initialize tracing area lattice point end-of-job flag bit,
Step 2, initialization program:
CLR_R5, CLR_R6’R5, R6The respectively low byte of lattice point enumerator and high byte,
Loop1:MOV_R0, #Number_COL ' Number_COL is the number of wire in row electrode group,
Loop2:MOV_R3, #Number_ROW ' Number_ROW is the number of wire in row electrode group,
SETB_P1.2, NOP, CLR_P1.2 ' reset the outfan of 9 pieces of 74HC164 sealing in and going out circuit,
DJNZ_R3, Loop2 ' R3For cycle counter,
DJNZ_R0, Loop1 ' R0For cycle counter,
MOV_DPH, #00H, MOV_DPL, #00H ' initialization data pointer DPTR,
' it is split up into the x of two 8, y-coordinate pointer,
The region that step 3, beginning Scanning Detction are trampled:
1) by single-chip microcomputer to first wire one high level of output in row electrode group, then, detecting the level of wire in row electrode group by root, it is low, high level represents with #00H, #01H respectively and stores it: MOV_DPTR, #00H or MOV_DPTR, #01H, wherein, has often detected a row electrode group wire, y-coordinate pointer will point to next root row electrode group wire: INC_DPL
If all conducting checked in complete row electrode group, i.e. DPL=Number_COL, x, next root row electrode group wire of y-coordinate pointed: INC_DPH, MOV_DPL, #00H;
2) by single-chip microcomputer, next the root wire in row electrode group is exported a high level, then, the level of wire in row electrode group is detected by root, it is low, high level is respectively with #00H, #01H represents and stores it, wherein, has often detected a row electrode group wire, y-coordinate pointer will point to next root row electrode group wire
If all conducting checked in complete row electrode group, i.e. DPL=Number_COL, x, next root row electrode group wire of y-coordinate pointed;
3) judge that whether the wire being currently at high level in row electrode group is beyond its last root:
A () DPH < Number_ROW, is not last root, jump to the 2 of this step 3) proceed Scanning Detction;
B () DPH=Number_ROW, beyond last root, performs next step;
Step 4, tracking also add up the lattice point trampled in region:
1) x, y-coordinate pointer DPTR:MOV_DPH, #01H, MOV_DPL, #01H are initialized;
2) temporary current x, y-coordinate pointer DPTR, is referred to as currently tracking coordinate pointer, takes out and check the data of current location from RAM: MOV_A, DPTR:
If a () these data are #00H, perform step 5;
If b () these data are #01H, check the neighbours { (DPH ← DPH-1 being positioned at the upper, right, lower of present co-ordinate position and left, DPL), (DPH, DPL ← DPL+1), (DPH ← DPH+1, DPL) with (DPH, DPL ← DPL-1) } four data at place, namely according to the lattice point number that the Rule of tracing area lattice point is corresponding by trampling the caused region contacted with row, column electrode group wire;
If being trampled lattice point number Grid >=Number that region surrounds, (Number is certain predetermined value), being judged as being subject to the trampling of foot of people signal an alert: SETB_P3.7, time delay about ten seconds, then removing this alarm signal: CLR_P3.7;Perform step 5;
Step 5, recover current x, y-coordinate pointer DPTR is current tracking coordinate pointer, it is pointed to next coordinate points: if changing coordinates point is already at the last position of one's own profession, namely during DPL=Number_COL-1, next coordinate points is (DPH ← DPH+1, DPL ← 1), otherwise, next coordinate points is (DPH, DPL ← DPL+1);
If step 6 x, y-coordinate pointer DPTR not yet points to last column, it may be assumed that DPH < Number_ROW-1, redirect the 2 of this step 4), continue to follow the tracks of and add up the lattice point trampled in region, no, then terminate this and follow the tracks of and statistical work;
Step 7, jump to step one, start a new wheel scan detection job.
Described in above-mentioned steps four, the rule of tracing area lattice point includes:
1) tracked region is characterized by: " each coordinate points in tracked region correspond to data #01H, it is necessary to outside tracked region or need the coordinate points between tracked region all to correspond to data #00H ";
2) tracking profile intervalometer is started, if the timing time of this intervalometer is put to predetermined number, reset single-chip microcomputer;
3) data that present co-ordinate position is corresponding are #01H, check the relation of the data corresponding with four, left adjoint point upper, right, lower of present co-ordinate position, determine the moving direction of present co-ordinate position, the path of this moving direction process is formed for the profile in this region, and the rule about mobile present co-ordinate position is as follows:
If a) data that its right adjoint point is corresponding are #01H, the data that it is upper and lower, left adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, right;
If b) data that adjoint point is corresponding below are #01H, on it, the data that right, left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place below;
If c) data that its left adjoint point is corresponding are #01H, on it, the data that right, lower section adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to its adjoint point place, left;
If d) data that above it, adjoint point is corresponding are #01H, it is right, under, data that left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place above it;
If the data that e) it is right, lower section adjoint point is corresponding are all #01H, the data that it is left, top adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, right;
If f) under it, data that left adjoint point is corresponding be all #01H, on it, data that right adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place below;
If the data that g) it is left, top adjoint point is corresponding are all #01H, the data that it is right, lower section adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, left;
If h) on it, data that right adjoint point is corresponding be all #01H, under it, data that left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place above it;
If i) data that its upper and lower adjoint point is corresponding are all #01H, the data that it is right, left adjoint point is corresponding are all #00H, and it is moved by its left adjoint point, just present co-ordinate position is shifted to adjoint point place above it;
If j) data that its upper and lower adjoint point is corresponding are all #01H, the data that it is right, left adjoint point is corresponding are all #00H, and it is moved by its right adjoint point, just present co-ordinate position is shifted to adjoint point place below;
If the data that k) it is right, left adjoint point is corresponding are all #01H, the data that its upper and lower adjoint point is corresponding are all #00H, and it is moved by adjoint point above it, just present co-ordinate position are shifted to its adjoint point place, right;
If the data that l) it is right, left adjoint point is corresponding are all #01H, the data that its upper and lower adjoint point is corresponding are all #00H, and it is moved by adjoint point below, just present co-ordinate position are shifted to its adjoint point place, left;
If m) data that above it, adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to its adjoint point place, right;
If n) data that its right adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to adjoint point place below;
If o) data that adjoint point is corresponding below are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to its adjoint point place, left;
If p) data that its left adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to adjoint point place above it;
If q) present co-ordinate position is upper, right, lower four data corresponding with four, left adjoint point are all #00H, at this moment, this " unusual corner " is exited in trial: data corresponding for present co-ordinate position are set to #00H, the coordinate figure finally deposited into is taken out from the scratchpad area (SPA) in RAM, giving present co-ordinate position pointer this coordinate figure is (DPH, DPL), namely return to the coordinate place of previous position, then, continue to follow the tracks of next lattice point according to the rule of above-mentioned tracing area lattice point, if able to find next lattice point, continue to the work of tracing area lattice point, otherwise, " the unusual corner " that run into declares the end-of-job of tracing area lattice point, at this moment, the flag bit of end-of-job is set: F0=1, what detect is trampled the lattice point number Grid=R in region6R5, then, reset R6R5, terminate the work of epicycle tracing area lattice point;
4) move before present co-ordinate position, lattice point enumerator F every time6R5Plus 1;
5) move before present co-ordinate position every time, data rewriting corresponding for present co-ordinate position is become #FFH;
6) in above-mentioned all rules, other data equivalence of described data #00H and non-#01H.
It is an advantage of the invention that, two-dimensional coordinate system is set up according to the arrangement of row, column two electrode group wire, just can lattice point that it surrounds is followed the tracks of and added up to the region trampled of Scanning Detction, block-by-block, number according to lattice point judges foot type and decides whether to send chimes of doom by single-chip microcomputer;In described several profile, the method for lattice point differentiation foot type decreases workload of operation, improves the efficiency that detection is analyzed, it is adaptable to burglar alarm works.
Accompanying drawing explanation
It is further elaborated with the present invention below against accompanying drawing.
Fig. 1 is the structural representation of the present invention.
Fig. 2 is the schematic diagram of Single Chip Microcomputer (SCM) system.
Fig. 3 is the schematic diagram sealing in and going out circuit.
Fig. 4 is the schematic diagram of the rule of tracing area lattice point, including situation (a)-(q);Wherein, the center of each situation is present co-ordinate position, dotted arrow represents the source direction of current location, solid arrow represents the moving direction of current location, data 0 and other data of non-1 equivalence, situation (q) represents follows the tracks of " the unusual corner " being likely encountered in profile process.
Fig. 5 is incorporated to the schematic diagram gone here and there into circuit.
Fig. 6 is the example of the rule of application tracking region lattice point, and wherein, a and b is starting point and the terminating point of tracing area lattice point respectively, and c is that tracing area lattice point process end is likely not to have the lattice point that can trace into.
In figure, 1. rectangular frame, the side of rectangular frame 1 11. (width), the side of rectangular frame 1 12. (length), 13. (OK) the electrode group on rectangular frame 1 base plate, 14. be positioned at (row) the electrode group on the top of rectangular frame, 21.-29.74HC164,31.-39.74HC165.
Detailed description of the invention
The present invention includes: rectangular frame (1), set of cells, a Single Chip Microcomputer (SCM) system, seals in and goes out circuit, be incorporated to and go here and there lattice point in circuit, music circuit and number profile and distinguish foot type program.
Rectangular frame (1) is as shown in Figure 1, its top and bottom are respectively arranged with one group of electrode (14) and (13), the wire of each group of electrode is independent of one another, spacing is uniform, the direction of the arrangements of conductors of two arrays of electrodes (14) and (13) is mutually perpendicular to (not being strict with), it is dielectrically separated from by the both sides (11) of framework (1) or (12) and is support, outer likeness in form step tread pad.
Single Chip Microcomputer (SCM) system is not as in figure 2 it is shown, draw electrification reset circuit and the clock circuit of single-chip microcomputer in figure.Assuming that row, column electrode group is respectively arranged with 256 wires, can produce 256 × 256=65536 cross point, there is two states in each cross point: separate or contact, and 64KB=64 × 1024=64 × 210=65536, accordingly, it would be desirable to extension 64KB off-chip RAM.Single-chip microcomputer needs to select in 8051 series and has 40 feet, it is desirable to it is Flash program memorizer in strap, and at this moment, the pin/EA of its single-chip microcomputer receives positive source.
Described seal in and go out circuit as shown in Figure 3, it is made up of nine pieces 8 SI PO shift register 74HC164 (21)-(29) cascade, its 72 outfan QA, QB, QC, QD, QE ... be consecutively connected to respectively rectangular frame (1) bottom row electrode group (13) in every plain conductor.
Described being incorporated to is gone here and there into circuit as shown in Figure 5, it is incorporated to by nine pieces 8 and goes here and there out shift register 74HC165 (31)-(39) cascade and form, its 72 output terminals A, B, C, D, E ... be consecutively connected to respectively rectangular frame (1) top row electrode group (14) in every plain conductor.These 72 output terminals A, B, C, D, E ... each also each connect the pull down resistor negative terminal to power supply of one~30K Ω because succinct reason, Fig. 5 does not all draw these pull down resistors.
Music circuit adopts music integrated circuit to coordinate speaker, or only uses a buzzer, is used for sending chimes of doom.
At ordinary times, in row, column electrode group, wire spatially intersects but is not in contact with, and the electromotive force of the wire in row electrode group pulled down to power supply ground, and single-chip microcomputer exports the high level wire to row electrode group by sealing in and going out circuit by root scan-type.When being subject to trampling, in the region trampled, the wire in row, column electrode group comes in contact, and sequentially makes the wire being arranged in the row electrode group of these contact points be also at high level.First the lattice point place place being positioned at the upper left corner can be chosen and make the initial point of coordinate system, coordinate system is set up according to the orientation of wire in row, column electrode group, single-chip microcomputer obtains the high and low level of spatially lattice point by Scanning Detction, is stored in 64KB off-chip RAM.So, the situation in region that whole anti-pet tread type alarm guards against has been meant that with two numbers of #00H, #01H.
In number profile, lattice point distinguishes the method that the step 4 of foot type program describes " follow the tracks of and add up the lattice point being trampled in region ", it is according to row, column detection ordering from left to right, from the top down, find and represent the data #01H of electrode contact point trampled, to the last last coordinate points of a line searched complete till.When finding data #01H each time, first temporary current x, y-coordinate pointer DPTR, it is referred to as currently tracking coordinate pointer, then, follow " rule of tracing area lattice point " (as described in Figure 4), start to follow the tracks of the lattice point trampled in region (representing with data #01H) that from then on coordinate points is initial.In tracking process, x, y-coordinate position indicator pointer coordinate points one by one ground is mobile, and before moving each time, the data of changing coordinates point are rewritten into #FFH, lattice point enumerator R6R5Plus 1.Terminate epicycle when running into " unusual corner " and can walk without the route of retreat again and follow the tracks of the work of also statistical regions lattice point, the number Grid=R of the lattice point obtained6R5.The lattice point that the region that people tramples surrounds tramples the lattice point surrounded significantly more than toy, may determine that the character trampled accordingly.
Fig. 6 describes the example of an application " rule of tracing area lattice point ".
Output or the input port line of Single Chip Microcomputer (SCM) system of the present invention can be converted according to practical situation, the number of the wire that described column or row electrode group comprises and its spacing, seal in and go out, are incorporated to and go here and there out the number of shift register and the capacity of random access memory can increase according to Scanning Detction principle of the present invention or reduce accordingly.

Claims (1)

1. the method that in anti-pet tread type alarm, in number profile, lattice point distinguishes foot type, it is with a kind of anti-pet tread type alarm for physical basis, in the region that employing singlechip technology detection is trampled, the number of lattice point is to distinguish the foot type of people and toy, described anti-pet tread type alarm is by a rectangular frame, set of cells, Single Chip Microcomputer (SCM) system, seal in and go out circuit, it is incorporated to go here and there and forms into circuit and music circuit, wherein, the top of rectangular frame and bottom are respectively arranged with one group of electrode, it is referred to as row electrode group and row electrode group, the plain conductor of each group of electrode is independent of one another, spacing is uniform, exposed, the direction of the arrangements of conductors of two arrays of electrodes is mutually perpendicular to, the wire of row electrode group is sequentially connected respectively to and is incorporated to each parallel input terminal gone here and there into circuit, the wire of row electrode group is sequentially connected respectively to each parallel output terminal sealing in and going out circuit, the top of described rectangular frame and the two arrays of electrodes of bottom are dielectrically separated from by the both sides of this framework and are support;Single Chip Microcomputer (SCM) system includes one piece of single-chip microcomputer and crystal oscillating circuit thereof and electrification reset circuit and random access memory circuit, and this single-chip microcomputer is selected has 40 feet in 8051 series, its delivery outlet line P3.7 is connected to the input of music circuit, and set of cells is as power supply;Described seal in and go out circuit be made up of 9 pieces of 74HC164 cascades: the signal serial input terminal A of first piece of 74HC164 is connected to the delivery outlet line P1.2 of single-chip microcomputer, its highest order outfan QH is connected to the signal serial input terminal A of second piece of 74HC164, the highest order outfan QH of second piece of 74HC164 is connected to the signal serial input terminal A of the 3rd piece of 74HC164, the like, the signal parallel outfan of raw 8/block × 9 piece=72 of common property;The clear terminal of 9 pieces of 74HC164 and signal serial input terminal B are all connected to the positive pole of set of cells, and their clock signal input terminal is all connected to the delivery outlet line P1.3 of Single Chip Microcomputer (SCM) system;Described be incorporated to go here and there be made up of into circuit 9 pieces of 74HC165 cascades: being incorporated to of last block 74HC165 is gone here and there out signal end QH and is connected to the signal serial input terminal DS of previous piece of 74HC165, the like, the signal parallel input of raw 8/block × 9 piece=72 of common property, each signal parallel input also each connects the pull down resistor negative pole to set of cells, being incorporated to of first piece of 74HC165 is gone here and there out signal end QH and is connected to the input port line P1.5 of single-chip microcomputer, the data loading control end PL that is incorporated to of these 9 pieces of 74HC165 is all connected to the delivery outlet line P1.6 of single-chip microcomputer, their clock signal input terminal is all connected to the delivery outlet line P1.7 of single-chip microcomputer, their clock enables input CE and is all connected to the negative pole of set of cells;It is characterized in that, in described anti-pet tread type alarm, in number profile, the method for lattice point differentiation foot type sets up two-dimensional coordinate system according to the arrangement of row, column two electrode group wire, by the region that single-chip microcomputer Scanning Detction is trampled, the lattice point that it surrounds is followed the tracks of and added up to block-by-block, number according to lattice point judges foot type, comprises the following steps:
Step one, initialization single-chip microcomputer:
MOV_SP, 2FH ' storehouse initial value,
CLR_P1.2, P1.3, P1.7, P3.7 ' prepare output signal,
SETB_P1.5, P1.6 ' it is ready for signal,
CLR_F0' initialize tracing area lattice point end-of-job flag bit,
Step 2, initialization program:
CLR_R5, CLR_R6’R5, R6The respectively low byte of lattice point enumerator and high byte,
Loop1:MOV_R0, #Number_COL ' Number_COL is the number of wire in row electrode group,
Loop2:MOV_R3, #Number_ROW ' Number_ROW is the number of wire in row electrode group,
SETB_P1.2, NOP, CLR_P1.2 ' reset the outfan of 74HC164 sealing in and going out circuit,
DJNZ_R3, Loop2 ' R3For cycle counter,
DJNZ_R0, Loop1 ' R0For cycle counter,
MOV_DPH, #00H, MOV_DPL, #00H ' initialization data pointer DPTR,
' it is split up into the x of two 8, y-coordinate pointer,
The region that step 3, beginning Scanning Detction are trampled:
1) by single-chip microcomputer to first wire one high level of output in row electrode group, then, detecting the level of wire in row electrode group by root, it is low, high level represents with #00H, #01H respectively and stores it: MOV_DPTR, #00H or MOV_DPTR, #01H, wherein, has often detected a row electrode group wire, y-coordinate pointer will point to next root row electrode group wire: INC_DPL
If all conducting checked in complete row electrode group, i.e. DPL=Number_COL, x, next root row electrode group wire of y-coordinate pointed: INC_DPH, MOV_DPL, #00H;
2) by single-chip microcomputer, next the root wire in row electrode group is exported a high level, then, the level of wire in row electrode group is detected by root, it is low, high level is respectively with #00H, #01H represents and stores it, wherein, has often detected a row electrode group wire, y-coordinate pointer will point to next root row electrode group wire
If all conducting checked in complete row electrode group, i.e. DPL=Number_COL, x, next root row electrode group wire of y-coordinate pointed;
3) judge that whether the wire being currently at high level in row electrode group is beyond its last root:
A () DPH < Number_ROW, is not last root, jump to the 2 of this step) proceed Scanning Detction;
B () DPH=Number_ROW, beyond last root, performs next step;
Step 4, tracking also add up the lattice point trampled in region:
1) x, y-coordinate pointer DPTR:MOV_DPH, #01H, MOV_DPL, #01H are initialized;
2) temporary current x, y-coordinate pointer DPTR, is referred to as currently tracking coordinate pointer, takes out and check the data of current location from RAM: MOV_A, DPTR:
If a () these data are #00H, perform the 3 of this step 4);
If b () these data are #01H, check the neighbours { (DPH ← DPH-1 being positioned at the upper, right, lower of present co-ordinate position and left, DPL), (DPH, DPL ← DPL+1), (DPH ← DPH+1, DPL) with (DPH, DPL ← DPL-1) } four data at place, namely according to the lattice point number that the Rule of tracing area lattice point is corresponding by trampling the caused region contacted with row, column electrode group wire;
If being certain predetermined value by trampling the lattice point number Grid >=Number, Number that region surrounds, being judged as being subject to the trampling of foot of people signal an alert: SETB_P3.7, time delay ten seconds, then removing this alarm signal: CLR_P3.7;Perform step 5;
Step 5, recover current x, y-coordinate pointer DPTR is current tracking coordinate pointer, it is pointed to next coordinate points: if changing coordinates point is already at the last position of one's own profession, namely during DPL=Number_COL-1, next coordinate points is (DPH ← DPH+1, DPL ← 1), otherwise, next coordinate points is (DPH, DPL ← DPL+1);
If step 6 x, namely y-coordinate pointer DPTR not yet points to last column: DPH < Number_ROW-1, the 2 of jump procedure four), continue to follow the tracks of and add up the lattice point trampled in region, no, then terminate this and follow the tracks of and statistical work;
Step 7, jump to step one, start a new wheel scan detection job;
Described in above-mentioned steps four, the rule of tracing area lattice point includes:
1) tracked region is characterized by: " each coordinate points in tracked region correspond to data #01H, it is necessary to outside tracked region or need the coordinate points between tracked region all to correspond to data #00H ";
2) tracking profile intervalometer is started, if the timing time of this intervalometer is put to predetermined number, reset single-chip microcomputer;
3) data that present co-ordinate position is corresponding are #01H, check the relation of the data corresponding with four, left adjoint point upper, right, lower of present co-ordinate position, determine the moving direction of present co-ordinate position, the path of this moving direction process is formed for the profile in this region, and the rule about mobile present co-ordinate position is as follows:
If a) data that its right adjoint point is corresponding are #01H, the data that it is upper and lower, left adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, right;
If b) data that adjoint point is corresponding below are #01H, on it, the data that right, left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place below;
If c) data that its left adjoint point is corresponding are #01H, on it, the data that right, lower section adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to its adjoint point place, left;
If d) data that above it, adjoint point is corresponding are #01H, it is right, under, data that left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place above it;
If the data that e) it is right, lower section adjoint point is corresponding are all #01H, the data that it is left, top adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, right;
If f) under it, data that left adjoint point is corresponding be all #01H, on it, data that right adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place below;
If the data that g) it is left, top adjoint point is corresponding are all #01H, the data that it is right, lower section adjoint point is corresponding are all #00H, just present co-ordinate position are shifted to its adjoint point place, left;
If h) on it, data that right adjoint point is corresponding be all #01H, under it, data that left adjoint point is corresponding be all #00H, just present co-ordinate position is shifted to adjoint point place above it;
If i) data that its upper and lower adjoint point is corresponding are all #01H, the data that it is right, left adjoint point is corresponding are all #00H, and it is moved by its left adjoint point, just present co-ordinate position is shifted to adjoint point place above it;
If j) data that its upper and lower adjoint point is corresponding are all #01H, the data that it is right, left adjoint point is corresponding are all #00H, and it is moved by its right adjoint point, just present co-ordinate position is shifted to adjoint point place below;
If the data that k) it is right, left adjoint point is corresponding are all #01H, the data that its upper and lower adjoint point is corresponding are all #00H, and it is moved by adjoint point above it, just present co-ordinate position are shifted to its adjoint point place, right;
If the data that l) it is right, left adjoint point is corresponding are all #01H, the data that its upper and lower adjoint point is corresponding are all #00H, and it is moved by adjoint point below, just present co-ordinate position are shifted to its adjoint point place, left;
If m) data that above it, adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to its adjoint point place, right;
If n) data that its right adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to adjoint point place below;
If o) data that adjoint point is corresponding below are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to its adjoint point place, left;
If p) data that its left adjoint point is corresponding are #00H, the data that its excess-three adjoint point is corresponding are all #01H, just present co-ordinate position are shifted to adjoint point place above it;
If q) present co-ordinate position is upper, right, lower four data corresponding with four, left adjoint point are all #00H, at this moment, this " unusual corner " is exited in trial: data corresponding for present co-ordinate position are set to #00H, the coordinate figure finally deposited into is taken out from the scratchpad area (SPA) in RAM, giving present co-ordinate position pointer this coordinate figure is (DPH, DPL), namely return to the coordinate place of previous position, then, continue to follow the tracks of next lattice point according to the rule of above-mentioned tracing area lattice point, if able to find next lattice point, continue to the work of tracing area lattice point, otherwise, " the unusual corner " that run into declares tracing area lattice point end-of-job, at this moment, the flag bit of end-of-job is set: F0=1, what detect is trampled the lattice point number Grid=R in region6R5, then, reset R6R5, terminate the work of epicycle tracing area lattice point;
4) move before present co-ordinate position, lattice point enumerator R every time6R5Plus 1;
5) move before present co-ordinate position every time, data rewriting corresponding for present co-ordinate position is become #FFH;
6) in above-mentioned all rules, other data equivalence of described data #00H and non-#01H.
CN201010228525.2A 2010-07-16 2010-07-16 The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type Expired - Fee Related CN102339514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010228525.2A CN102339514B (en) 2010-07-16 2010-07-16 The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010228525.2A CN102339514B (en) 2010-07-16 2010-07-16 The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type

Publications (2)

Publication Number Publication Date
CN102339514A CN102339514A (en) 2012-02-01
CN102339514B true CN102339514B (en) 2016-06-29

Family

ID=45515220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010228525.2A Expired - Fee Related CN102339514B (en) 2010-07-16 2010-07-16 The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type

Country Status (1)

Country Link
CN (1) CN102339514B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105261131B (en) 2015-10-12 2018-07-31 小米科技有限责任公司 A kind of method and apparatus sending alert notification messages

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0186534A1 (en) * 1984-11-16 1986-07-02 Thomson-Csf Manufacturing method for a linear pressure sensor
US4888581A (en) * 1988-04-06 1989-12-19 Aritech Corporation Pressure sensitive security system for tracking motion over a surface
CN201123668Y (en) * 2007-12-10 2008-10-01 车祎 Anti-theft foot pad
CN201285580Y (en) * 2008-10-28 2009-08-05 曾佳 Alarm door mat
CN201355514Y (en) * 2009-02-25 2009-12-02 中国石化股份胜利油田分公司海洋采油厂 Treadle type burglar alarm device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215318A (en) * 2001-01-16 2002-08-02 Maruyasu Industries Co Ltd Wireless mat switch device
JP2008146528A (en) * 2006-12-13 2008-06-26 Matsushita Electric Ind Co Ltd Apparatus for reporting intrusion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0186534A1 (en) * 1984-11-16 1986-07-02 Thomson-Csf Manufacturing method for a linear pressure sensor
US4888581A (en) * 1988-04-06 1989-12-19 Aritech Corporation Pressure sensitive security system for tracking motion over a surface
CN201123668Y (en) * 2007-12-10 2008-10-01 车祎 Anti-theft foot pad
CN201285580Y (en) * 2008-10-28 2009-08-05 曾佳 Alarm door mat
CN201355514Y (en) * 2009-02-25 2009-12-02 中国石化股份胜利油田分公司海洋采油厂 Treadle type burglar alarm device

Also Published As

Publication number Publication date
CN102339514A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
US9207822B1 (en) Contact identification and tracking on a capacitance sensing array
CN103970337A (en) Touch scanning method of touch screen and touch scanning control circuit and display device of touch screen
CN102902437A (en) Touch screen detection equipment and touch device
CN102023768A (en) A touch contact positioning method, system and video display terminal
TW201030576A (en) Multiple electrode touch sensitive device
CN106250889A (en) fingerprint recognition panel and driving method and display device
CN103677476A (en) Touch device and driving method thereof
CN102339514B (en) The method that in anti-pet tread type alarm and number profile thereof, lattice point distinguishes foot type
US10855927B2 (en) Event detecting device including an event signal generator and an output signal generator
CN105606948A (en) Circuit detection method and system
CN107742885A (en) Distribution network voltage power sensitivity method of estimation based on canonical match tracing
CN205028263U (en) Capacitance sensor
CN111426870A (en) Method, system and device for detecting running state of lead and computer equipment
CN111336985B (en) Monitoring method and device for goaf iron tower, storage medium and electronic equipment
US20200142518A1 (en) Capacitive touch sensor and method
CN102339511B (en) Anti-pet tread type alarm and measured area thereof are with the method distinguishing foot type
CN102981686B (en) A kind of method of capacitive touch screen architecture defects detection
CN102339513B (en) Anti-pet tread type alarm and method thereof for distinguishing foot type by measuring area with contour method
CN102339516B (en) Anti-pet tread type alarm and the method simultaneously measuring some region areas thereof
CN102339515B (en) Anti-pet tread type alarm and the method simultaneously measuring some zone lengths thereof
CN105183254A (en) Touch detection method and apparatus for touch screen and touch screen
CN102339512B (en) The method that anti-pet tread type alarm and measured zone length thereof distinguish foot type
CN202048885U (en) Magnetic induction type position detecting device
CN102981059B (en) A kind of capacitive touch screen architecture defect detecting method
CN109492853A (en) Model engineering amount calculates method, apparatus, storage medium and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Zeng Yi

Inventor before: Zeng Yi

Inventor before: Zhang Wenjuan

Inventor before: Zhang Haiming

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: CENG YI ZHANG WENJUAN ZHANG HAIMING TO: CENG YI

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160629

Termination date: 20190716

CF01 Termination of patent right due to non-payment of annual fee