ELECTRONIC DEVICE WITH DISTANCE MEASURE FUNCTION AND RELATED METHOD
First Claim
1. An electronic device with a distance measurement function comprising:
- a processor;
a timer coupled to the processor;
a photodiode coupled to the processor;
an infrared light source coupled to the processor and arranged on a same side of the electronic device as the photodiode;
a storage unit configured to store a first distance between the infrared light source and the photodiode; and
the processor configured to;
control the infrared light source to emit infrared light to an object configured to reflect the received infrared light to the photodiode, wherein the infrared light source, the photodiode, and an infrared light point on the object forms a right-angled triangle;
start the timer when the infrared light source starts to emit the infrared light;
stop when the photodiode receives the reflected-infrared light from the object, the timer and acquire a period of time from the timer;
calculate a transmission distance of the infrared light during the period of time;
calculate the distance between the electronic device and the object according to the stored first distance from the infrared light source to the photodiode and the transmission distance of the infrared light source during the period of time; and
display the distance between the electronic device and the object.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for measuring a distance between an electronic device and an object is provided. The method includes: starting to emit infrared light to an object when the electronic device is parallel to a length of the object which is perpendicularly placed and is configured to reflect the received infrared light to a photodiode; stop the timer to acquire a period of time when the photodiode receives the reflected-infrared light from the object; calculating a transmission distance of the infrared light during the period of time; and calculating the distance between the electronic device and the object according to a first distance from the infrared light source to the photodiode and the transmission distance of the infrared light source during the period of time.
-
Citations
6 Claims
-
1. An electronic device with a distance measurement function comprising:
-
a processor; a timer coupled to the processor; a photodiode coupled to the processor; an infrared light source coupled to the processor and arranged on a same side of the electronic device as the photodiode; a storage unit configured to store a first distance between the infrared light source and the photodiode; and the processor configured to; control the infrared light source to emit infrared light to an object configured to reflect the received infrared light to the photodiode, wherein the infrared light source, the photodiode, and an infrared light point on the object forms a right-angled triangle; start the timer when the infrared light source starts to emit the infrared light; stop when the photodiode receives the reflected-infrared light from the object, the timer and acquire a period of time from the timer; calculate a transmission distance of the infrared light during the period of time; calculate the distance between the electronic device and the object according to the stored first distance from the infrared light source to the photodiode and the transmission distance of the infrared light source during the period of time; and display the distance between the electronic device and the object. - View Dependent Claims (2, 3)
-
-
4. A method for measuring a distance between an electronic device and an object, the method comprising:
-
controlling the infrared light source to emit infrared light to an object configured to reflect the received infrared light to the photodiode, wherein the infrared light source, the photodiode, and an infrared light point on the object forms a right-angled triangle; starting the timer when the infrared light source starts to emit the infrared light; stopping when the photodiode receives the reflected-infrared light from the object, the timer and acquire a period of time from the timer; calculating a transmission distance of the infrared light during the period of time; calculating the distance between the electronic device and the object according to a first distance from the infrared light source to the photodiode and the transmission distance of the infrared light source during the period of time; and displaying the distance between the electronic device and the object. - View Dependent Claims (5, 6)
-
Specification