Detection method and electronic equipment
The embodiment of the invention provides a control method and electronic equipment, and relates to the technical field of signal detection, the control method and the electronic equipment are applied to a photoelectric switch detection circuit, the photoelectric switch detection circuit comprises an...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The embodiment of the invention provides a control method and electronic equipment, and relates to the technical field of signal detection, the control method and the electronic equipment are applied to a photoelectric switch detection circuit, the photoelectric switch detection circuit comprises an MCU and a photoelectric switch, an I/O port of the MCU provides power supply on-off for the photoelectric switch, an AD sampling port of the MCU is used for detecting voltage values at the two ends of the photoelectric switch, and the voltage values at the two ends of the photoelectric switch are output by the MCU. The optoelectronic switches comprise a first optoelectronic switch and a second optoelectronic switch, and the detection method comprises the steps of obtaining voltage values at the two ends of the optoelectronic switches, determining the working states of gratings of the optoelectronic switches based on the voltage values, comparing the detected voltage values through an I/O port serving as an AD samp |
---|