I want to create a modulated signal like the one in the following image:
![Image]()
So my first idea was to generate a PWM signal with the carrier frequency of 10MHz and 50% dutycycle and switch it on and off.
That means I have to switch the PWM signal on and off with a precision of let's say 50 mikroseconds (approx. 10% tolerance).
Is there a way to do this in Python? Does my approach make sense at all?
Any other proposal for implementing a digital modulation scheme with a carrier wave in the range of 10MHz?

So my first idea was to generate a PWM signal with the carrier frequency of 10MHz and 50% dutycycle and switch it on and off.
Code:
import pigpio.pi as pi[...]pi.hardware_PWM(18, 10 * 1000000, 500000) # 10 MHz 50% dutycycle[ ... need a kind of precision timer here to wait for 560 mikroseconds ...]pi.hardware_PWM(18, 0, 0) # switch off dutycycle[ ... need a kind of precision timer here to wait for 1690 or 560 mikroseconds ...]
Is there a way to do this in Python? Does my approach make sense at all?
Any other proposal for implementing a digital modulation scheme with a carrier wave in the range of 10MHz?
Statistics: Posted by DustInTheWind — Wed Jan 17, 2024 7:19 pm