The invention discloses a controllable spraying device which comprises a water tank, a direct current water pump, a connecting water pipe, a rotating water pipe, a needle cylinder type piston, a spray head, a rotating drive device, a drive circuit and a controller. The voltage of the direct current water pump is controlled by using a preset spraying distance to ensure that water sprayed out of the spray head only covers the preset range. By depending on the control of a singlechip, the regularization of a water spraying track is intelligently completed, the function of whole water spraying is automatically completed, thus the effects of fully efficiently utilizing water resources and saving water as well as protecting the environment are achieved. The invention can meet the requirement for spraying water drops on various fields of gardens, greenbelts, vegetables and fruits, agriculture and the like. If the spraying liquids are changed into pesticides, paints, anticorrosive paints and the like, the controllable spraying device can carry out the spraying. Irrigation requirements on different use areas can be met through the combination of a plurality of spray heads. Various shapes such as square, triangle, regular hexagon and the like can be obtained through spraying.