2009-08-17

The tag on the phone said:
phone
as-is
$8.50


Perfect.
In various states of functionality, there are about 15 rotary phones in my home, this particular phone however, is destined for a different sort of communication.
Based upon the schematic that was used for the serial switch project I really wanted to make a multi-switch input device. It would be easy to simply solder on two more switches to the existing project and then run various commands when each switch is pressed, but that wouldn't be much fun. Fortunately, I know that a rotary phone has three switches inside. Let the fun begin.




The phone was light, too light. From experience, I had guessed that the ringer was gutted from this phone. Not only was the ringer gutted, but most of the internals where also removed. Oh well, it makes things easier for me. Here you can see the body, the internal cradle switch mechanism, and the back of the dialer.

Perhaps I should do this with every phone I have with a missing or broken ringer.




Step 1. Determine which of the wires coming from cradle switch from a closed circuit when the headset is placed on the cradle. There can't be more than 8 wires so it should be fairly easy to do.




Whoops. Wow, those things fall apart fairly easily and I was left with a pile of wires, switch contact points, spacers, and a sense of determination.

This is about 75% of the wires.




Hey, that wasn't too hard to put back together. Much like the toys I insisted on taking apart as a child, this switch was put back together with a few parts missing.

Actually, I only needed two contact point to make the switch work the way I want it to. The extra contact points were added to give pull on the slotted bar connected to the spring lever.




This is a close of up the back of the rotary. There are two switches here that I will refer to as the rotator and the dialer. If the rotary is moving then the rotator switch is making a closed circuit. The dialier on the other hand is normally closed, but when the rotary is swinging back to its default stationary position after a user has dialed a number, the dialer switch will break the circuit a number of times equal to the number that was selected. After the rotary has finally parked in the stationary position, the rotator switch opens and breaks the circuit.




Three switches means 6 connections: 3 grounds and 3 leads. Since the three grounds will be soldered to the same pin on the serial port, I only need a 4 wire cable. Fortunately I had a spare black USB cable( and USB cables only have four wires).

All soldered up and ready for electrical tape. OK, I used duct-tape.




All done with the hardware, now it is coding time!
Fast forward an hour
The code is done and everthing is working as expected. So how does it work?
1. pick headset off of cradle
2. dial a number that corresponds with a command in the configuration file
3. hang up the phone
4. the command is run on the computer




For example:
  • dialing "1" will run the command "firefox http://www.linuxoutlaws.com " which will open the Linux Outlaws website in Firefox.
  • dialing "2" will play the latest episode of my favorite audcast; It is time to remove the pod and put in some aud-io.
  • dialing "22" will play the Conan Soundtrack
  • dialing "23" will play compositions by Basil Poledouris (randomly)
  • "3" will quit all audio players
  • "01189998819991197253" will run "firefox http://www.youtube.com/watch?v=RK4Xye7AErE "


quit reading and go make something.
Comments
2009-08-17 Alistair Munro:
That's very, very cool :)
2009-08-18 Davey_Speedstar:
Really cool device - but I'd hate to see the size of the telephone directories at your house :-)
2009-08-28 Dan Lynch:
Wow, this is amazing. Nice work dude :)
2009-09-02 david:
cute.
2009-09-03 St3v3:
Fantastic! Now if you can just connect it to your Linksys WRT54GL and use it to program your router.
2009-09-09 bgryderclock:
That is awesome sir!
2012-03-20 dan:
What more would it take to connect the audio and program it to run Skype out?
2012-03-20 jezra:
Dan, some wire stripping, maybe some soldering. See http://www.jezra.net/blog/Red_Phone_Mumble_Test for reference, I use the Red Phone for skype.
2014-08-18 Anonymous:
Could you just use a USB input?
2014-08-18 jezra:
only if I wanted to purchase and program a microchip to act as a USB device.
Name:
not required
Email:
not required (will not be displayed)
Website:
not required (will link your name to your site)
Comment:
required
Please do not post HTML code or bbcode unless you want it to show up as code in your post. (or if you are a blog spammer, in which case, you probably aren't reading this anyway).
Prove you are human by solving a math problem! I'm sorry, but due to an increase of blog spam, I've had to implement a CAPTCHA.
Problem:
5 minus 4
Answer:
required
MCM_468x60_static
subscribe
 
2019
2016
2015
2014
2013
2012
2011
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008