MIC+

no backktop_yellow.png

Promo code is here...

Full options all-in-one sound card for voice app

  • Experiment with the Google AYI assistant (100% pin to pin compatible) and Alexa.

  • Open source assitant such as ADRIAN, SNIPS and others projects

  • Any portable radio project where you need built in speaker

  • Power directly your old speaker

  • No extra power supply required

  • Raspberry 4 compatible, Raspberry Pi 3, Zero

IMG_20180416_142714.jpg

Built-in speakers and microphone

Here shown on a Raspberry Pi 3 (Raspberry 4 compatible)

speaker_yellow

Connect to any old passive speakers

Thanks to the 2x5W built-in amp, perfect for a voice assistant setup.

button_yellow.jpg

Trigger the onboard red light button !

... or connect an external one using the screw terminal

Let's get technical

 
LegendMIC.png

1. Microphone I2S High sensitivity on board

2. 2x5w Stereo Amplification 2 onboard speaker included

3. DAC I2s 24-bit audio with studio sampling quality

4. Line out stereo 3.5mm jack

5. Onboard yellow button, 1 status red led

6. Extention screw terminal for external push button, external led

7. Extention screw terminal for external speakers (2 to 8 ohm)

8. Soldered Long female header 2x20 (NO soldering required) Compatible with Raspberry Pi 4, 3, 2, B+, A+, and Zero

The following pins are mandatory to use for sound and can’t be reassigned:

  • CLOCK = pin 12
    WORD SELECT = pin 35
    DATA = pin 40 for audio out AND pin 38 for the mic (sorry there is a mistake in the XYZ diagram as it is not mentioning pin 38)

  • Also note that the Google AIY driver we are using is keeping pin 36, busy when audio is played,

    • only if you need pin 36, use the following instructions, otherwise discard the following as it is long to do because you need to recompile the kernel:

      • 1- Edit file   /boot/config.txt

         >sudo nano  /boot/config.txt

         Modify line “dtoverlay=googlevoicehat-soundcard”

        ==> “dtoverlay=hifiberry-dac

         2- reboot

         > sudo reboot

         3- Follow the “raspberry Pi i2s configuration” instructions until the end, yes you have to recompile the kernel

        at : https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test

         4- Edit files  /etc/asound.conf (and/or .asoundrc)

         >sudo nano  /etc/asound.conf

        ==> delete line 1 (“option….”)

         5- reboot

pinout MiC.jpg

INSTALLATION

For Raspian users:

-Insert your Rapsberry Pi Shield in your Raspberry pI then turn it on

-Open a terminal (yes the black window thing) and type this to download the bash file and run it:

sudo wget -O - mic.raspiaudio.com | sudo bash

-Say yes for the reboot

-On the next reboot you  have to run the test to finish the installation (it is an ALSA oddness):

sudo wget -O - test.raspiaudio.com | sudo bash

Push the onboard button, you should hear "Front Left" "front Right" then the recorded sequence by the microphone.

It should sound like this:

If the volume is too low you can adjust the gain of the microphone by typing:

alsamixer

A gain at 50 is a good start:

cap.png

You can also use the desktop volume control in Preferences-Audio Devices Setting-  Then click on "Select Control" and check "Master" and "Mic":

Here is the script source for the test

.For references here is the script source updated for Raspbian Buster.

 

 

From the official Google AIY image: 

-Downlowad the official Google AIY image here 

-Write the image to an SD card using a card writing utility (Etcher.io is a popular tool for this)

-Insert your Rapsberry Pi Audio Shield in your Raspberry pI then turn it on

-Open a terminal (yes the black windows thing) and type:

sudo wget -O - aiy.raspiaudio.com | bash

-run the audio test "Check audio" on your desktop, reboot to allow volume control on the desktop

-Follow this guide to setup the credential to run Google's examples here

For the references the script souce is here

 

Try the Alexa voice assistant:

-Install a fresh version of RASPBIAN STRETCH WITH DESKTOP and follow the setup explain in the first section above "For raspbian user"

-Then follow this good instructable until the end

-You now have to setup the sound output type to edit:

sudo nano /etc/opt/AlexaPi/config.yaml 

be sure that you have the following: sound section:

 

sound:
  # Name of your microphone device: "raspberrypi"
  # leave empty for default
  input_device: ""

  playback_handler: "vlc"

  # you can go here with alsa, pulse or others
  # keep blank for the best audio output selected by the underlying code
  output: "alsa"
  # output device: "raspberrypi"
  # currently supports ALSA only
  output_device: ""

  # if left empty, won't be passed to the underlying library / command if it su$
  # if it doesn't 100% will be used
  default_volume: 80

  # Means the same as above, but is used for media (playing music for example)
  # Leave blank to use the same setting as for speech content
  media_output:
  media_output_device:
  media_default_volume:

  # Some device: "raspberrypi"
  # value is the number of seconds of silence to pad the beginning and end of t$
  # the sox handler supports this configuration option.
  playback_padding: 0

  

Also change the GPIO setting for the trigger button and led:

  raspberrypi:
    # GPIO Pin with button connected
    button: 23
    # GPIO Pin for the playback/activity light
    plb_light: 25
    # GPIO Pin for the recording light
    rec_light: 25

Then reboot, if you push on the button you can ask an important question to Alexa:

 

 

Check the complete Pinout here

 

  

 

How to break appart the microphone: 

Moving the microphone further away form the speaker could be in some case usefull, for example if you would like to make a vocal assistant. 

Use a cutter to weaken the part shown of the picture, give at least 10 pass of the blade above the little holes, then use your finger to apply pressure, try not to push too strongly of the microphone component (metalic rectangle). Then connect the cable as shown on the picture below.

How to turn off the speakers: 

If your project requires to turn off the onboard speakers, note that on the Back of the board you have 2 soldering point CUTL and CUTR, using a soldering iron remove the 2 solodering point. This operation is reversible by adding back some soldering.

Buy Now

Raspiaudio available in Amazon USA, CA, France, Germay, Italy, Spain, UK

 

Plug and Play Google AIY compatible with mic and speakers

Make your own voice controlled internet radio! the GIT for the project is here