|Software apps and online services:|
|Hand tools and fabrication machines:|
Google made their AIY projects kit available to the Pi users for free through the MagPi Magazine Issue 57. However, since then, there has been no word yet on the retail availability of the kit. So to help out the ones without the kit and as a contribution to the Pi community, I have come up with this DIY Voice HAT.
The HAT is created using the same components found on the original AIY Projects Kit Voice HAT. By, writing the same device tree, the DIY Custom Voice Hat can be used as an alternative to the original Google Voice HAT.
Following steps to be completed on the Pi.
git clone https://github.com/shivasiddharth/custom-voice-hat
1. Turn on i2s support in /boot/config.txt with:
sudo nano /boot/config.txt
Uncomment the following:
#dtparam=i2s=on #dtparam=i2c_arm=on #dtparam=spi=on #dtparam=audio=on
Add the following new entry:
Save Exit and Reboot.
2. Check for the Hats folder:
3. Open a new terminal and change directory to eepromutils:
4. Make the EEPROM flasher executable and Flash the EEPROM with the eeprom file:
sudo chmod +x ./eepflash.sh sudo ./eepflash.sh -w -f=voicehat.eep -t=24c32
5. Update Raspberry Pi kernels:
sudo apt-get update sudo apt-get install raspberrypi-kernel
7. Check if your HAT is recognized:
You will have a hat folder now with voice hat details. Shutdown and wire the parts as indicated in the attached wiring diagram.
Caution: Amplifier board should be powered using 5V and the mics using 3.3V.
- Start your Pi and move into the audio configuration scripts:
- Make the scripts executable:
sudo chmod +x ./custom-voice-hat.sh sudo chmod +x ./install-i2s.sh
- Run the Executable scripts:
sudo ./custom-voice-hat.sh sudo ./install-i2s.sh
custom-voice-hat.sh script until you get .bak notification. Reboot and enjoy your HAT.
Custom Voice HAT
Love this project? Think it could be improved? Tell us what you think!