This simple circuit can use any general-purpose transistor. The power supply must be isolated. The circuit is from Radio Electronics magazine, April 1982.