By using the original on-off control unit of the boiler, feeding of the pellets takes place periodically with preset periods of screw feeder movement and idle state. During the operation, also the grate is periodically moved (swept) in the way that the pellets are moved towards end side of the combustion chamber. In optimal case, the pellets are completely burned out when they reach the end of the chamber