メインコンテンツまでスキップ

Configure your microphone and speakers - Wio Terminal

In this part of the lesson, you will add and speakers to your Wio Terminal. The Wio Terminal already has a microphone built-in, and this can be used to capture speech.

Hardware

The Wio Terminal already has a mic built in, and this can be used to capture audio for speech recognition.

The mic on the Wio Terminal

To add a speaker, you can use the ReSpeaker 2-Mics Pi Hat. This is an external board that contains 2 MEMS microphones, as well as a speaker connector and headphone socket.

The ReSpeaker 2-Mics Pi Hat

You will need to add either headphones, a speaker with a 3.5mm jack, or a speaker with a JST connection such as the Mono Enclosed Speaker - 2W 6 Ohm.

To connect the ReSpeaker 2-Mics Pi Hat you will need 40 pin-to-pin (also referred to as male-to-male) jumper cables.

💁 If you are comfortable soldering, then you can use the 40 Pin Raspberry Pi Hat Adapter Board For Wio Terminal to connect the ReSpeaker.

You will also need an SD card to use to download and playback audio. The Wio Terminal only supports SD Cards up to 16GB in size, and these need to be formatted as FAT32 or exFAT.

Task - connect the ReSpeaker Pi Hat

  1. With the Wio Terminal powered off, connect the ReSpeaker 2-Mics Pi Hat to the Wio Terminal using the jumper leads and the GPIO sockets on the back of the Wio Terminal:

    The pins need to be connected in this way:

    A pin diagram

  2. Position the ReSpeaker and Wio Terminal with the GPIO sockets facing up, and on the left-hand side.

  3. Start from the socket on the top left of the GPIO socket on the ReSpeaker. Connect a pin-to-pin jumper cable from the top left socket of the ReSpeaker to the top left socket of the Wio Terminal.

  4. Repeat this all the way down the GPIO sockets on the left hand side. Make sure the pins are in firmly.

    A ReSpeaker with the left hand pins wired to the left hand pins of the Wio Terminal

    A ReSpeaker with the left hand pins wired to the left hand pins of the Wio Terminal

    💁 If your jumper cables are connected into ribbons, keep them all together - it makes it easier to ensure you have connected all the cables in order.

  5. Repeat the process using the right hand GPIO sockets on the ReSpeaker and Wio Terminal. These cables need to go around the cables that are already in place.

    A ReSpeaker with the right hand pins wired to the right hand pins of the Wio Terminal

    A ReSpeaker with the right hand pins wired to the right hand pins of the Wio Terminal

    💁 If your jumper cables are connected into ribbons, split them into two ribbons. Pass one each side of the existing cables.

    💁 You can use sticky tape to hold the pins into a block to help stop any coming out as you are connecting them all.

    The pins fixed with tape

  6. You will need to add a speaker.

    • If you are using a speaker with a JST cable, connect it to the JST port on the ReSpeaker.

      A speaker connected to the ReSpeaker with a JST cable

    • If you are using a speaker with a 3.5mm jack, or headphones, insert them into the 3.5mm jack socket.

      A speaker connected to the ReSpeaker via the 3.5mm jack socket

Task - set up the SD card

  1. Connect the SD Card to your computer, using na external reader if you don't have an SD Card slot.

  2. Format the SD Card using the appropriate tool on your computer, making sure to use a FAT32 or exFAT file system

  3. Insert the SD card into the SD Card slot on the left-hand side of the Wio Terminal, just below the power button. Make sure the card is all the way in and clicks in - you may need a thin tool or another SD Card to help push it all the way in.

    Inserting the SD card into the SD card slot below the power switch

    💁 To eject the SD Card, you need to push it in slightly and it will eject. You will need a thin tool to do this such as a flat-head screwdriver or another SD Card.