How to create a 1MHz sine wave with gaps?

Hey, I need assistance in my project to create a 1MHz sine wave of 0.4Vpp with short gaps of sometimes 10us and other 20us. I need it as an input to my project. Please find the attached photo of the LTspice simulation.

You can't with an Arduino.

Post a better pic of the wave form - it looks nothing like a sine wave.

What is this thing you want to imitate? And why!

The best and by far the cheapest way to create a sine wave is with an oscillator it's much cheaper (1/100) of the price of an Arduino)

Mark

The pic is a 1mhz sine wave with gaps in between. I'm using it for input to my rfid tag. I need any method just to generate a sine wave with gaps my friend said try arduino you'll get programs.

So make a 1 MHz oscillator that you turn on and off with your Arduino.
Maybe keep the osc running and feed the output through a FET that Arduino controls.

Compare to controlling an ultrasonic range finder module.

GoForSmoke:
So make a 1 MHz oscillator that you turn on and off with your Arduino.
Maybe keep the osc running and feed the output through a FET that Arduino controls.

Actually, a 74HC4066 would be a good way to do it.

1MHz sine wave of 0.4Vpp with short gaps of sometimes 10us and other 20us

Luckily the sine is at a single frequency ...
I'd give it a shot using PWM into an R-C network tuned to 1MHz...

Then divide the ~0-5V 'sine' output down to 0-0.4V - which will give you better vertical resolution (smaller 0-255 'DAC' steps).

The timing is up to you in code, but I'd clock the 'uino at 20MHz - so you have better control of the 10-20uS periods.

Should be pretty good, as I believe RFID timing has modest tolerance.