micro-nova / AmpliPi

Whole House Audio System 🔊
https://amplipi.com
GNU General Public License v3.0
289 stars 23 forks source link

Create automated full-unit tests #638

Open Lohrer opened 10 months ago

Lohrer commented 10 months ago

We would like to improve testing speed and accuracy by automating as many of the full-unit tests as possible. To start just the AmpliPi main unit should be targeted, but eventually the expanders and streamer should have automated tests as well. The end result should be as many of the checkboxes in TESTING.md being automatically checked (or not) with minimal human intervention.

Tests that should be automated:

Tests that will be difficult to automate:

Lohrer commented 10 months ago

This could be a good ADC/DAC https://motu.com/en-us/products/gen5/ultralite-mk5/ but it's only got 6 input channels out of the 32 we need. Maybe we could do some analog muxing?

There's also this beast with 16 analog inputs https://us.focusrite.com/products/red-16line. Or this cheaper one with 8 analog inputs but it doesn't look like they are fixed https://us.focusrite.com/products/clarett-plus-8pre.

More:

Lohrer commented 10 months ago

@linknum23 suggested looking at the Pi+HiFiBerry DAC/ADC. Here's some options:

DAC+ADC options:

Pi options:

Compared to the multi-channel audio devices from the previous post (>$100 per audio channel input) the Pi options (ranging from ~$43 to ~$85 per channel) are surprisingly enticing. More importantly, using many two-channel test components creates flexibility in scaling up and down for the different main unit, expander, and streamer testers.

Downsides mostly are that the main unit needs 16 Pi+Hat+Power+Ethernet.

linknum23 commented 10 months ago

Oddly with the pi 0 you could use the same wifi router you are using for the rest of the setup and power the whole thing off of a couple of powered USB hubs.

On Wed, Feb 7, 2024, 22:58 Michael Lohrer @.***> wrote:

@linknum23 https://github.com/linknum23 suggested looking at the Pi+HiFiBerry DAC/ADC. Here's some options:

DAC+ADC options:

Pi options:

Compared to the multi-channel audio devices from the previous post (>$100 per audio channel input) the Pi options (ranging from ~$43 to ~$85 per channel) are surprisingly enticing. More importantly, using many two-channel test components creates flexibility in scaling up and down for the different main unit, expander, and streamer testers.

Downsides mostly are that the main unit needs 16 Pi+Hat+Power+Ethernet.

  • Big! Would need a cluster case or similar to try to contain everything.
  • Ethernet: 16 Pis plus the main controller plus connection to the outside world is going to need a big switch.
  • Power: the Pi 5 required 5A @5v https://github.com/5v, the Pi 4 requires 3A. I'm sure they won't be pulling that much on average but that still means up to around 5V5A16 = 400W, plus the power strips for it all.

— Reply to this email directly, view it on GitHub https://github.com/micro-nova/AmpliPi/issues/638#issuecomment-1933325385, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEZPO2T6FXUKZQQJGNNVPDYSREPPAVCNFSM6AAAAABC6PRL2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZTGMZDKMZYGU . You are receiving this because you were mentioned.Message ID: @.***>