I want to create a puzzle where I have a old landline phone with a keypad connected to an Arduino. I want the Arduino to cause the phone to ring and then when it is picked up to play a audio file. Then the person presses a series of keys that goes to the Arduino then the Arduino plays another audio file after they press the correct keys.
What would be the easiest way to accomplish this? I need it to require no setup if power is cycled. I would like to use an Arduino , but if its impossible and I need to use a Raspberry Pi, I need it to be straightforward/guided setup. Thank you for the help.
I'm assuming you already know the difference between a raspberry pi and an Arduino. I think it would be possible to use an Arduino to accomplish this, since it won't need wifi connectivity, to use cameras, or any other tasks that are easier on a raspberry pi. Here are some other posts you should look at as guidance:
I guess it depends on how much you are willing to modify the phone. Standard phones combine signalling and audio over two wires, which is great for telephone exchange systems, but less great for connection to MCUs.
I am assuming you have a DTMF (tone) rather than pulse dial.
Building the exchange side will require some bespoke circuitry. An easy method for a one off project is probably to modify the phone to create separate connections for the mic, speaker, ringer and keypad. The mic and speaker can then be driven with standard audio components. The keypad can probably be connected directly to the digital pins,.
The ringer needs something like 40V AC to ring which needs a non-standard circuit. ISTR there was a recent post by someone trying to do that.
I have done this using an MP3 player board which has an sd card (I can play back from a selection of MP3 files) and I ring the bell using a H bridge to provide the "ac signal", I found 12v is enough for a convincing ring. I found that by adjusting the volume of the MP3 player it can work as a normal handset but can also be loud enough to hear it without picking up the handset.
Thank you for the link! I have already tried ripping the gut out of the phone and using my own board and connecting to the keypad and using a mini solenoid to ring the ringer and connecting the reciever speaker to a audio board. I am trying to see if there is a way to use capitalize on the original parts and communicate with it like a "real" phone.
It is a DTMF tone phone with a keypad. Thank you for the link! I have already tried ripping the gut out of the phone and using my own board and connecting to the keypad and using a mini solenoid to ring the ringer and connecting the reciever speaker to a audio board. I am trying to see if there is a way to use capitalize on the original parts and communicate with it like a "real" phone.