Simple, low component count tone generator. It can be adapted to create a morse code circuit, by adding a switch to the output.
How it works:
This circuit is based around the 555 timer circuit, used as an astable
(free running) oscillator. The frequency (pitch) of the tone is set by
the resistors & capacitors in the left side of the circuit. The first 1 is a potentiometer (variable resistor), this is our pitch control,
which is basically all the external components you need. The capacitor
to the far left is to reduce as much noise or undesired operation of the
potentiometer, getting a smooth pitch change when adjusting.
You can find the timer's datasheet by following the link: 555 timer