Why during demodulation, the demodulated signal might double its frequency? A minimal example:
from scipy.signal import hilbert, periodogram
import numpy as np
import matplotlib.pyplot as plt
fs = 20000
t = np.arange(0, 5, 1 / fs)
sig = np.cos(t * 2 * np.pi * 7)
carrier = np.cos(t * 2 * np.pi * 1000)
measured = sig * carrier
f, pxx = periodogram(np.abs(hilbert(measured)), fs, detrend=False)
plt.plot(f, pxx)
plt.xlim([-0.2, 30])
plt.grid()
plt.show()