Rotary Phone v2.0 Resources (Patreon)
Content
This post contains additional Patreon-only resources and information to accompany the Rotary Phone v2.0 prop described at https://www.patreon.com/posts/41892314
First, a few notes on implementation:
The DFPlayer Mini MP3 module (like many mass-produced electronic components available from AliExpress/BangGood etc.) can vary slightly between different suppliers, and comes with very little documentation. On previous occasions when I've used this component, I've found that theoutput can be quite noisy if you provide it with 5V on the VCC - instead you can get better quality signal by adding a diode to the power supply line to drop the voltage slightly to around 4.2V instead. However, on this occasion, I didn't need to, and actually thought it sounded better directly connected to 5V. Also, again though it wasn't required for this project, for best practice I would normally encourage you to add a smoothing capacitor across the power lines close the DFPlayer. The image below shows these two modifications should you choose to implement them (Rx, Tx, and speaker out connections not shown):
In terms of behaviour, it's also worth nothing that the DFPlayer does not have a "Power" LED at all. There is an LED, but that only becomes lit when a track is playing from the SD card. Also, the device will fail to initialise correctly unless there is an SD card inserted into the slot!
I also realise that I didn't actually show a picture of the inside of the phone after I'd installed the Arduino/DFPlayer/Motor Driver components. So, if you're interested, here it is - you should hopefully find plenty of room to accommodate these parts even if, like me, your wiring is a bit clumsy!
In addition to the behaviour demonstrated in the video, I've also created another version of the code that demonstrates how you can also use a serial connection to trigger different phone calls, rather than by pressing a manual button. To use it, you can fire up the Arduino serial monitor and type the command RING followed by the index number of the audio file you want to play when the call is answered. So, let's say you want to make the phone ring to deliver the audio hint that is saved on the sd card as the files "mp3/0003_hint.mp3" (i.e. file "3"). Then here's what you'd do:
I'm just using the Arduino serial monitor as a convenient way to send serial messages to the phone - but that command could have been generated by any other control system, or triggered by another Arduino etc. The same technique can be used for triggers delivered by other means - e.g. MQTT.
Download
And here is the link to a Google Drive folder containing the downloads: https://drive.google.com/drive/folders/1k_sjo_gjRMJgz-WBFpMRpDV7I-noXoZu?usp=sharing
Inside you should find:
RotaryPulseTelephone - the Arduino project demonstrated in the video
RotaryPulseTelephoneWithSerial - Arduino project with additional serial code described above
mp3 - folder containing audio samples (ringing, dialling tone etc.) used and illustrating naming convention for adding your own audio samples
RotaryPulseTelephone.fzz - Fritzing wiring project
Telephone State Machine.svg - diagram of the state machine behaviour of the telephone
Resources Used
Rotary Pulse Dial telephone, ~$10 https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p2499334.m570.l1313&_nkw=gpo+746&_sacat=985
DFPlayer Mini MP3 Module, ~$3 https://www.banggood.com/custlink/Kv3yCUiv3A
Mini Motor Shield, ~$3 https://www.banggood.com/custlink/v3KdCwGCLA
Arduino Nano, ~$2 https://www.banggood.com/custlink/mGGmwdTDmU
Additional Images