Skip to content
Wikinaut edited this page Jul 25, 2023 · 25 revisions

Pinetradio:
a RaspberryPi Zero Internetradio with Pirate Audio Line- or Amp-Out HAT and LCD-Display

A Lightning Talk for Berlin Hack and Tell edition #89: camping hacks, c-base Berlin 25.07.2023.

Why? Reinventing the wheel? No!

Interradio issues

  • Mopidy: a server-client system, complicated & instable πŸ‘Ž
  • PyRadio: not bad, nice maintainer, but features were too difficult to add for me πŸ‘
  • Mplayer: a dead project; very instable πŸ‘Ž
  • mpv: Python-wrapper available (libmpv-dev/python3-mpv) πŸ‘πŸ‘

RaspberryPi issues

Input/output

  • rpigpio: debouncing is crappy πŸ‘Ž
  • rpigpio: pulse width modulation (PWM) is crappy πŸ‘Ž
    PWM is needed for display dimming
  • now using pigpio as a system service (daemon) πŸ‘πŸ‘

System and connection

  • monitoring WiFi (radio signal strength RSS/RSSindication)
  • easy & quick ways of restarting:
    • restarting the player only
    • restarting the WiFi connection (WiFi stack) only
  • clean shutdown sequence (long keypress)
  • minimizing memory wear and system load:
    disabled syslog; own debug logging goes to β†’ RAM

Further features

  • Now take your seat, a drink and let's move to the code and Readme!
Clone this wiki locally