Noch kein AutorÜbernehmen
Version 2Aktualisiert 3 Min. Lesezeit
- Lizenz
- CC BY-SA 4.0Bearbeitet nach www.appropedia.org
- Sprachen
- English
- Themen
- AnleitungenNatur
A small circuit board can give a robot a voice: the BREAD Text To Speech Slice takes text sent to an Arduino Nano and has a Raspberry Pi speak it. BREAD stands for Broadly Reconfigurable and Expandable Automation Device, and this slice is a BREAD module that interfaces with a Raspberry Pi. The account here is from the project's page on Appropedia.

Front view of the final slice PCB. Photo: Imhuff on Appropedia, CC BY-SA 4.0.
How it works
The board is a standard BREAD slice that:
- connects to the Raspberry Pi's 40-pin GPIO through a ribbon cable;
- receives text over its serial connection;
- passes the data from the Arduino Nano to the Pi over SPI;
- carries two daughter boards, an Adafruit level shifter and an Adafruit I2S amplifier;
- produces speech with the open-source eSpeak software, played through a speaker connected to the Pi.
The project suggests uses in user experience, since a voice could help BREAD robotics projects during development and for the end user, and in accessibility, particularly for people with visual impairments. Its design could also lead to further slices that use the computing power of a Raspberry Pi or a similar device.
Goals and what was achieved
The functional goals were an actual PCB, matching the form factor and hardware of other BREAD slices (with an Arduino Nano), reasonably responsive output, easy connection to typical speakers and proper interfacing with the loaf's Arduino Nano. The value-added goals were working around the current model's character limit and letting users customize settings such as voice, speed and volume.
The project met all of these except the interface with the loaf's Arduino Nano and the character limit. Because the project team changed, the software's scope had to shrink: the device's Arduino code does not fully meet the standard of typical BREAD slice code and cannot interact with the loaf's Arduino Nano. The board itself complies with BREAD standards, so only the code needs updating. Customization works through a special set of characters, currently "###", which marks the input as a command. The only command implemented is volume control, though the team says more would be relatively trivial to add.

Back view of the final slice PCB. Photo: Imhuff on Appropedia, CC BY-SA 4.0.
Building one
The KiCad files for fabricating the board are in the "Hardware" folder of the project's OSF repository, and JLCPCB is a recommended service for custom PCB orders. The parts include the Arduino Nano, header pins, two 10 uF surface-mount capacitors, the Adafruit level shifter and I2S amplifier, an Adafruit GPIO ribbon cable and a Raspberry Pi or compatible device. The steps are:
- Solder the pin headers to the board, then insert the Arduino Nano, level shifter and I2S amplifier with its speaker, and connect the ribbon cable between the slice and the Pi.
- Upload the Arduino sketch to the on-board Nano with the Arduino IDE.
- Install Raspberry Pi OS Lite, a build with no desktop environment, with the Raspberry Pi Imager, and add the Python script to the SD card.
- Boot the Pi, enable SPI communications through its configuration menu, and enable I2S audio by following Adafruit's guide.
- Install eSpeak and Python if they are not already there, then run the script at boot or by hand.
A full manual is in the repository's "Documentation" folder.

The final slice PCB connected to a Raspberry Pi B+. Photo: Imhuff on Appropedia, CC BY-SA 4.0.
The project's own list of bookmarks shows two stages of work: device setup and communications software from January to May 2022, then PCB development and proof-of-concept code from January to May 2023.
Sources
- Appropedia contributors, "BREAD Text To Speech Slice," Appropedia, https://www.appropedia.org/BREAD_Text_To_Speech_Slice, licensed under CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/); the page history lists its contributors. Photos by Imhuff on Appropedia, CC BY-SA 4.0. Changed here: rewritten in hubnx's own words and shortened; the bill of materials, resource list and some photos are left out. This page stays CC BY-SA 4.0; rewritten in hubnx's own words.
Kommentare





