Rotary Dial Phone v2.0 (Patreon)
Content
Hey folks! As mentioned recently, I'm planning on revisiting a few of my older projects and improving/fixing/updating them, and one of the ones that's caused me (and many of you!) the most grief was my first "Call Me!" project involving an old 1970s rotary telephone.
Last time, I made the deliberate decision to not modify the handset at all, but rather connect the Arduino to the end of the cable that you would normally plug into your wall socket. As it turns out, that was a bad decision. The problem is that you then have to make the Arduino emulate the way in which the public telephony system interfaces with the phone, and this is something that differs (wildly!) between different countries, making the code significantly less portable or useful than I had hoped. What I designed and tested using a UK phone simply didn't work on a US phone, for example.
I then did make another telephony project ("Smooth Operator"), which is a completely fully-featured private branch telephony system - answerphones, mutiple extensions, call waiting etc. etc., but this was a lot more complex to set up, used modern phone handsets, and required a Raspberry Pi controller which I know people are less familiar with, so it didn't totally meet people's needs either.
So, this time around, I've taken a completely different approach - opening the phone up and wiring directly to the various mechanical components - the dial switch, the hook, the earpiece speaker and microphone, and the solenoid that rings the bells. Fortunately, these old phones used screw connectors which mean that all of the hardware modifications required to access these parts are very simple, non-destructive, and completely reversable. I'll show you how I identified the components in my particular handset (a GPO 746), which you should be able to apply to your own handset, whatever make/model/country it was designed to work for, meaning it should be much more portable.
I've also taken the opportunity to upgrade the feature set somewhat - the phone is now capable of simulating both outgoing and incoming calls, the audio files are stored and delivered in higher quality via a dedicated MP3 player module, which allows for thousands of different sound files all mapped to unique telephone numbers, and I've structured the behaviour of the code around a Finite State Machine (FSM), which hopefully makes the behaviour much more explicit and easy to adapt if you'd like to add extra features.
Even if you're not interested in a telephone prop itself, I'd encourage you to learn about FSMs, as they're a very useful way of thinking out and modelling behaviour of any prop which has a more complex set of behaviours than simply on/off or solved/unsolved states. That behaviour can then be implemented in code using a switch() statement with various case: conditions.
As requested, I've kept the example tutorial here illustrating the core features using an Arduino, but you can also use an ESP8266/ESP32-based board which will provide additional functionality such as triggering a phone call remotely via Wi-Fi/Bluetooth rather than via the external push button demonstrated in the video.
I'll put up a separate Patreons-only post shortly with all the resources required - please ask if you have any questions!