Optical signal processing method and device
A processing method and optical signal technology, applied in the field of signal processing, can solve problems such as inaccurate signals and great influence on signal quality
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0105] Embodiment 1 of the present invention provides an optical signal processing method, such as figure 1 As shown, it includes a sampling process and a conversion process, wherein the sampling process includes S1-S5, and the conversion process includes S6-S8;
[0106] S1: The sampling module samples the electrical signal to obtain the sampling result, and stores the sampling result in the cache;
[0107]In this embodiment, before step S1, it includes: the optical sensor receives the optical signal output by the output device and converts it into an electrical signal; when the interrupt trigger signal or delay trigger signal is received, the sampling module starts to work and collects the optical The electrical signal output by the sensor;
[0108] Specifically, the sampling module samples the electrical signal to obtain a sampling result, including: the sampling module continuously collects the electrical signal at least three times, and calculates the average voltage acco...
Embodiment 2
[0128] Embodiment 2 of the present invention provides an optical signal processing method, wherein the three states of black, gray, and white in the optical signal are used as an example to describe in detail, and the three states of black, gray, and white correspond to the Low, medium and high levels. After the terminal receives the optical signal output by the output device, it converts the optical signal into an electrical signal through the photoelectric device, and the processing device samples and processes it. The processing device includes a sampling module (for the sampling process) and a conversion module (for the conversion process). The processing method in the embodiment includes a sampling process and a conversion process; as figure 2 As shown, the sampling process includes steps 101-step 121, and the conversion process includes steps 122-step 132;
[0129] Step 101: When receiving an interrupt signal, the sampling module starts to receive electrical signals, c...
Embodiment 3
[0203] Embodiment 3 of the present invention provides a method for adjusting a preset voltage value in an adaptive manner. Specifically, in this embodiment, an adaptive method is required to adjust the maximum preset voltage value and the minimum preset voltage value before sampling, wherein, The maximum preset voltage value is the maximum voltage when the light signal state is white, and the minimum preset voltage value is the minimum voltage when the light signal state is black, such as image 3 As shown, the method of this embodiment specifically includes:
[0204] Step 201: When an interrupt signal is received, the acquisition module receives the electrical signal, continuously acquires multiple voltages, and obtains a sampling result;
[0205] Specifically, in this embodiment, when the device receives the interrupt signal, it continuously collects 4 or 8 times, and calculates the average voltage according to the collected voltage to obtain the sampling result;
[0206] I...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 