As with any other HAT, the ReSpeaker 2-Mics Pi HAT can be mounted on a Raspberry Pi, and the Pi then programmed accordingly.
To help with the programming for the ReSpeaker HAT, there is plenty of documentation available online. Having said that, we did find that it was necessary to be a little creative with some of the information that we found.
The first step in getting to grips with the ReSpeaker 2-Mics Pi HAT is to mount the HAT onto a Raspberry Pi. Ultimately we would like to use the HAT with a Pi Zero. However, for our initial set up we made use of a Pi 3 Model B, since this is easier to attach to monitor, keyboard and mouse. Once we are happy that everything is working the way we would like, we will swap the Pi 3 for a Pi Zero, using the same SD card.
Once the HAT has been mounted onto the Pi 3, the Raspberry Pi needs to be attached to a keyboard, mouse, and monitor. Following that, the Pi is booted using an SD card that is imaged with the latest version of Raspbian. The process for imaging the SD card can be found at the Raspberry Pi Foundation’s website. We also cover this process in our blog article on Programming SD cards for Raspberry Pi.