Skip to content
Jonathan Friedman edited this page Apr 5, 2019 · 9 revisions

Raspberry Pi Connections

Raspberry Pi 3 B+ showing pin connections

Audio

  • Connect white extender cable to Pi's audio jack
  • Connect black male audio jack to extender (red and green wires with black jacket)

Power

  • USB micro power adapter (Canakit) with inline two-state button switch

Safe Shutdown Button

  • Blue and purple wire with small black button switch
    • GPIO18 (6th from top on right) - Blue
    • GND (7th from top on right) - Purple

Ringing Control Connections (Output)

  • GND (3rd from top on right) - Blue
  • GPIO14 (4th from top on right) - Green

Hook Detection Connections (Input)

  • GPIO4 (4th from top on left) - Yellow
  • GND (5th from top on left) - Orange

Circuit Board Connections

Circuit board closeup showing connections

Ringing generator power (Kyocera power adapter)

  • female micro USB connector with red and black wires and blue jacket
  • connects to center of board
    • Pin H07 - Red wire
    • Pin I07 - Black wire

Raspberry Pi 4-wire band

  • Blue-Green-Yellow-Orange colors (in that order)
  • Male pins
    • Pin F01 - Green
    • Pin F02 - Blue
    • Pin E14 - Yellow
    • Pin F14 - Orange

Hook switch connections (two blue twisted wires, symmetric)

  • Pin A06 - Blue
  • Pin A08 - Blue

Ringing generator power input

  • M14 - Red
  • O14 - Black

Configuration

WiFi Direct Connection (basic)

  1. Log onto Phone WiFi network with password PASSWORD
  2. Open up file browser ("Finder" on mac)
  3. Enter URL in address bar: smb://Phone/phone
  4. Enter the following login info:
    1. Username: pi
    2. Password: PASSWORD
    3. Workgroup: WORKGROUP
  5. Open "config.py" with a text editor to change configuration

SSH (advanced)

  • Connect to Phone WiFi network or power up Raspberry Pi with ethernet cable connected
  • Run the following in console or other terminal emulator: ssh pi@phone.local
  • Enter password PASSWORD
  • Navigate to /home/pi/share and edit config.py

Update Audio Files

  • Follow steps for configuration #1-#4.
  • Navigate to audio folder (/home/pi/share/audio)
  • Delete/add new audio files

Notes

Follow Raspberry Pi as a Standalone WiFi Access Point with some modifications:

  • Step 3: Use ifconfig to bring up/down interface wlan0:

    • sudo ifconfig wlan0 down
    • sudo ifconfig wlan0 up
  • Add allow-hotplug befoore wlan0 config in /etc/network/interfaces (not sure if needed?)

  • Step 5: Shut down dnsmasq when trying to reach internet with ethernet

  • Run the following before starting/enabling hostapd service:

  • resolvconf settings will override dnsmasq nameserver, uncomment no-resolv in /etc/dnsmasq.conf

  • Patience. It can take over a minute for WiFi connection to work after rebooting.

Samba:

Dial tone:

  • 350 Hz + 440 Hz pure sine wave
  • Generate on the fly or play from audio file (latter seems simpler)

Since this project is an installation, RPi needs to be safely shutdown with a physical button:

Black Magic Telephone Ringing Generator

  • Pulls about 180 mA (5V input) when ringing