Fairytale Phone

by makerspace_sh in Circuits > Raspberry Pi

40646 Views, 263 Favorites, 0 Comments

Fairytale Phone

IMG_1768.jpg

The Fairytale Phone is one of my first Raspberry Pi Projects I have made. I had already published this on my Blog makerblog.ch, but now this will be a more in depth instruction to build the Phone.

The finished phone will be able to play 10 different MP3 Files (In my case fairytales) with every number chosen from the dial.

You will need the following items to create the phone:

  • An old Rotary Dialer Phone
  • Raspberry Pi (A, A+, B, B+.. are all OK)
  • 5Volt 1Ampere USB Power Supply
  • SD Card with Raspbian
  • Soldering Equipment
  • Some Wires

In Step 1 we will disassemble the Phone first.

Scrap the Parts From Your Old Phone

IMG_1753.jpg
IMG_1754.jpg
IMG_1755.jpg
IMG_1757.jpg
IMG_1756.jpg
IMG_1758.jpg

Disassemble your old phone until you get all the Parts shown in the pictures. Make sure you don't cut the wires from the rotary dialer. With the Raspberry Pi, the Power Supply and the SD Card that makes all the main parts you will need.

Solder the Telephone Earcap to the Headphone Jack

IMG_1762.jpg
IMG_1763.jpg

Unscrew the telephone earcap protection in order to find the two wires from the earcap and solder these directly to the under side of the Headphone Jack from the Raspberry Pi as shown in the picture. Be sure to test the audio after the soldering.

Solder the Rotary Dialer to the GPIO Outputs.

IMG_1764.jpg
IMG_1765.jpg
IMG_1767.jpg
Raspberry-Pi-GPIO-Layout-Revision-2-e1347664831557.png

First find the wires wich close the dialer cirquit and do not click (In my case that where the yellow and the blue wire) Solder one of each pairs to the Ground Pin (14) in my case this is the yellow and the pink wire and one of each circuit to the Pins 12 and 16

Mount the Raspberry Pi

IMG_1767.jpg

Mount the Raspberry Pi in the phone. Since there are many ways to mount the phone I suggest you find your best choice for yourself. I used some distance bolts and screws.

Install the Software

Boot up the RaspberryPi and login. First update your Repositories:

sudo apt-get update && apt-get upgrade -y

Install Python3, Python GPIO and mpg123

sudo apt-get install python3 python3-gpio mpg123

Create a file in /usr/bin

sudo nano /usr/bin/phone

Copy the following code from this Gist to /usr/bin/phone:

https://gist.github.com/simonjenny/8d6c29db8b8a995a4d89

Make /usr/bin/phone executable:

sudo chmod a+x /usr/bin/phone

Copy your MP3 Files to /media, rename them to 1.mp3, 2.mp3 ... 10.mp3

Test your phone first :

/usr/bin/./phone

Update /etc/rc.local

sudo nano /etc/rc.local

and insert bevor exit 0;

/usr/bin/./phone &

Aaand Your Done :)

IMG_1768.jpg

If your phone works put the shell back on and enjoy.