CN106556311B - Intelligent measuring tape with switch and data acquisition method thereof - Google Patents
Intelligent measuring tape with switch and data acquisition method thereof Download PDFInfo
- Publication number
- CN106556311B CN106556311B CN201510634118.4A CN201510634118A CN106556311B CN 106556311 B CN106556311 B CN 106556311B CN 201510634118 A CN201510634118 A CN 201510634118A CN 106556311 B CN106556311 B CN 106556311B
- Authority
- CN
- China
- Prior art keywords
- infrared transceiver
- gray code
- tape measure
- tape
- code channel
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000011897 real-time detection Methods 0.000 claims description 4
- 206010028347 Muscle twitching Diseases 0.000 claims description 3
- 230000003068 static effect Effects 0.000 claims description 3
- 230000002708 enhancing effect Effects 0.000 abstract 1
- 238000005259 measurement Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 3
- 238000010521 absorption reaction Methods 0.000 description 3
- 239000006231 channel black Substances 0.000 description 3
- 241001499723 Notothenia microlepidota Species 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000000844 transformation Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000031700 light absorption Effects 0.000 description 1
Images
Landscapes
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
Abstract
本发明公开了一种带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。
The present invention discloses an intelligent tape measure with a switch and a data reading method thereof. By directly setting a Gray code on the tape measure, and repeatedly setting the Gray code on the tape measure according to a specified period, rather than printing a Gray code disk and setting it in the intelligent tape measure body, the volume of the intelligent tape measure is reduced; at the same time, each Gray code in a period has a black code or a white code of a certain width, and the Gray code on the tape measure can be read by a reading device, replacing the traditional scale reading method, and enhancing the stability of the reading. Since a switch device for controlling the opening or closing of an infrared transceiver is also provided, the infrared transceiver is powered on and works only when the switch is turned on, and the infrared reading devices on both sides of the tape measure are turned on in time-sharing mode, rather than turned on at the same time, thereby saving electric energy.
Description
技术领域technical field
本发明涉及智能卷尺技术领域,尤其涉及的是一种带开关的智能卷尺及其数据获取方法。The invention relates to the technical field of intelligent tape measures, in particular to an intelligent tape measure with a switch and a data acquisition method thereof.
背景技术Background technique
格雷码属于可靠性编码,是一种错误最小化的编码方式。因为,虽然自然二进制码可以直接由数/模转换器转换成模拟信号,但在某些情况,例如从十进制的3转换为4时二进制码的每一位都要变,能使数字电路产生很大的尖峰电流脉冲。而格雷码则没有这一缺点,它在相邻位间转换时,只有一位产生变化。它大大地减少了由一个状态到下一个状态时逻辑的混淆。由于这种编码相邻的两个码组之间只有一位不同,因而在用于方向的直线位移量-数字量的转换中,当直线位移量发生微小变化(而可能引起数字量发生变化时,格雷码仅改变一位,这样与其它编码同时改变两位或多位的情况相比更为可靠,即可减少出错的可能性。Gray code belongs to reliability coding and is an error-minimizing coding method. Because, although the natural binary code can be directly converted into an analog signal by a digital-to-analog converter, in some cases, such as converting from decimal 3 to 4, every bit of the binary code must be changed, which can make the digital circuit produce very Large spike current pulses. The Gray code does not have this disadvantage. When it is converted between adjacent bits, only one bit changes. It greatly reduces the confusion of logic when going from one state to the next. Since there is only one bit difference between the two adjacent code groups of this encoding, in the conversion of the linear displacement amount for the direction to the digital amount, when the linear displacement amount changes slightly (and may cause the digital amount to change) , the Gray code only changes one bit, which is more reliable than the situation where other codes change two or more bits at the same time, which can reduce the possibility of errors.
现有技术中多采用格雷码盘用于检测或计数,在编码器或电刷装置读取格雷码盘时常会出现跳刷或漏刷的现象,即由于电刷装置转速过快,出现电刷装置弹跳过某个格雷码,导致计数错误的现象,不利于格雷码的使用。同时,将格雷码盘设置在智能卷尺本体内占用较大内部空间,使得装置体积较大。而且,现有技术中的智能卷尺都是无节电功能的智能卷尺。In the prior art, gray code disks are mostly used for detection or counting. When the encoder or the brush device reads the gray code disk, the phenomenon of brush skipping or brush leakage often occurs, that is, because the speed of the brush device is too fast, the brushes appear. The device bounces over a certain Gray code, resulting in a wrong count, which is not conducive to the use of the Gray code. At the same time, arranging the Gray code disc in the smart tape measure body occupies a large internal space, making the device larger. Moreover, the smart tape measures in the prior art are all smart tape measures without power saving function.
因此,现有技术还有待于改进和发展。Therefore, the existing technology still needs to be improved and developed.
发明内容SUMMARY OF THE INVENTION
鉴于上述现有技术的不足,本发明的目的在于提供一种带开关的智能卷尺,旨在解决现有技术中在卷尺带上印制长度刻度时读数易产生误差,或是在卷尺内部设置格雷码盘导致装置体积较大,同时智能卷尺无节电功能的缺陷。In view of the above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide an intelligent tape measure with a switch, which aims to solve the problem that in the prior art, when the length scale is printed on the tape measure tape in the prior art, the reading error is prone to occur, or the gray scale is arranged inside the tape measure. The code disc causes the device to be bulky, and the smart tape measure has no power-saving feature.
本发明的技术方案如下:The technical scheme of the present invention is as follows:
一种带开关的智能卷尺,其中,包括智能卷尺本体,及设置在所述智能卷尺本体内并可抽出的卷尺带,所述卷尺带的正面和背面均设置至少一个格雷码道,所述格雷码道中的格雷码按指定周期重复设置;所述智能卷尺本体内还设置有与格雷码道一一对应、用于读取格雷码道中格雷码的红外收发装置组,及用于控制所述红外收发装置组开启或关闭的开关装置,所述开关装置与所述红外收发装置组电连接;所述开关装置为按钮开关或拨动开关;所述红外收发装置组包括与所述卷尺带正面格雷码道正对的低位红外收发装置组,和与所述卷尺带背面格雷码道正对的高位红外收发装置组;所述低位红外收发装置组在开关装置置于开启状态时开启,所述高位红外收发装置组保持待机或关闭状态。A smart tape measure with a switch, which includes a smart tape measure body, and a tape measure tape which is arranged in the smart tape measure body and can be drawn out. The Gray code in the code channel is repeatedly set according to a specified period; the intelligent tape measure body is also provided with an infrared transceiver group corresponding to the Gray code channel one-to-one, for reading the Gray code in the Gray code channel, and for controlling the infrared A switch device for turning on or off the transceiver group, the switch device is electrically connected with the infrared transceiver group; the switch device is a button switch or a toggle switch; the infrared transceiver group includes a grayscale on the front of the tape measure tape The low-position infrared transceiver device group is directly opposite to the code channel, and the high-position infrared transceiver device group is directly opposite to the Gray code channel on the back of the tape measure tape; the low-position infrared transceiver device group is turned on when the switch device is turned on, and the high-position infrared transceiver device group is turned on. The IR transceiver group remains on standby or off.
所述带开关的智能卷尺,其中,所述卷尺带的正面和背面均从下至上设置有3个格雷码道。In the smart tape measure with switch, the front and back surfaces of the tape measure are provided with 3 Gray code channels from bottom to top.
所述带开关的智能卷尺,其中,所述卷尺带的正面设置低三位格雷码道,分别为第一位格雷码道、第二位格雷码道及第三位格雷码道。The smart tape measure with switch, wherein, the front of the tape measure tape is provided with three lower gray code channels, which are the first gray code channel, the second gray code channel, and the third gray code channel.
所述带开关的智能卷尺,其中,所述智能卷尺本体内正对卷尺带正面的一侧设置的低位红外收发装置组包括3个红外收发装置,分别为第一红外收发装置、第二红外收发装置及第三红外收发装置;其中,所述第一红外收发装置正对所述第一位格雷码道,所述第二红外收发装置正对所述第二位格雷码道,所述第三红外收发装置正对所述第三位格雷码道。The smart tape measure with switch, wherein the low-position infrared transceiver device group disposed on the side of the smart tape measure body facing the front of the tape measure tape includes three infrared transceiver devices, which are a first infrared transceiver device and a second infrared transceiver device. device and a third infrared transceiver; wherein, the first infrared transceiver is facing the first Gray code channel, the second infrared transceiver device is facing the second Gray code channel, the third The infrared transceiver is facing the third Gray code channel.
所述带开关的智能卷尺,其中,所述第一红外收发装置在开关装置置于打开状态时开启,所述第二红外收发装置及第三红外收发装置保持待机或关闭状态。In the smart tape measure with switch, the first infrared transceiver is turned on when the switch is turned on, and the second infrared transceiver and the third infrared transceiver remain in a standby or off state.
所述带开关的智能卷尺,其中,所述卷尺带的背面设置高三位格雷码道,分别为第四位格雷码道、第五位格雷码道及第六位格雷码道。In the smart tape measure with switch, wherein, the back of the tape measure tape is provided with gray code channels with high three digits, which are respectively the fourth gray code channel, the fifth gray code channel and the sixth gray code channel.
所述带开关的智能卷尺,其中,所述智能卷尺本体内正对卷尺带背面的一侧设置的高位红外收发装置组包括3个红外收发装置,分别为第四红外收发装置、第五红外收发装置及第六红外收发装置;其中,所述第四红外收发装置正对所述第四位格雷码道,所述第五红外收发装置正对所述第五位格雷码道,所述第六红外收发装置正对所述第六位格雷码道。The smart tape measure with switch, wherein, the high-level infrared transceiver device group disposed on the side of the smart tape measure body facing the back of the tape measure tape includes 3 infrared transceiver devices, which are the fourth infrared transceiver device and the fifth infrared transceiver device. device and a sixth infrared transceiver; wherein, the fourth infrared transceiver is facing the fourth Gray code channel, the fifth infrared transceiver device is facing the fifth Gray code channel, the sixth The infrared transceiver device is facing the sixth Gray code channel.
一种带开关的智能卷尺的数据获取方法,其中,包括以下步骤:A data acquisition method for a smart tape measure with a switch, comprising the following steps:
A、当检测到开关装置处于打开状态时,则与所述卷尺带正面格雷码道正对的低位红外收发装置组开启,并实时检测低位红外收发装置组是否有脉冲产生;A. When it is detected that the switch device is in an open state, the low-level infrared transceiver group that is directly opposite to the gray code channel on the front of the tape measure tape is turned on, and real-time detection of whether the low-level infrared transceiver group has pulse generation;
B、当检测到低位红外收发装置组的低位脉冲时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数;B. When the low-level pulse of the low-level infrared transceiver group is detected, the low-level infrared transceiver group and the high-level infrared transceiver group are both turned on, and when the tape measure tape is twitched, the real-time reading of the tape measure on the Gray code track reading;
C、当检测卷尺带由抽动状态变为静止状态时,根据所述低位红外收发装置组获取的第一当前读数,及所述高位红外收发装置组获取的第二当前读数,获取智能卷尺的当前读数。C. When detecting that the tape measure tape changes from a twitching state to a static state, obtain the current reading of the smart tape measure according to the first current reading obtained by the low-level infrared transceiver group and the second current reading obtained by the high-level infrared transceiver group. reading.
有益效果:本发明所述的带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。Beneficial effects: The intelligent tape measure with switch and the data reading method thereof of the present invention directly set the Gray code on the tape measure tape, and repeatedly set the Gray code on the tape measure tape according to a specified period, instead of printing the Gray code The disc is arranged in the body of the smart tape measure, reducing the volume of the smart tape measure; at the same time, each Gray code in a cycle has a black code or white code with a certain width, and the Gray code on the tape measure can be read by the reading device. , which replaces the traditional scale reading method and enhances the stability of the reading. Since a switch device for controlling the opening or closing of the infrared transceiver is also provided, the infrared transceiver can only be powered on when the switch is turned on, and the infrared reading devices on both sides of the tape measure are opened at different times, not at the same time. Electricity is saved.
附图说明Description of drawings
图1为本发明所述带开关的智能卷尺较佳实施例的结构示意图。FIG. 1 is a schematic structural diagram of a preferred embodiment of the smart tape measure with switch according to the present invention.
图2为本发明所述带开关的智能卷尺较佳实施例的爆炸图。FIG. 2 is an exploded view of a preferred embodiment of the smart tape measure with switch according to the present invention.
图3为本发明所述带开关的智能卷尺较佳实施例中卷尺带正面的示意图。FIG. 3 is a schematic diagram of the front side of the tape measure in the preferred embodiment of the smart tape measure with switch according to the present invention.
图4为本发明所述带开关的智能卷尺较佳实施例中卷尺带背面的示意图。4 is a schematic diagram of the back of the tape measure in the preferred embodiment of the smart tape measure with switch according to the present invention.
图5为本发明所述带开关的智能卷尺的数据读取方法较佳实施例的流程图。FIG. 5 is a flow chart of a preferred embodiment of the data reading method of the smart tape measure with switch according to the present invention.
具体实施方式Detailed ways
本发明提供一种带开关的智能卷尺及其数据读取方法,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention provides an intelligent tape measure with a switch and a data reading method thereof. In order to make the purpose, technical solutions and effects of the present invention clearer and clearer, the present invention is further described below in detail. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
请同时参见图1-图2,其中图1是本发明所述带开关的智能卷尺较佳实施例的结构示意图,图2是本发明所述带开关的智能卷尺较佳实施例的爆炸图,所述基于带开关的智能卷尺,包括智能卷尺本体100,及设置在所述智能卷尺本体100内并可抽出的卷尺带200,所述卷尺带200的正面和背面均设置至少一个格雷码道210,所述格雷码道210中的格雷码按指定周期重复设置;所述智能卷尺本体100内还设置有与格雷码道一一对应、用于读取格雷码道210中格雷码的红外收发装置组300,及用于控制所述红外收发装置组300开启或关闭的开关装置400,所述开关装置400与所述红外收发装置组300电连接;所述开关装置400为按钮开关或拨动开关;所述红外收发装置组300包括与所述卷尺带正面格雷码道210正对的低位红外收发装置组,和与所述卷尺带背面格雷码道210正对的高位红外收发装置组;所述低位红外收发装置组在开关装置400置于开启状态时开启,所述高位红外收发装置组保持待机或关闭状态。Please refer to FIGS. 1-2 at the same time, wherein FIG. 1 is a schematic structural diagram of a preferred embodiment of the smart tape measure with a switch according to the present invention, and FIG. 2 is an exploded view of the preferred embodiment of the smart tape measure with a switch according to the present invention, The smart tape measure based on the tape switch includes a smart
当用户需使用所述带开关的智能卷尺进行长度测量时,则将所述开关装置400打到“ON”状态,从而使得所述红外收发装置组300中的低位红外收发装置组打开,当检测到低位红外收发装置组中有脉冲产生时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,此时所述红外收发装置组300可向卷尺带200上发送红外光,并同时接收卷尺带200反射回来的光线,从而读取所述卷尺带200上格雷码对应的长度值。当用户无需再使用所述带开关的智能卷尺进行测量时,则将所述开关装置400打到“OFF”状态,从而使得所述红外收发装置组300关闭或进入待机状态,从而节省了电能。When the user needs to use the smart tape measure with switch to measure the length, the
具体实施时,所述智能卷尺本体100上还设置有用于显示智能卷尺的实时读数和状态的显示屏;所述智能卷尺本体100内还设置有用于将智能卷尺的数据发送至移动终端或接收移动终端发送数据的无线收发模块;所述智能卷尺本体100内还设置有用于供电的电源。更具体的,所述显示屏为E-ink显示屏、TN显示屏、STN显示屏或TFT显示屏;所述无线收发模块为蓝牙模块。During specific implementation, the smart
进一步的,如图3和图4所示,所述卷尺带200的正反两面均设置有至少一个直线型的格雷码道210,所述格雷码道210上设置有多个计数格雷码。具体实施时,如图1和图2所示,所述智能卷尺本体100上设置有卷尺带出口110,所述智能卷尺本体100内靠近卷尺带出口110的位置处设置有与所述格雷码道210一一对应的红外收发装置组300。Further, as shown in FIG. 3 and FIG. 4 , at least one linear
由于将所有格雷码道210均设置在卷尺带200的同一面会增大卷尺带200的宽度,即增大卷尺带出口110的高度,也就是增加了智能卷尺本体100的厚度,从而增大了整个智能卷尺的体积,不便于用户携带。Since all the
若将格雷码道210设置在卷尺带200的两面时,则可降低卷尺带200的宽度,有利于减小智能卷尺的体积,便于用户携带。If the
例如,当卷尺带200上共设置有6个格雷码道210时,可在正面设置N个格雷码道(其中1≤N≤6,且N为正整数),在背面设置(6-N)个格雷码道。由于每一格雷码道210的高度均相等且是固定值,卷尺带200同一面的格雷码道210的高度之和等于卷尺带200的宽度,故当卷尺带200正面的格雷码道210的个数与卷尺带200背面的格雷码道210的个数相差1个或完全相等时,可将卷尺带200的宽度降至最低值。For example, when a total of 6
优选的,如图3和图4所示,所述卷尺带200的正面及背面均从下至上设置有3个格雷码道210;所述卷尺带200的正面设置低三位格雷码道,分别为第一位格雷码道211、第二位格雷码道212及第三位格雷码道213;所述卷尺带200的背面设置高三位格雷码道,分别为第四位格雷码道214、第五位格雷码道215及第六位格雷码道216。Preferably, as shown in FIG. 3 and FIG. 4 , the front and back of the
在具体实施时,如图3所示,所述第一位格雷码道211上设置有黑白依次交替出现的第一位格雷码道黑码和第一位格雷码道白码,所述第一位格雷码道黑码的最大宽度为2mm。如图4所示,所述第四位格雷码道214上设置有黑白依次交替出现的第四位格雷码道黑码和第四位格雷码道白码,所述第四位格雷码道黑码的最大宽度为16mm。当将所述第一位格雷码道黑码的最大宽度设置为2mm时,则第六位格雷码道216中每一长度周期为64mm(即在同一周期内只出现一次黑码,也只出现一次白码),也即卷尺带200中设置6位格雷码的重复周期LT为64mm。同理,当将所述第一位格雷码道黑码的最大宽度设置为4mm时,6位格雷码的重复周期LT为128mm。由于当在卷尺带200上设置了6个格雷码道,且将6位格雷码的重复周期LT为64mm时,已经能满足用户按各种速度抽取所述卷尺带200时,不会使红外收发装置组300漏掉统计重复周期LT重复出现的次数,故具体实施时将6位格雷码的重复周期LT设置为64mm即可。In specific implementation, as shown in FIG. 3 , the first
为了更清楚的说明本发明中卷尺带200上6位格雷码的设置方式,下面通过如表1-表4所示的6位格雷码表及图3和图4来进一步说明。In order to illustrate the setting method of the 6-digit Gray code on the
表1Table 1
表2Table 2
表3table 3
表4Table 4
可见,从表1-表4的6位格雷码表中可知,6位格雷码的重复周期为64,且序号为(M+1)的格雷码与序号为M的格雷码相比(其中1≤M≤63),有且仅有一位数字发生了变化(由1变0,或由0变为1)。若将黑码记为0,白码记为1,则将上述64个6位格雷码以卷尺带200的一端为起点,依序向另一端印制。例如将序号为1的000000这6位格雷码设置在起点所在端,具体的将6位格雷码中最高位(即第六位)0设置在第六位格雷码道216,将次高位(即第五位)0设置在第五位格雷码道215,将第四位0设置在第四位格雷码道214,将第三位0设置在第三位格雷码道213,将次低位(即第二位)0设置在第二位格雷码道212,将最低位(即第一位)0设置在第一位格雷码道,上述6个码的高度与对应的格雷码道的高度相等,上述6个码均为矩形条,且矩形条的宽度均为1mm,这样按表1-表4所示的序号在卷尺带200上依序设置格雷码,即可得到如图3和图4所示的卷尺带200。其中,如图3所示的卷尺带200正面是从上至下依次设置第一位格雷码道211、第二位格雷码道212及第三位格雷码道213,如图4所示的卷尺带200背面从上至下依次设置所述第六格雷码道216、第五格雷码道215及第四位格雷码道214。It can be seen from the 6-bit Gray code table in Table 1-Table 4 that the repetition period of the 6-bit Gray code is 64, and the Gray code with the serial number (M+1) is compared with the Gray code with the serial number M (where 1 ≤M≤63), one and only one digit has changed (from 1 to 0, or from 0 to 1). If the black code is denoted as 0 and the white code is denoted as 1, the above-mentioned 64 6-digit Gray codes are printed from one end of the
当所述智能卷尺的卷尺带200的正面及背面均从下至上设置有3个格雷码道210时,还设置有与所述格雷码道210一一对应的红外收发装置,且每一红外收发装置发出的红外光的照射范围不超出每一格雷码道210的高度范围。所述智能卷尺本体100内正对卷尺带200正面的一侧设置的低位红外收发装置组包括3个红外收发装置,分别为第一红外收发装置、第二红外收发装置及第三红外收发装置;所述智能卷尺本体100内正对卷尺带200背面的一侧设置的高位红外收发装置组包括3个红外收发装置,分别为第四红外收发装置、第五红外收发装置及第六红外收发装置。具体的,第一红外收发装置正对所述第一位格雷码道211,第二红外收发装置正对所述第二位格雷码道,第三红外收发装置正对所述第三位格雷码道213,第四红外收发装置正对所述第四位格雷码道214,第五红外收发装置正对所述第五位格雷码道215,第六红外收发装置正对所述第六位格雷码道216。上述六个红外收发装置分别连接智能卷尺本体100内的MCU控制芯片中的对应I/O口。When the front and back of the
为了实现节电功能,所述低位红外收发装置组中的第一红外收发装置在开关装置置于打开状态时开启,所述第二红外收发装置及第三红外收发装置保持待机或关闭状态,同时,所述第四红外收发装置、第五红外收发装置及第六红外收发装置也保持待机或关闭状态。只有当检测到第一红外收发装置中有脉冲产生时,则所述第二红外收发装置、第三红外收发装置第四红外收发装置、第五红外收发装置及第六红外收发装置开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数。In order to realize the power saving function, the first infrared transceiver in the low-level infrared transceiver group is turned on when the switch device is turned on, the second infrared transceiver and the third infrared transceiver are kept in a standby or off state, and at the same time , the fourth infrared transceiver device, the fifth infrared transceiver device and the sixth infrared transceiver device are also kept in a standby or off state. Only when it is detected that a pulse is generated in the first infrared transceiver, the second infrared transceiver, the third infrared transceiver, the fourth infrared transceiver, the fifth infrared transceiver and the sixth infrared transceiver are turned on, and the second infrared transceiver, the third infrared transceiver, the fourth infrared transceiver, the fifth infrared transceiver and the sixth infrared transceiver are turned on. Real-time readings on the gray-coded tape of the tape measure tape when the tape measure tape is twitched.
由于卷尺带200的两侧各设置了3个红外收发装置组300,若卷尺带200两侧的红外收发装置完全正对,则卷尺带200一侧的红外收发装置组300发出的红外线透射过所述卷尺带200时,会导致另一侧的红外收发装置组300的红外光接收结果改变,影响测量结果。Since three infrared
为了确保测量结果的准确性,需将所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位设置。由于当卷尺带200为初始未被拉出的状态时,所述第一红外收发装置正对所述第一位格雷码道211的起点,第二红外收发装置正对所述第二位格雷码道212的起点,第三红外收发装置正对所述第三位格雷码道213的起点,第四红外收发装置正对所述第四位格雷码道214的起点,第五红外收发装置正对所述第五位格雷码道215的起点,第六红外收发装置正对所述第六位格雷码道216的起点。由于卷尺带200双面的格雷码道的起点存在错位,故分布在所述卷尺带200一侧的第一红外收发装置、第二红外收发装置及第三红外收发装置正对的位置相对于分布在所述卷尺带200另一侧的第四红外收发装置、第五红外收发装置及第六红外收发装置正对的位置有一定距离的错位。具体实施时,所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位距离为5-6mm。最佳的,所述卷尺带200正面的格雷码道的起点与所述卷尺带200背面的格雷码道的起点错位距离为5.5mm。In order to ensure the accuracy of the measurement results, the starting point of the Gray code track on the front side of the
由于每一格雷码道210上都是以一定周期出现黑码和白码,而且白码和黑码是交替出现。同时黑码及白码对红外收发装置组300发出的红外光的吸收率不同,具体是黑码对红外光的吸收率高,白码对红外光的吸收率低、且低于黑码的红外光吸收率,经过黑码反射回去的红外光被红外收发装置组300接收后被解码为0,经过白码反射回去的红外光被红外收发装置组300接收后被解码为1。Because black codes and white codes appear on each
故当卷尺带200在被拉动的过程中,由红外收发装置组300、及与设置在智能卷尺本体100内且与红外收发装置组300连接的MCU控制芯片共同检测卷尺带200被拉动时重复周期长度的次数n和在当前重复周期长度内的偏移量ΔL,再通过L=n*LT+ΔL即可计算得到实际测量长度L,这样实现对长度的精准测量,降低了测量误差。具体是因为在尺带每一格雷码道上设置具有一定宽度的黑码和白码,有效避免因软性尺带被拉伸发生形变而导致的测量误差。Therefore, when the
基于上述装置实施例,本发明还提供了一种带开关的智能卷尺的数据获取方法,如图5所示,所述方法包括以下步骤:Based on the above device embodiment, the present invention also provides a data acquisition method of a smart tape measure with a switch, as shown in FIG. 5 , the method includes the following steps:
步骤S100、当检测到开关装置处于打开状态时,则与所述卷尺带正面格雷码道正对的低位红外收发装置组开启,并实时检测低位红外收发装置组是否有脉冲产生;Step S100, when it is detected that the switch device is in an open state, then the low-level infrared transceiver device group that is directly opposite to the gray code channel on the front of the tape measure tape is turned on, and real-time detection of whether the low-level infrared transceiver device group has pulse generation;
步骤S200、当检测到低位红外收发装置组的低位脉冲时,则所述低位红外收发装置组及所述高位红外收发装置组均开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数;Step S200, when detecting the low-order pulse of the low-level infrared transceiver group, then both the low-level infrared transceiver group and the high-level infrared transceiver group are turned on, and when the tape measure tape is twitched, read the tape on the Gray code track in real time. reading;
步骤S300、当检测卷尺带由抽动状态变为静止状态时,根据所述低位红外收发装置组获取的第一当前读数,及所述高位红外收发装置组获取的第二当前读数,获取智能卷尺的当前读数。Step S300, when it is detected that the tape measure tape changes from a twitching state to a static state, according to the first current reading obtained by the low-level infrared transceiver device group, and the second current reading obtained by the high-level infrared transceiver device group, obtain the smart tape measure. Current reading.
具体的,如图3所示的卷尺带200正面是从上至下依次设置第一位格雷码道211、第二位格雷码道212及第三位格雷码道213,如图4所示的卷尺带200背面从上至下依次设置所述第六格雷码道216、第五格雷码道215及第四位格雷码道214,且第一红外收发装置正对所述第一位格雷码道211,第二红外收发装置正对所述第二位格雷码道,第三红外收发装置正对所述第三位格雷码道213,第四红外收发装置正对所述第四位格雷码道214,第五红外收发装置正对所述第五位格雷码道215,第六红外收发装置正对所述第六位格雷码道216。Specifically, as shown in FIG. 3 , the front of the
当将所述开关装置400打到“ON”状态时,所述第一红外收发装置、先打开,并对其是否产生脉冲进行实时检测,当检测到脉冲时,则并所述第二红外收发装置、第三红外收发装置第四红外收发装置、第五红外收发装置及第六红外收发装置开启,并在卷尺带被抽动时实时读取卷尺带格雷码道上的读数。这样实现了卷尺带200红外收发装置分时开启,有效的节省了电能。When the
综上所述,本发明所述的带开关的智能卷尺及其数据读取方法,通过将格雷码直接设置在卷尺带上,且卷尺带上按指定周期重复设置格雷码,而不是通过印制格雷码盘并设置在智能卷尺本体内,减小了智能卷尺的体积;同时,一个周期内的每一格雷码具有一定宽度的黑码或白码,可通过读取装置读取卷尺带上的格雷码,取代了传统的刻度读取方式,增强了读数的稳定性。由于还设置了控制红外收发装置开启或关闭的开关装置,所述红外收发装置只在打开开关时才上电工作,而且卷尺带两侧的红外读取装置是分时打开,而不是同时打开,节省了电能。To sum up, the intelligent tape measure with switch and the data reading method thereof according to the present invention directly set the Gray code on the tape measure tape, and repeatedly set the Gray code on the tape measure tape according to a specified period, instead of printing the gray code. The gray code disc is arranged in the body of the smart tape measure, which reduces the volume of the smart tape measure; at the same time, each gray code in a cycle has a black code or a white code with a certain width, which can be read by the reading device on the tape measure tape. Gray code, instead of the traditional scale reading method, enhances the stability of the reading. Since a switch device for controlling the opening or closing of the infrared transceiver is also provided, the infrared transceiver can only be powered on when the switch is turned on, and the infrared reading devices on both sides of the tape measure are opened at different times, not at the same time. Electricity is saved.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510634118.4A CN106556311B (en) | 2015-09-30 | 2015-09-30 | Intelligent measuring tape with switch and data acquisition method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510634118.4A CN106556311B (en) | 2015-09-30 | 2015-09-30 | Intelligent measuring tape with switch and data acquisition method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106556311A CN106556311A (en) | 2017-04-05 |
CN106556311B true CN106556311B (en) | 2020-02-07 |
Family
ID=58414827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510634118.4A Expired - Fee Related CN106556311B (en) | 2015-09-30 | 2015-09-30 | Intelligent measuring tape with switch and data acquisition method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106556311B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2081524U (en) * | 1990-08-24 | 1991-07-24 | 戴进武 | Cyclic code rule belt measuring displacement |
CN2760501Y (en) * | 2004-12-16 | 2006-02-22 | 翔熙(厦门)电子有限公司 | Digital display tapeline |
CN101273244A (en) * | 2005-07-25 | 2008-09-24 | 霍克斯特马斯巴尔泽有限责任公司 | Electronic measuring tape and a length measuring device provided therewith |
DE202009008217U1 (en) * | 2009-06-15 | 2009-08-27 | Okan, Ciftci | Ruler for reading distances |
CN201911363U (en) * | 2010-12-17 | 2011-08-03 | 苏州大学 | Intelligent photoelectric clothes measuring tape |
CN102555612A (en) * | 2011-12-04 | 2012-07-11 | 河南科技大学 | Ruler capable of transmitting infrared rays |
CN205192362U (en) * | 2015-09-30 | 2016-04-27 | 捷荣科技集团有限公司 | Intelligent tape with switch |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7348545B2 (en) * | 2005-06-17 | 2008-03-25 | Avago Technologies Ecbu Ip Pte Ltd | System and method for optical encoding on two opposed surfaces of a pattern medium |
CN101458116B (en) * | 2008-11-25 | 2012-11-14 | 西安信唯信息科技有限公司 | Object position measurement method suitable for different length measuring require |
DE102012205902A1 (en) * | 2012-04-11 | 2013-10-17 | Tyco Electronics Amp Gmbh | Position sensor for non-contact measurement of a position by means of a plurality of magnetic field sensors arranged in series |
-
2015
- 2015-09-30 CN CN201510634118.4A patent/CN106556311B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2081524U (en) * | 1990-08-24 | 1991-07-24 | 戴进武 | Cyclic code rule belt measuring displacement |
CN2760501Y (en) * | 2004-12-16 | 2006-02-22 | 翔熙(厦门)电子有限公司 | Digital display tapeline |
CN101273244A (en) * | 2005-07-25 | 2008-09-24 | 霍克斯特马斯巴尔泽有限责任公司 | Electronic measuring tape and a length measuring device provided therewith |
DE202009008217U1 (en) * | 2009-06-15 | 2009-08-27 | Okan, Ciftci | Ruler for reading distances |
CN201911363U (en) * | 2010-12-17 | 2011-08-03 | 苏州大学 | Intelligent photoelectric clothes measuring tape |
CN102555612A (en) * | 2011-12-04 | 2012-07-11 | 河南科技大学 | Ruler capable of transmitting infrared rays |
CN205192362U (en) * | 2015-09-30 | 2016-04-27 | 捷荣科技集团有限公司 | Intelligent tape with switch |
Also Published As
Publication number | Publication date |
---|---|
CN106556311A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN205027230U (en) | Gray code area intelligence tape measure | |
CN205027223U (en) | A gray code tape smart tape measure with infrared distance measurement | |
CN106556297B (en) | Can turn into intelligent tape measure of shoes sign indicating number value with measuring length | |
CN106556304B (en) | A scan code gray code belt intelligent tape measure and virtual fitting implementation method | |
CN106556311B (en) | Intelligent measuring tape with switch and data acquisition method thereof | |
CN205192362U (en) | Intelligent tape with switch | |
CN205027239U (en) | A gray code tape smart tape measure with chalk marking device | |
CN205027241U (en) | A Smart Tape Measure Based on Infrared Transceiver Reading | |
CN205279905U (en) | A Scannable Gray Code Tape Smart Tape | |
CN205027228U (en) | An intelligent tape measure with Gray code tape whose initial position is misaligned | |
CN205027237U (en) | Gray code belt and intelligent measuring tape with Gray code belt | |
CN106556303B (en) | Intelligent measuring tape capable of measuring circumference and circumference measuring method thereof | |
CN106556294B (en) | Intelligent tape based on infrared receiving and transmitting reading | |
CN205027236U (en) | Gray code belt intelligent tape with all-black coating | |
CN205027312U (en) | A gray code tape smart tape measure with a folding buckle structure | |
CN205027226U (en) | A gray code tape smart tape measure with tape hook | |
CN205027240U (en) | A power-saving smart tape measure | |
CN205027229U (en) | A power-saving smart tape measure | |
CN106556305B (en) | Power-saving intelligent measuring tape and data acquisition method thereof | |
CN106556295A (en) | Gray code belt intelligent tape with powder scratching device | |
CN205027233U (en) | A gray code tape smart tape measure with an anti-friction bar | |
CN106556298B (en) | A gray code tape smart tape measure | |
CN106556307B (en) | A Gray Code Tape Smart Tape Measure for Displaying Area Perimeter | |
CN106556302B (en) | Gray code belt intelligent tape capable of displaying measurement difference value | |
CN205027222U (en) | A smart tape measure based on brush readings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200207 |