200946863 九、發明說明: .【發明所屬之技術領域】 本發明涉及一種測量物體長度的裝置及方法,特別是 涉及一種能夠測量物體長度的可檇式電子裝置及其測量物 體長度的方法。 【先前技術】 . 現有的測長儀如鐳射測長儀、數位測長儀等採用先進 龜的振幅光柵感測器數位測量系統進行長度測量,它們具有 測量精確的優點,適用於特定的場所,比如實驗室、精密 加工場所,但價格昂貴、體積大不宜攜帶。 如果能利用可檇式電子裝置如手機、pDA、Mp3等測 量物體長度,便可以克服前述測量工具的缺點,使人們可 以隨時測量物體長度,使用方便、快捷,但現有的手機、 PDA、MP3等可檇式電子裝置都尚無測量物體長度的功能。 【發明内容】 ❹ 下面結合實施例和附圖,對本發明進行詳細說明。 如圖1所示,為一種可檇式電子装置的功能模組圖。 該可檇式電子裝置100包括測量按鈕131、動作按鈕132、 δ己錄按鈕133、控制器134、測距感測器135、馬達136、 可見光發射器137、角度計算單元138、存儲單元139、長 度計算單元14〇和顯示單元141。控制器134分別和測量 按鈕131、動作按鈕132、記錄按鈕133、測距感測器、 ,達136、可見光發射器137、角度計算單元138、長度計 算單元140和顯示單元141電性連接。馬達136和可見光 9 200946863 -發射器137機械式連接。存儲單元139分別和測距感測器 ,135、角度计真單元138和長度計算單元140電性連接。 控制器134回應測罝按紐131生成的啟動訊號,啟動 測距感測器135測量待測物體與可檇式電子裝置1〇〇的間 距’並將此間距存儲到存儲單元139。 控制器134回應測量按鈕13ι生成的啟動訊號,啟動 -可見光發射器137發射可見光束。 ❻ 控制器134回應動作按鈕132生成的控制訊號驅動馬 達136旋轉,馬達136帶動可見光發射器ι37從初始位置 分別朝向待測物體的兩端點轉動。 可見光發射器137在轉動的過程中,控制器134控制 角度β十算皁元138記錄可見光發射器的轉動次數,計算可 見光發射器137分別從初始位置朝向待測物體的兩端點轉 動的兩個夾角。 當可見光束照射到待測物體的兩端點時,控制器134 ❹回應记錄按紐133生成的記錄訊號記錄初始位置的可見光 束與照射到待測物體的兩端點時的可見光束的兩個夾角並 將其存儲其到存儲單元139。 控制器134回應記錄按鈕133生成的記錄訊號控制馬 達136帶動可見光發射器137轉動到初始位置。 控制器134控制長度計算單元140從存儲單元139中 讀取前述間距及兩個夾角,並根據間距及兩個夾角計算出 待測物體的長度。 顯示單元141用來顯示待測物體的長度。 200946863 \ 如圖2與圖3所示,分別為第一實施例中可檇式電子 、 裝置測量物體長度的工作原理圖與第一實施例中運用可檇 式電子裝置測量物體長度的流程圖。第一實施例中的可檇 式電子裝置152包括測量按鈕153,動作按鈕154、記錄按 鈕155、控制器156、第一馬達157、第二馬達158、第一 可見光發射器159、第二可見光發射器160、測距感測器 -161、存儲單元162、角度計算單元163、長度計算單元164 -及顯示單元165。所述第一可見光發射器159、第二可見光 ®發射器160及測距感測器161設置於可檇式電子裝置152 的第一侧邊166上,所述第一可見光發射器159、第二可 見光發射器160在初始位置時發射的可見光束垂直於該可 檇式電子裝置152的第一側邊166,垂足分別為X、Y,第 一可見光發射器159和第二可見光發射器160之間的距離 為S。控制器156分別和測量按鈕153,動作按鈕154、記 錄按鈕155、第一馬達157、第二馬達158、第一可見光發 ❹射器159、第二可見光發射器160、測距感測器161、存儲 單元162、角度計算單元163、長度計算單元164及顯示單 元165電性連接。存儲單元162分別和測距感測器161、 角度計算單元163和長度計算單元164電性連接。第一馬 達157、第二馬達158分別和第一可見光發射器159、第二 可見光發射器160機械式連接。運用此可檇式電子裝置152 測量待測物體長度的步驟如下: 步驟171,使得可檇式電子裝置152的第一側邊166 與待測物體151平行並與待測物體151保留一間距Η。 11 200946863 步驟172,控制器156回應測量按鈕153生成的啟動 .訊號,啟動測距感測器161測量可檇式電子裝置的第一侧 邊166與待測物體151的間距H,並記錄所述間距H。 步驟173,控制器156回應測量按鈕153生成的啟動 訊號,啟動第一可見光發射器159與第二可見光發射器16〇 發射可見光束。 步驟174,控制器156回應動作按鈕154生成的控制 ❺訊號驅動第一馬達157旋轉,第一馬達157帶動第一可見 光發射器159從初始位置朝向待測物體的第一端點Μ 動。 步驟175,萬可見光束照射到待測物體的第一端點% 時,控制器156回應記錄按鈕155的記錄訊號記錄初始方 向的可見光束與照射到待測物體151的第一端點Μ時的可 見光束的夾角為第一銳角α,並將其存儲於存儲單元165。 記錄第一銳角α的步驟具體為:使用第一馬達157, ❹例如步進馬達,驅動第一可見光發射器159每次轉動同樣 的角度Φ,當可見光束照射到待測物體151的第一端點μ 時,記錄可見光發射器159的轉動次數為N1,則第一角度 α為轉動次數N1乘以角度φ。 步驟176,控制器156回應動作按鈕154生成的控制 訊號驅動第二馬達158旋轉,第二馬達158帶動第二可見 光發射器16G從初始位置朝向待測物體的第二端點 動。 步驟177,當可見光束照射到待測物體的第二端點ν 12 200946863 '時,控制器156回應記錄按鈕155的記錄訊號記錄初始方 •向的可見光束與照射到待測物體151的第二端點N時的可 見光束的夾角為第二銳角β並存儲將其於存儲單元165。 記錄第二銳角Ρ的步驟具體為:使用第二馬達158, 例如步進馬達,驅動第二可見光發射器16〇每次轉動同樣 的角度Φ Μ可見光束照射到待測物體151的第二端點ν .時,記錄可見光發射器16〇的轉動次數為N2,則第二角度 β為轉動次數N2乘以角度φ。 ❹ 步驟178,控制器156控制第一馬達157、 158分別帶動第—可見紐射器159、第二可見光發射器 160轉動到初始位置。 步驟179’長度計算單元164從存儲單元162獲取記 二的:距Η、第一銳角α和第二銳角β,並根據公式 妙十㈣計算待測物體⑸長度L。其中,L為待測 物體151長度’ S為上述第_可見紐射器與第二可 參見光發射器160的間距,Η為可携式電子裝置152的第一 側邊166與待測㈣151的間距,《為第-角度,β為第 二角度。 步驟180,顯示待測物體151長度l。 如圖4與圖5所示,分別么贫由 丨為第一實施例中可檇式電子 裝置測:!:物體長度的工作廣理 席理圖與苐二實施例中可檇式電 子裝置測1物體長度的流程圖。 第二實施例中的可檇式 91,两八電子裝置212包括測量按鈕 213動作^214、記錄按知奶、控制器216、馬達217、 13 200946863 200946863 可見光發射器218、測距感測器219、存儲單元22〇、角度 計算單元221、長度計算單元222及顯示單元223。所述可 見光發射器218及測距感測器219設置於可檇式電子裝置 212的第一側邊224上,所述可見光發射器之以在初始位 置時發射的可見光束垂直於該可檇式電子裝置212的第一BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to a device and method for measuring the length of an object, and more particularly to a squeezable electronic device capable of measuring the length of an object and a method for measuring the length of the object. [Prior Art] Existing length measuring instruments such as laser length measuring instruments, digital length measuring instruments, etc. use advanced turtle amplitude grating sensor digital measuring system for length measurement, which have the advantages of accurate measurement and are suitable for a specific place. Such as laboratories, precision processing sites, but expensive, large size is not suitable for carrying. If the length of the object can be measured by a portable electronic device such as a mobile phone, pDA, Mp3, etc., the disadvantages of the aforementioned measuring tools can be overcome, so that the length of the object can be measured at any time, and the use is convenient and fast, but existing mobile phones, PDAs, MP3s, etc. There is no function to measure the length of an object in a portable electronic device. SUMMARY OF THE INVENTION The present invention will be described in detail below with reference to the embodiments and the accompanying drawings. As shown in FIG. 1 , it is a functional module diagram of a portable electronic device. The portable electronic device 100 includes a measurement button 131, an action button 132, a δ record button 133, a controller 134, a distance sensor 135, a motor 136, a visible light emitter 137, an angle calculation unit 138, a storage unit 139, The length calculation unit 14A and the display unit 141. The controller 134 is electrically connected to the measurement button 131, the action button 132, the record button 133, the ranging sensor, the 136, the visible light emitter 137, the angle calculating unit 138, the length calculating unit 140, and the display unit 141, respectively. Motor 136 and visible light 9 200946863 - Transmitter 137 is mechanically coupled. The storage unit 139 is electrically connected to the ranging sensor 135, the angle meter true unit 138, and the length calculating unit 140, respectively. The controller 134, in response to the start signal generated by the test button 131, activates the distance measuring sensor 135 to measure the distance between the object to be tested and the portable electronic device 1' and stores the pitch to the storage unit 139. The controller 134, in response to the activation signal generated by the measurement button 13i, activates the visible light emitter 137 to emit a visible light beam. The controller 134 responds to the control signal generated by the action button 132 to drive the motor 136 to rotate, and the motor 136 drives the visible light emitter ι37 to rotate from the initial position toward the two ends of the object to be tested. During the rotation of the visible light emitter 137, the controller 134 controls the angle β to calculate the number of rotations of the visible light emitter, and calculates two rotations of the visible light emitter 137 from the initial position toward the ends of the object to be tested. Angle. When the visible light beam is irradiated to the two ends of the object to be tested, the controller 134 responsive to the recording signal generated by the recording button 133 to record the visible light beam at the initial position and the visible light beam when irradiated to the end points of the object to be tested. The angles are stored and stored to the storage unit 139. The controller 134 controls the motor 136 to drive the visible light emitter 137 to rotate to the initial position in response to the recording signal generated by the record button 133. The controller 134 controls the length calculating unit 140 to read the aforementioned pitch and the two included angles from the storage unit 139, and calculates the length of the object to be tested based on the pitch and the two included angles. The display unit 141 is used to display the length of the object to be tested. 200946863 \ As shown in FIG. 2 and FIG. 3, respectively, the working principle diagram of the movable body and the device measuring the length of the object in the first embodiment and the flow chart of measuring the length of the object using the portable electronic device in the first embodiment are respectively shown. The portable electronic device 152 in the first embodiment includes a measurement button 153, an action button 154, a record button 155, a controller 156, a first motor 157, a second motor 158, a first visible light emitter 159, and a second visible light emission. The device 160, the distance measuring sensor-161, the storage unit 162, the angle calculating unit 163, the length calculating unit 164-, and the display unit 165. The first visible light emitter 159, the second visible light emitter 160, and the ranging sensor 161 are disposed on the first side 166 of the portable electronic device 152, the first visible light emitter 159, the second The visible light beam emitted by the visible light emitter 160 in the initial position is perpendicular to the first side 166 of the portable electronic device 152, and the vertical feet are X, Y, respectively, the first visible light emitter 159 and the second visible light emitter 160 The distance between them is S. The controller 156 and the measurement button 153, the action button 154, the record button 155, the first motor 157, the second motor 158, the first visible light emitter 159, the second visible light emitter 160, the ranging sensor 161, The storage unit 162, the angle calculation unit 163, the length calculation unit 164, and the display unit 165 are electrically connected. The storage unit 162 is electrically connected to the ranging sensor 161, the angle calculating unit 163, and the length calculating unit 164, respectively. The first motor 157 and the second motor 158 are mechanically coupled to the first visible light emitter 159 and the second visible light emitter 160, respectively. The step of measuring the length of the object to be tested by using the slidable electronic device 152 is as follows: Step 171, the first side 166 of the slidable electronic device 152 is parallel to the object to be tested 151 and a distance Η is reserved from the object to be tested 151. 11 200946863 Step 172, the controller 156 responds to the activation signal generated by the measurement button 153, and activates the ranging sensor 161 to measure the distance H between the first side 166 of the portable electronic device and the object to be tested 151, and records the Spacing H. In step 173, the controller 156, in response to the activation signal generated by the measurement button 153, activates the first visible light emitter 159 and the second visible light emitter 16 to emit a visible light beam. In step 174, the controller 156 drives the first motor 157 to rotate in response to the control signal generated by the action button 154. The first motor 157 drives the first visible light emitter 159 to move from the initial position toward the first end of the object to be tested. Step 175, when the visible light beam is irradiated to the first end point % of the object to be tested, the controller 156 responds to the recording signal of the recording button 155 to record the visible light beam in the initial direction and the first end point of the object to be tested 151. The angle of the visible light beam is the first acute angle α and is stored in the storage unit 165. The step of recording the first acute angle α is specifically: using the first motor 157, for example, a stepping motor, driving the first visible light emitter 159 to rotate the same angle Φ each time, when the visible light beam is irradiated to the first end of the object 151 to be tested. At the point μ, the number of rotations of the visible light emitter 159 is N1, and the first angle α is the number of rotations N1 multiplied by the angle φ. In step 176, the controller 156 responds to the control signal generated by the action button 154 to drive the second motor 158 to rotate, and the second motor 158 drives the second visible light emitter 16G to move from the initial position toward the second end of the object to be tested. Step 177, when the visible light beam is irradiated to the second end point ν 12 200946863 ' of the object to be tested, the controller 156 responds to the recording signal of the record button 155 to record the visible light beam of the initial direction and the second light beam irradiated to the object to be tested 151. The angle of the visible beam at the end point N is the second acute angle β and is stored in the storage unit 165. The step of recording the second acute angle 具体 is specifically: using the second motor 158, such as a stepping motor, driving the second visible light emitter 16 to rotate the same angle Φ each time Μ the visible light beam is irradiated to the second end of the object 151 to be tested When ν., the number of rotations of the visible light emitter 16 turns is N2, and the second angle β is the number of rotations N2 multiplied by the angle φ. Step 178, the controller 156 controls the first motors 157, 158 to respectively drive the first visible beam finder 159 and the second visible light emitter 160 to the initial position. The step 179' length calculating unit 164 obtains from the storage unit 162 the distance Η, the first acute angle α, and the second acute angle β, and calculates the length L of the object to be tested (5) according to the formula (10). Wherein, L is the length of the object to be tested 151 'S is the distance between the first visible reflector and the second visible light emitter 160, and is the first side 166 of the portable electronic device 152 and the (four) 151 to be tested. Spacing, "for the first angle, β is the second angle. In step 180, the length l of the object to be tested 151 is displayed. As shown in FIG. 4 and FIG. 5, the difference between the two is the measurement of the electronic device in the first embodiment: the working length of the object length and the electronic device of the second embodiment. 1 Flow chart of the length of the object. In the second embodiment, the portable 91, the two-eighth electronic device 212 includes a measurement button 213 action 214, a recording press, a controller 216, a motor 217, 13 200946863 200946863 visible light emitter 218, and a distance measuring sensor 219. The storage unit 22A, the angle calculation unit 221, the length calculation unit 222, and the display unit 223. The visible light emitter 218 and the ranging sensor 219 are disposed on the first side 224 of the portable electronic device 212, and the visible light beam emitted by the visible light emitter in the initial position is perpendicular to the movable type First of the electronic device 212
2 224 ’垂足為X。控制器216分別和測量按姐213、動 ^ 2 2U、記錄按紐215、㈣217、可見光發射器218、 =,測器219、存儲單元22G、角度計算單元221、長度 1鼻早元222及顯示單元223電性連接。存儲單元22〇分 :矩感測器219、角度計算單元221和長度計算單元 /性連接。馬達217和可見光發射器218機械式連接。 運用此可檇式電子裝置212測量待測物體長度的步驟如 下· /步驟231,使得可檇式電子襞置212的第一侧邊224 與待剛物體211平行並與待測物體211保留一間距H。 〇 步驟232,控制器216回應測量按鈕213生成的啟動 訊號’啟動測距感測器221測量可檇式電子裝置212的第 側邊224與待測物體211的間距Η ’並記錄所述間距η。 步驟233 ’控制器216回應測量按鈕213生成的啟動 訊號’啟動可見光發射器218發射可見光束。 步驟234 ’控制器216回應動作按紐214生成的控制 訊號驅動馬達217旋轉帶動可見光發射器218從初始位置 朝向待測物體211的第一端點Μ轉動。 步驟235,當可見光束照射到待測物體211的第一端 200946863 -點Μ時,控制器216回應記錄按鈕215的記錄訊號記錄初 *始方向的可見光束與照射到待測物體211的第一端點訄時 的可見光束的夾角為第一銳角(X,並存儲於存儲單元22〇。 記錄第一銳角α的步驟具體為:使用馬達217,例如 步進馬達,驅動可見光發射器218每次轉動同樣的角度 Φ ’當可見光束照射到待測物體211的第一端點Μ時,二 錄可見光發射器218的轉動次數為Ν1,則第一角度α為轉 •動次數Ν1乘以角度φ。 > 步驟236,控制器216控制馬達217帶動可見光 器218轉動到初始位置。 步驟237,控制器216回應動作按鈕214生成的押制 訊號驅動馬達217旋轉,馬達217帶動可見光發射器^18 從初始位置朝向待測物體211的第二端點Ν轉動。 步驟238,當可見光束照射到待測物體1的第二端 點Ν時’控制器216回應記錄按鈕215的記錄訊號記:初 始方向的可見光束與照射到待測物體211的第二端點Ν時 的可見光束的夾角為第二銳角Ρ,並存儲於存儲單元22卜 〇 記錄第二銳角β的步驟具體為:使用馬達,例如 步進馬達,驅動可見光發射器218每次 」 ν人锝動冋樣的角度 Φ,當可見光束照射到待測物體211的第二端點Ν時,記 錄可見光發射器218的轉動次數為Ν2,則第-& ώ " *不一月度β為轉 動次數Ν2乘以角度Φ。 # 步驟239 ’控制器216控制馬達217帶動可見 器218轉動到初始位置。 15 200946863 步驟240 ’長度计算單元222從存儲單元22 錄的間距Η、第-銳角《和第二銳角β,並根據公; —_或者ζ,—―)計算待測物 長度L。其中,l為待測物體211長度,Η為可搞式電子 裝置212的第-侧邊224與待測物體2ιι的間距, 一角度,β為第二角度。 步驟241,顯示待測物體211長度L。 上述可檇式電子裝置藉由測距感測器測量可 體之間㈣距’並藉由馬達驅動可見光發射器測 =檇式電子裝置和物體端點之間的角度,以獲得物體的 長度,使得可携<電子裝置具有長度測量的功能。 綜上料,本發明符合發明相要件,纽法提出專 利申凊。惟,以上所述者僅為本發明之較佳實施例,舉凡 熟-本案技藝之人士’在援依本案創作精神所作之等效修 ❹ 飾或變化’皆應包含於以下之申請專利範圍内。例如,各 :實施方式中的測量按鈕、動作按鈕和記錄按鈕等可以整 ,為二個按鈕,便於使用者操作。各個實施方式中的長度 ^單角度計算單元及存儲單元等也可以集成在控制 執行相應的功能,以進行待測物體長度的測量。 【圖式簡單說明】 圖1為一種可檇式電子裝置的功能模組圖。 圖2為第一實施例中可檇式電子裝置測量物體長度的 工作原理圖。 圖3為第一實施例中可檇式電子裝置測量物體長度的 16 200946863 . 流程圖。 , 圖4為第二實施例中可檇式電子裝置測量物體長度的 工作原理圖。 圖5為第二實施例中可檇式電子裝置測量物體長度的 流程圖。 【主要元件符號說明】 可檇式電子裝置 100 控制器 134 記錄按紐 133 動作按鈕 132 測量按紐 131 顯示單元 141 長度計算單元 140 可見光發射器 137 馬達 136 測距感測器 135 存儲單元 139 角度計算單元 138 172 224 ‘foot is X. The controller 216 and the measuring button 213, the moving device 2, the recording button 215, the (four) 217, the visible light emitter 218, the detector 219, the storage unit 22G, the angle calculating unit 221, the length 1 and the early morning 222 and the display Unit 223 is electrically connected. The storage unit 22 divides: a moment sensor 219, an angle calculation unit 221, and a length calculation unit/sexual connection. Motor 217 and visible light emitter 218 are mechanically coupled. The step of measuring the length of the object to be tested by using the slidable electronic device 212 is as follows: /step 231, so that the first side 224 of the slidable electronic device 212 is parallel to the object 211 and remains at a distance from the object to be tested 211. H. In step 232, the controller 216 responds to the activation signal generated by the measurement button 213 to enable the ranging sensor 221 to measure the distance 第 between the first side 224 of the portable electronic device 212 and the object to be tested 211 and record the spacing η. . Step 233' controller 216 activates visible light emitter 218 to emit a visible light beam in response to the enable signal generated by measurement button 213. Step 234' The controller 216 responds to the control signal generated by the action button 214 to drive the motor 217 to rotate to cause the visible light emitter 218 to rotate from the initial position toward the first end point of the object 211 to be tested. Step 235, when the visible light beam is irradiated to the first end 200946863 of the object to be tested 211, the controller 216 responds to the recording signal of the record button 215 to record the visible light beam in the initial direction and the first light emitted to the object to be tested 211. The angle of the visible light beam at the end point is the first acute angle (X, and is stored in the storage unit 22A. The step of recording the first acute angle α is specifically: using the motor 217, such as a stepping motor, to drive the visible light emitter 218 each time. Rotating the same angle Φ 'When the visible light beam is irradiated to the first end point 待 of the object to be tested 211, the number of rotations of the two-recorded visible light emitter 218 is Ν1, and the first angle α is the number of revolutions and movements Ν1 times the angle φ > Step 236, the controller 216 controls the motor 217 to drive the visible light 218 to the initial position. In step 237, the controller 216 responds to the action of the action signal driving motor 217 generated by the action button 214, and the motor 217 drives the visible light emitter ^18 from The initial position is rotated toward the second end point 待 of the object to be tested 211. Step 238, when the visible light beam is irradiated to the second end point 待 of the object 1 to be tested, the controller 216 responds to the record button 215 Recording number: the angle between the visible light beam in the initial direction and the visible light beam when irradiated to the second end point 211 of the object to be tested 211 is the second acute angle Ρ, and is stored in the storage unit 22 to record the second acute angle β. To: use a motor, such as a stepper motor, to drive the visible light emitter 218 to "pulse" the angle Φ each time. When the visible light beam is incident on the second end point 待 of the object 211 to be tested, the visible light emitter 218 is recorded. The number of rotations is Ν2, then the -& ώ " * not the monthly β is the number of rotations Ν 2 times the angle Φ. #步239 'The controller 216 controls the motor 217 to drive the visible 218 to the initial position. 15 200946863 The 240' length calculation unit 222 calculates the length L of the object to be tested from the pitch 第, the first acute angle "and the second acute angle β, and according to the public; -_ or ζ, -) recorded by the storage unit 22. Wherein, l is the length of the object to be tested 211, and Η is the distance between the first side 224 of the electronic device 212 and the object to be tested 2 ιι, an angle, β is the second angle. Step 241, displaying the length L of the object to be tested 211. The above-mentioned portable electronic device measures the angle between the body and the object by using a distance measuring sensor to measure the angle between the body and the object, and the length of the object is obtained by the motor driving the visible light emitter to measure the angle between the electronic device and the object end point. The portable <electronic device has the function of length measurement. In summary, the present invention meets the requirements of the invention, and New Zealand filed a patent application. However, the above description is only a preferred embodiment of the present invention, and the equivalent repairs or changes made by the person skilled in the art of the present invention in the spirit of the invention should be included in the following patent application. . For example, each of the measurement buttons, the action button, the recording button, and the like in the embodiment may be two buttons, which are convenient for the user to operate. The length in the various embodiments, the single-angle calculation unit, the storage unit, and the like can also be integrated in the control to perform the corresponding function to measure the length of the object to be tested. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a functional block diagram of a portable electronic device. Fig. 2 is a view showing the operation of measuring the length of an object by the portable electronic device in the first embodiment. 3 is a flow chart of measuring the length of an object by a portable electronic device in the first embodiment. 4 is a working principle diagram of measuring the length of an object by a portable electronic device in the second embodiment. Fig. 5 is a flow chart showing the measurement of the length of an object by the portable electronic device in the second embodiment. [Main component symbol description] Portable electronic device 100 Controller 134 Record button 133 Action button 132 Measurement button 131 Display unit 141 Length calculation unit 140 Visible light emitter 137 Motor 136 Ranging sensor 135 Storage unit 139 Angle calculation Unit 138 17