Good grief, all you have to do is interrupt current in the primary circuit when the door opens. The conducting path for the primary is between the door frame and the door hardware. The secondary (HV) side attaches to the doorknob on the inside. When you expect your roommate, you simply energize the primary with a hefty battery. The door frame is circuit 'common.'
You could do it with a 555 and a transistor. I once made a friend an electric fence driver with an old valve radio transformer and an ignition coil. On one half cycle the HV winding charged up a cap. On the next half cycle the 6.3v winding triggered an SCR which put the cap across the coil. You just had to get within half an inch and a spark would jump across onto you. My friend was called Frank, so we called my device Frank's Zapper...
There are a few details missing here, since, in the era that he plated this trick, automotive ignition coils did not include any interrupting means integral with the coil assembly. So we could assume that it was probably one of the very old Ford Sparking coil devices. If not, then it could be useful to know just how a more current coil was driven to work in this application.
David Patterson, known for his pioneering research that led to RAID, clusters and more, is part of a team at UC Berkeley that recently made its RISC-V processor architecture an open source hardware offering. We talk with Patterson and one of his colleagues behind the effort about the opportunities they see, what new kinds of designs they hope to enable and what it means for today’s commercial processor giants such as Intel, ARM and Imagination Technologies.