|
The Case. A recycled 1980s-era SVGA switch box. I've fallen in love with these as project boxes. The main switch has been replaced by the amplifier volume knob. I drilled holes for a 5-pin mic connector, LEDs, headphone jack, and a gratuitous button.
I suppose I could have found an RJ-45 to hook up the microphone and that would have been easier. But I wanted the old school look of the round, metal connectors.
LEDs as follows:
- Yellow LED below mic connector indicates power on. I may modified it to be some sort of heartbeat or connection status LED in the future.
- Green LED above left of speaker indicates "Receive", namely that signal is coming in from the internet connection. In Asterisk configuration parlance, this is actually called transmit because a node radio would transmit the signal.
- Red LED above right of speaker indicates "Transmit, namely that I am talking into the internet connection. In Asterisk configuration parlance, this is actually called receive because a node radio was receiving signal.
|
|
Gloriously Stock Sound Fob -- I soldered two wires (one channel plus ground) of a 3.5mm TRS stereo plug pigtail to two pins on the 5-pin panel mount connector. The plug plugs into the microphone jack on the sound fob. A second 3.5mm TRS stereo plug goes from the sound fob's headphone jack to the left, right, and ground solder points on the amplifier. That's it for the sound fob!
|
|
The Amplifier. The tiny amp has stereo inputs and outputs, so one output channel goes to the built-in speaker while the other goes to a headphone jack to connect external headphones if desired. Amazon has tons of variations of these, all based on some variation of the PAM something something chip. I chose one that could specifically be powered by 5v so that I could power it direclty off of the Raspberry Pi GPIO.
|
|
Wire nest. Shockingly, there is still quite a bit of space inside despite the mess of wires. The hole for one of the SVGA connectors in back provides a convenient access to the Pi SD card.
|
|
JST GPIO connections All non-audio signalling is accomplished via GPIO. The LEDs are connected to GPIO with on inline resistor on one of the legs. Resistor values can be 220, 330, 470 ohm.
The PTT activated COS signal only uses two GPIO pins: a 3.3 volt positive and a generic I/O pin that a script (see below) pulls to ground using the Pi's built-in pull up/down resistors. When PTT is pressed, the I/O pin is pulled high. The script reads that state and calls the usb-tune-menu command to assert COS. This tells Asterisk to pass mic audio into the internet connection. More on the script in the next section.
In this image, connections are as follows from left to right:
- Physical Pins 4 6 :: to 5 volt power to amplifier
- Physical Pins 14 16 :: to Green LED "RX"
- Physical Pins 18 20 :: to Red LED "TX"
- bottom row Physical Pins 17 19 :: from mic PTT, COS detect
|