The invention relates to an automatic detection and display
algorithm based on a periodontal
detector, which is applied to a P.g bacterium automatic detection device, and the device comprises a main controller, a cover state detection module, a
test tube existence detection module, a detection execution module, a
nixie tube display module, a power supply module and a power supply key integrated with a multicolor state indicating lamp. The
algorithm is executed according to the following steps: S1, power-on self-test and state indication: after a power line is connected, a user presses down a power key, and a main controller is powered on and starts a self-
test program; during the self-checking period, the main controller controls the multi-color state indicating lamp to be lightened in a red flashing mode; the technical problems that in a detection scene for P.g
bacteria and other specific strains in the prior art, a detection method and existing simple automatic equipment both depend on manual judgment in operation, are insufficient in safety and reliability, lack in
equipment state indication, poor in man-
machine interaction experience, opaque in detection process and high in result interpretation threshold are solved.