Hi,
I am switching a solenoid (24 V, 27 W) with a electromechanic relay (srd-05vdc-sl-c). I have a flyback diode in parallel to the solenoid. I measured the switch-on event with a scope and the result confuses me. I am measuring the voltage over the solenoid.

The voltage drops back to 0 V for a moment, then comes back to 24 V and stays there.
Why does the voltage drop to 0 V?
The second rising edge looks like this:

What could be the cause for these ripples and the overshoot?
Initially I also wanted to use the 24 V power supply to power a sensor parallel to the solenoid. Now I am worried the sensor may gets damaged when exposed to these transients from the switching of the solenoid.
I am switching a solenoid (24 V, 27 W) with a electromechanic relay (srd-05vdc-sl-c). I have a flyback diode in parallel to the solenoid. I measured the switch-on event with a scope and the result confuses me. I am measuring the voltage over the solenoid.

The voltage drops back to 0 V for a moment, then comes back to 24 V and stays there.
Why does the voltage drop to 0 V?
The second rising edge looks like this:

What could be the cause for these ripples and the overshoot?
Initially I also wanted to use the 24 V power supply to power a sensor parallel to the solenoid. Now I am worried the sensor may gets damaged when exposed to these transients from the switching of the solenoid.