Single-rail spraying machine

The invention discloses a single-rail spraying machine, which comprises a guide rail, wherein the guide rail is provided with a traveling trolley; the lower part of the traveling trolley is connected with a spraying component; the spraying component is connected to a pesticide box component through a solenoid valve; the guide rail is made of round steel; the trolley component comprises a single-phase alternating current motor connected with a traveling wheel component; and the traveling wheel component is matched with the guide rail. Furthermore, the single-rail spraying machine comprises a singlechip; the guide rail is provided with a ridge head strong magnet, a ridge tail strong magnet, a rail head strong magnet and a rail tail strong magnet; the travelling trolley is correspondingly provided with a ridge head Hall sensor, a ridge tail Hall sensor, a rail head Hall sensor and a rail tail Hall sensor; and the Hall sensors transmit sensing signals to the singlechip, and the singlechip controls the solenoid valve and the single-phase alternating current motor. Compared with the prior art, the single-rail spraying machine has the advantages that: the single-rail spraying machine is small in volume, can be applied to a unit greenhouse, and is simple in structure, low in manufacturing cost, easy to promote, high in automation degree and convenient to use.