Current thinking is that you turn your transponder on before take-off and turn it off after landing. It doesn't get much simpler than that.
I was told that this was not encouraged on return to the airfield once it was within visual range as aircraft in the circuit just create screen clutter for ATC and can potentially cause TCAS alerts for other aircraft on approach?
I stand to be corrected.
FWyg