Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry:audio_injector [2020/02/06 20:38] admin [Test] |
raspberry:audio_injector [2020/05/12 16:56] (current) admin [Links] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Audio Injector Installation ===== | ===== Audio Injector Installation ===== | ||
- | [[http:// | + | [[http:// |
- | ==== Installation === | + | ---- |
- | This manual is made for an Raspberry Pi 4 running [[https:// | + | ==== Installation ==== |
- | After connecting the Audio Injector to the Raspberry Pi change | + | |
+ | This manual is made for an Raspberry Pi 4 running [[https:// | ||
+ | |||
+ | After connecting the Audio Injector to the Raspberry Pi some software should be installed.\\ | ||
+ | First you have to download the deb package from [[http:// | ||
+ | $ tar -xf audio.injector.scripts_0.1-1_all.deb.tar.gz | ||
+ | And install it: | ||
+ | $ sudo apt install ./ | ||
+ | Change | ||
$ sudo nano / | $ sudo nano / | ||
Comment out: | Comment out: | ||
Line 14: | Line 22: | ||
Reboot your Raspberry Pi: | Reboot your Raspberry Pi: | ||
$ sudo reboot | $ sudo reboot | ||
- | \\ | + | |
- | After the reboot download: | + | ---- |
+ | ---- | ||
+ | ==== Alsa Mixer Settings ==== | ||
+ | |||
+ | [[https:// | ||
+ | There are two reference alsa mixer files which will allow you to setup default output with either line input or microphone input : | ||
+ | Download: | ||
$ wget https:// | $ wget https:// | ||
Unpack it: | Unpack it: | ||
$ unzip master.zip | $ unzip master.zip | ||
go into the folder: | go into the folder: | ||
- | $ cd stereo-and-zero-master/ | + | $ cd stereo-and-zero-master/ |
and run: | and run: | ||
$ alsactl --file asound.state.MIC.thru.test restore | $ alsactl --file asound.state.MIC.thru.test restore | ||
Line 33: | Line 47: | ||
$ sudo chmod 755 audioInjector-test.sh | $ sudo chmod 755 audioInjector-test.sh | ||
$ ./ | $ ./ | ||
- | \\ | + | |
+ | ---- | ||
==== Simple Play and Record ==== | ==== Simple Play and Record ==== | ||
Recording: | Recording: | ||
Line 41: | Line 56: | ||
---- | ---- | ||
- | ==== I2S Pins ==== | + | ==== I2S and I2C Pins ==== |
- | Beside the power and ground the I2S bus needs the following pins: | + | |
- | GPIO 18 (Pin12) | + | The following pins are used by the sound card, don't use them for anything else!\\ |
- | GPIO 19 (Pin 35) LRCLOCK; | + | Beside the power (5V and 3V3) and ground |
- | GPIO 20 (Pin 38) DATA IN; | + | GPIO 18 (Pin12) |
- | GPIO 21 (Pin 40) DATA OUT; | + | GPIO 19 (Pin 35) IN and OUT LR CLOCK (DACLRC and ADCLRC); |
+ | GPIO 20 (Pin 38) DATA IN (ADCDAT); | ||
+ | GPIO 21 (Pin 40) DATA OUT (DACDAT); | ||
+ | And the I2C bus needs these pins: | ||
+ | GPIO 02 (pin 03) | ||
+ | GPIO 03 (pin 05) SCLK | ||
< | < | ||
Line 52: | Line 72: | ||
</ | </ | ||
- | graphic from: | + | //graphic from: |
- | [[https:// | + | [[https:// |
---- | ---- | ||
Line 60: | Line 80: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | ---- | ||
+ | ==== License ==== | ||
+ | |||
+ | This manual is made by **Wolfgang Spahn** 2020.\\ | ||
+ | It is licensed under a [[http:// | ||
+ | |||
+ | < | ||
+ | <a rel=" | ||
+ | </ | ||
---- | ---- |