How to make an oscillator for AM Radio with Arduino?

Is it possible to make an oscillator for AM radio with Arduino UNO R3?
What should be the code?
How am I supposed to make a full wave square wave oscillator with Arduino?
Thank you

What sort of oscillator?
An IF oscillator?
An audio oscillator?

Arduino only outputs square waves, radio needs sine waves. That's one major problem already.

An oscillator requires amplification to replace circuit losses and a positive feedback mechanism. Don't see any place for an Arduino.


The Arduino could e.g. turn the rotary capacitor for frequency tuning.

Producing square waves is feasible with the timers.

square-to-sine converter

You'll still need an amplifier.

Is the objective to use the Arduino or, to produce a sine wave?