Dynamics of an electronic impact oscillator