-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jonathan Friedman edited this page Apr 5, 2019
·
9 revisions
- Connect white extender cable to Pi's audio jack
- Connect black male audio jack to extender (red and green wires with black jacket)
- USB micro power adapter (Canakit) with inline two-state button switch
- Blue and purple wire with small black button switch
GPIO18 (6th from top on right) - Blue
GND (7th from top on right) - Purple
GND (3rd from top on right) - Blue
GPIO14 (4th from top on right) - Green
GPIO4 (4th from top on left) - Yellow
GND (5th from top on left) - Orange
- 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
- Blue-Green-Yellow-Orange colors (in that order)
- Male pins
Pin F01 - Green
Pin F02 - Blue
Pin E14 - Yellow
Pin F14 - Orange
Pin A06 - Blue
Pin A08 - Blue
M14 - Red
O14 - Black
- Log onto
Phone
WiFi network with passwordPASSWORD
- Open up file browser ("Finder" on mac)
- Enter URL in address bar:
smb://Phone/phone
- Enter the following login info:
- Username:
pi
- Password:
PASSWORD
- Workgroup:
WORKGROUP
- Username:
- Open "config.py" with a text editor to change configuration
- 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 editconfig.py
- Follow steps for configuration #1-#4.
- Navigate to
audio
folder (/home/pi/share/audio
) - Delete/add new audio files
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:
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
sudo systemctl start hostapd
- See: Failed to start hostapd.service: Unit hostapd.service is masked./documentation/issues/1018#issuecomment-471335938)
-
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:
- Follow Set up a Raspberry Pi as a File Server for your local network
- Connect to shared folder by typing into file browser:
- smb://DEVICE/FOLDER
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