The invention discloses a mechanical energy self-driven photoelectric detection alarm device. The device mainly comprises a nano-friction generator power supply module, a sample collection module, a plasma discharge module, an optical detection module, a display storage module, an alarm module and an auxiliary module, is driven by a friction nano-generator, has wearable, portable and long-term usefunctions, and is efficient and convenient; an atmospheric pressure discharge system based on the SDBD principle is adopted, and stable and uniform plasma can be generated under low voltage to serveas an emission spectrum excitation source; air is used as working gas, so that the defect of using inert gas is overcome; an emission spectrum method is adopted, and effective detection of low-frequency weak light is achieved through a photomultiplier and an amplifying circuit; sound, light and vibration alarm is adopted, so that effective detection and alarm in a noisy or dark environment can berealized; a modular design is adopted, detection of different kinds of metal gaseous pollutants can be achieved by replacing the detection module, operation is convenient during maintenance and replacement, and the cost is reduced.