Site Tools


Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
projects:piradio

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

projects:piradio [2020/12/05 06:34] – old revision restored (2020/08/29 23:15) 2a01:4f8:162:14e::2projects:piradio [2021/10/31 10:42] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +===== cuircuit fun =====
  
 +^ Heading 1      ^    ^    ^ Heading 3          ^
 +| 3V         | 1  | 2  | 5V          |
 +| -          | 3  | 4  | -           |
 +| -          | 5  | 6  | GND         |
 +| GPIO (LCD) | 7  | 8  | GPIO (KP)   |
 +| -          | 9  | 10 | -           |
 +| GPIO (LCD) | 11 | 12 | GPIO (LCD)  |
 +| GPIO (KP)  | 13 | 14 | -           |
 +| GPIO (LCD) | 15 | 16 | GPIO (LCD)  |
 +| -          | 17 | 18 | GPIO (LCD)  |
 +| GPIO (KP)  | 19 | 20 | -           |
 +| GPIO (KP)  | 21 | 22 | GPIO (LCD_BRIGHTNESS)   |
 +| GPIO (KP)  | 23 | 24 | GPIO (KP)   |
 +| -          | 25 | 26 | GPIO (KP)   |
 +
 +===== piRadio new =====
 +<code bash>
 +pacman -S pi-bluetooth bluez pulseaudio-bluetooth python-dbus python-gobject
 +</code>
 +<code bash>
 +systemctl daemon-reload
 +systemctl enable --now brcm43438 bluetooth
 +</code>
 +<file - /etc/bluetooth/audio.conf>
 +[General]:
 +Enable=Source,Sink,Media,Socket
 +</file>
 +<file - /etc/bluetooth/main.conf>
 +Class = 0x00041C
 +[...]
 +DiscoverableTimeout = 0
 +</file>
 +
 +<file - /etc/pulse/daemon.conf>
 +resample-method = trivial
 +</file>
 +<code bash>
 +systemctl restart pulseaudio
 +</code>
 +<file - /etc/pulse/system.pa>
 +...
 +load-module module-bluetooth-discover
 +</file>
 +
 +<code bash>
 +bluetoothctl
 +power on
 +system-alias piRadio
 +agent NoInputNoOutput
 +discoverable on
 +pairable on
 +</code>
 +<code bash>
 +sudo -u piradio pactl list sources short
 +sudo -u piradio pactl list sinks short
 +sudo -u piradio pactl load-module module-loopback source=bluez_source.B4_3A_28_A8_D7_B3.a2dp_source sink=alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo
 +</code>
 +
 +===== bluetooth new =====
 +<code bash>
 +pacman -S bluetooth-raspberrypi
 +</code>
 +  * https://github.com/RoEdAl/alarm-bluetooth-raspberrypi
 +
 +<code bash>
 +pacman -S firmware-raspberrypi bluez-utils-compat
 +</code>
projects/piradio.txt · Last modified: 2021/10/31 10:42 by 127.0.0.1