My MCU controls a 5 V Songle relay. The input to the relay is a 9 V battery. The NO output is connected to a LED, the NC output is disconnected. Everything works fine, but I have noticed something peculiar (peculiar only to a beginner like me, probably).
If I measure the voltate from NO and ground while the coil is unpowered, I get an oscillating voltage. It starts from 0 V and ramps up to 400 mV. Then it drops down to 0 V. A sawtooth shaped waveform. If the coil has been energized and de-energized in the last 5 minutes then the voltage will go up to 400 mV in about 5 seconds. After 30 minutes it need 4 minutes to go up to 400 mV.
What causes this oscillation?
Is it normal? Is there a capacitor inside the relay? Has it to do with the coil?