  In this paper we prove an explicit formula for the Bernstein projector to
representations of depth at most r. As a consequence, we show that the depth
zero Bernstein projector is supported on topologically unipotent elements and
it is equal to the restriction of the character of the Steinberg
representation. As another application, we deduce that the depth r Bernstein
projector is stable. Moreover, for integral depths our proof is purely local.
