I had been looking for a new hobby for a while. Something to fill a couple of hours between coming home and watching the News at Ten. I can't remember where I came across the Arduino, it just kind of drifted into my life, but as a new hobby this could be perfect. I bought a Starter Pack and got going. I learnt enough to get beyond the simple projects, ie flashing LED's, that kind of thing, to realize I wanted to do stuff that would interface with my telephone system. If you have an interest in old GPO stuff then at some point you are bound to come across TIM, the GPO speaking clock. A project was launched back in 2000 to recreate the speaking clock using micro-electronics but by the time I found out about it it was long since over. So what better than to build my own?
I come from a computer science background so had become fluent in C a very long time ago; programming the clock using the Arduino wasn't an issue. I could digitize a human voice recording and store it on EEPROM chip so that wasn't a problem. I discovered it's pretty easy to use a resistor ladder to create a simple
D to A converter and have it feed an op-amp for amplification. I could access the EEPROM voice data using using I2C to feed the D to A using some abstracted commands from a handy library. I could get time from the Internet using the Google time servers via an ESP wifi module so again no problem. The issue would be interfacing into the telephone system. How can I answer a call, connect to a duplex phone line and feed in the voice data for the caller to listen to?
A google around finally found a solution. I think the Cermetek CH1817-LM was probably obsolete by the time I found the post so I opted for a IXYS CYG2100 in the end, which also now appears to be obsolete.
There was also a very interesting application note that went with the 2100 that showed how to use a couple of op-amps to turn the 2 wire telephone line into a 4 wire line to send and receive into the DAA. All very educational stuff and it's unfortunate that the document is no longer on the IXYS site. I learnt a lot from it, particularly that the op-amps used in the circuit need to run from +5 to -5 v rail to rail as the analog/speech signal is represented by a positive and negative voltage. It seems obvious now but back then no where could I find it clearly explained. The most recent DAA offering has a good selection of application notes but a lot has changed in the way it operates. It seems that the 2 to 4 wire conversion is now built into the IC.
So I made my first serious Arduino project, and as speaking clocks go, it worked pretty well (well the second attempt worked better). Probably worth a blog of it's own at some point. The DAA provided a very simple way to monitor the phone line for a ringing signal, answer it and feed my digitized speaking clock voice out on to the properly terminated and isolated phone line. All under the control curtesy of the Arduino. Simples.
Comments
Post a Comment