An on-site detection device for nitrogen and phosphorus contents in liquid feces based on near infrared spectroscopy, comprising a box body, a box plate and a box cover, an upper end of the box body is defined with a box opening, the box plate is installed at the box opening, and the box cover is hinged on one side of the box body;
- wherein one side of the box body is enclosed by a surrounding plate to form an independent detection part, in which a detecting component and a sensor group are arranged;
- and another side of the box body is a controlling part, in which a controlling component is arranged;
- a temperature regulating component and a gas circulation component are also arranged inside the box body;
- and the detecting component, the temperature regulating component, the gas circulation component and the sensor group are all electrically connected to the controlling component;
- and
- the controlling component in configured to receive an infrared spectrum signal fed back by the detecting component, and analyzes the nitrogen and phosphorus contents of the to be detected liquid feces sample through the characteristics of the infrared spectrum signal;
- the controlling component is configured to receive a signal value transmitted from the sensor group, and starts the temperature regulating component and the gas circulation component according to the signal value, and the controlling component is also configured to keep the detection environment of the detection part stable to maintain a constant temperature and interference-free detection environment for the detecting component;
- wherein the sensor group comprises an ammonia concentration sensor, a temperature sensor and a humidity sensor, and the temperature sensor is configured to monitor a temperature in the detection part and transmit a temperature signal to the controlling component;
- and the humidity sensor is configured to monitor humidity in the detection part and transmit a humidity signal to the controlling component;
- and the ammonia concentration sensor is configured to monitor a ammonia content in the detection part and transmit an ammonia content signal to the controlling component.