Skip to content
Wikinaut edited this page Jul 26, 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 πŸ‘Ž
  • Mplayer: a dead project; very instable πŸ‘Ž
  • PyRadio: not bad; nice maintainer; adding further features was too difficult for me πŸ‘
  • mpv: Python-wrapper available (libmpv-dev/python3-mpv) πŸ‘πŸ‘

RaspberryPi issues

Input/output

  • RPi.GPIO: debouncing is not the only thing what is crappy πŸ‘Ž
  • RPi.GPIO: pulse width modulation (PWM) is also crappy πŸ‘Ž
    PWM is needed for LCD 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 (2-button press)
    • restarting the WiFi connection stack only
  • clean shutdown sequence (long keypress)
  • minimizing memory wear and system load:
    disabled syslog; own debug logging goes to β†’ RAM

Further features