Go Down

Topic: play sound through telephone speaker (Read 753 times) previous topic - next topic

Lulrich

Hey There,
I want to connect an analog telephone to an Arduino. My plans are that the usual state is that the phone is ringing. As soon you pick it up it should stop ringing and start to play some sound files through the phone speaker. So it should react to the hook switch.

As this is my first Project using an Arduino my question is:

- which model would you recommend to use
- how to best connect a phone to the Arduino
- which inputs are usable to pick up the information I need

Any help is appreciated and thanks for your effort

Laurenz

Paul_KD7HB

You should really search the forum for all the other posts on doing what you want to do. No reason the repeat all the advice over and over..


Paul

Lulrich

I did, but most I found was way more complex than what I am trying to do.
But thank you, I will go through it again.

Paul_KD7HB

I did, but most I found was way more complex than what I am trying to do.
But thank you, I will go through it again.
But did you find anyone who was able to do what you want?

Paul

PerryBebbington

#4
Jan 31, 2019, 02:11 pm Last Edit: Jan 31, 2019, 02:18 pm by PerryBebbington
Have a look at the line circuit I posted in Telephone switchboard intercom you might be able to adapt it to your purposes.

EDIT
Sorry, I have tried multiple times to put that link in so it works and can't. Here it is in a form that will, I hope, work. https://forum.arduino.cc/index.php?topic=557137.msg3831412#msg3831412:

wvmarle

Wire up the button of the receiver (that normally breaks the line) as regular button.

Play ringing sound when button is in the pressed state (open?).

Play sound to receiver's microphone if not.

Use e.g. a DFPlayer Mini for playing the sounds. Or two of them may be easier (they're cheap): one connected to the speaker for the ringing sound, the other to the speaker of the headset.

Should be a very simple project, unless you left out some important information.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

BOBinSC

I'm probably too late but I thought Id post anyway, just in case you haven't given up yet.  Considering the amount of help you have received so far I'll be surprised if you ever return.

My advice would be to NOT use an arduino for this project, for several reasons:

1. As a first project there is too much to learn in order to make an arduino perform this task; it would be like asking for instructions on changing the clutch in your car if you have zero auto repair/mechanical experience - it's too big a job for a beginner.
2. I think it could be accomplished a lot easier without using an arduino.

I'll assume when you say "analog phone" you mean a legacy land-line telephone, like most people had in their homes 30 or 40 years ago.  Those phones operated on a system that normally supplied 52vdc from the telephone company central office, and in order to make the phone ring the central office would send 85v AC down the line, on top of the 52vdc.  The AC "ring voltage" was NOT 60Hz (60 cycles per second) like house electrical power; it was 20Hz, a much slower alternating current. 

We don't need the 52vdc because all we really need the phone to do is ring. However, generating an 85vac 20Hz signal would be pretty difficult from a low voltage source, especially for a beginner, so I'm going to suggest you not bother.  My advice would be to do something similar to what wvmarle suggested - using an mp3 player to play a phone ringing sound through a speaker you install in the phone.  But I would not suggest using the "DFPlayer mini" that wvmarle talked about, as it's too complicated for a first-timer to learn to use. 

Instead I would suggest buying a cheap mp3 player from ebay that has mechanical switches to operate it (not touch screens).  Listing #253576477505 looks like it would work and it costs only 99ยข.  See if you can figure out how to take apart the player and trigger it to play your phone ring mp3 tune using an external switch, which should be pretty easy, and if you can accomplish that task then continue with the project.  If that turns out to be too difficult then you might want to reconsider doing this project, as it's going to get more difficult.

The cheap mp3 player will not drive a speaker with sufficient volume, so you will need to buy an audio amplifier as well, which again can be had on ebay for cheap.  Listing 293001967969 is under $1 and has a volume control built-in.  See if you can figure out how to wire the mp3 player to the amp and the amp to a small speaker. This will give you more experience with wiring and electronics, and once you accomplish that task the rest will get easier.

Now if you add a second song to the mp3 player (your audio message) you should be able to wire the telephone hook switch to trigger the "next song" function on the mp3 player when the receiver is picked up.  You might also need to switch the speaker output of the amplifier from the speaker you mounted inside the phone (for the ring sound) to a speaker mounted inside the ear piece part of the hand set.  If I remember right, old desk-top analog phones had multiple contacts on the hook switch so you might be able to use one set to trigger the "next song" and another set to change speakers.  If there is only one set of switch contacts you will need to use that switch to power a relay that has multiple contacts.

I'm sure you will run into some hiccups along the way that I have not thought of, but that's always the case with electronic projects and it can be challenging as well as frustrating.  But solving those problems can be a rewarding experience so I encourage you not to give up too easily.  This is a do-able project, and I can see some fun practical jokes in your future.

Go Up