Skip to the content
2 layers100 × 100 mmSpeaker, the printed circuit board in 3D

The modular, research-friendly smart home hub

Size
100 × 100 mm
Copper layers
2
Thickness
1.6 mm
Parts
136
Nets
213
Pads
530
Tracks, vias
1,375, 167
Pours
6
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
5 Jul 2023
Updated
11 Jul 2023

Overview

Speaker is an open-source printed circuit board by LOEWE-emergenCITY, from the LOEWE-emergenCITY/freespeaker repository on GitHub. It is a 2-layer board of 100 × 100 mm with 136 parts on 213 nets, routed with 1,375 tracks and 167 vias.

It is built around the ATMEGA32-16AU. Its parts include 42 capacitors, 18 resistors, 6 connectors, 4 ICs and 1 diode. It belongs with the audio and music boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

FreeSpeaker

This repository provides the current state of our modular smart speaker research platform called FreeSpeaker.

:warning: Work in progress

The current state of the FreeSpeaker is a first beta version. We plan to update the design and add changes that will lead to incompatibilities with current hardware.

Mechanical design

CC BY 4.0

Find the CAD files for the plattform in mechanical_design/. The components were designed to be 3D printed.

Tools: Autodesk Fusion 360 or any CAD program compatible with STEP files.

The CAD files are licensed under a Creative Commons Attribution 4.0 International License.

PCB design

CC BY 4.0 Find the design files for the PCB in electric_design/.

Tools: KiCad 6.x

The electrical design files are licensed under a Creative Commons Attribution 4.0 International License.

Software

MIT Find scripts to setup the different components in software/.

The software components are licensed under a MIT License.


The following demo paper was send to review at MobiCom 2023.


Demo: Introducing FreeSpeaker -- A Modular Smart Home Hub Prototyping Platform

Smart home speakers have become a commodity item in many households and provide interesting research opportunities in areas like wireless communication and human-computer interaction. Commercial devices do not provide sufficient access for many research tasks. We present a modular smart home hub designed specifically for research purposes. The electronic and mechanical components are designed with reproducibility in mind and can be easily recombined for a project's needs. Additionally, we show applications of the hub in different scenarios.

Introduction

FreeSpeaker exploded view

Exploded view: On the left a stack of power supply (1), mainboard (2), and on top the UI (3). On the right (4), separately and in greater detail, the module with the speaker drivers for audio output.

Smart home speakers like Amazon Alexa or Google Nest have become increasingly popular in the last years. This sparks interest to use them for investigating topics such as acoustic communication, evaluating new wireless communication schemes, or studying novel human-computer-interaction patterns [ 1, 2, 3, 4, 5 ]. While commercial speakers are cheap and readily available for consumers, their closed nature does not provide a suitable platform for research. Neither their hardware nor software documentation is publicly available and researchers cannot run arbitrary experiments on them. Some attempts to reverse engineer commercial smart speakers have been successful 6 but a fully open hardware platform would still benefit the research community. Additionally, features not available in commercial devices like special radio protocols can be implemented, if needed. A modular system helps with this, as new functionality can be added easily.

In this demo, we show such a modular platform called FreeSpeaker based on a Raspberry Pi Compute Module 4 (CM4). We designed and built the electronics for this system including the basic modules implementing the functionality of modern smart speakers. We publish the current state of the design files for electronics and mechanical parts as well as scripts for setting up the system on GitHub. (this repo)

Design

Different components to run the smart home hub are split into modules that can be reassembled without any tools. So far we implemented a power supply module, the mainboard containing the CM4, a speaker and microphone array combination, and a user interface with LEDs and a rotary encoder. Additionally, we provide a prototyping module with a small breadboard on top. Reproducibility of the hardware was a main concern to enable other researchers to build their own hardware. Therefore, the electronics are designed to be easily produced and assembled by major PCB prototyping companies, need only minor additional work and no special tools other than soldering equipment. The enclosure is designed for 3D printing since it provides a cheap way to produce low volumes of plastic parts.

Electronic Design

During PCB development, we ensured that boards can be manufactured with easily accessible soldering tools. Each signal is accessible via test pads and soldering bridges to enable changes on the PCB without reordering. The main controller module is a CM4 that provides CPU, RAM, and storage available in different configurations. The mainboard supports a serial console and Ethernet. We used the same connector on all modules to provide power and to allow communication between the modules and the mainboard. Each module connects to a bus that enables hardware identification and in-circuit firmware updates.

Mechanical Design

Each module of the hub has a round, stackable enclosure. We designed a tool-free mechanism with a lock ring to hold the modules together. Additionally, the mechanism aligns the modules' electrical contacts and ensures their correct orientation.

Software Design

We chose the CM4 to benefit from the large and well-maintained software repositories of the Raspberry Pi ecosystem. We provide an install script that sets Linux Device Tree parameters and installs required drivers to use the custom hardware setup. Then, researchers can install additional packages as required by their project.

Applications

Our hardware platform enables researchers to build proofs of concept. During first demonstrations, participants easily recognized the device as a Smart Speaker. This allows researchers to focus on the new application rather than explaining the intended environment. The following sections give a short overview of running projects using the device.

Public Warning Systems in Smart Homes

In the living lab eHUB, the FreeSpeaker is integrated into the smart home setup. Our device is one of multiple actors in the house which all connect to a local MQTT broker. The UI of the FreeSpeaker is available to the main controller of the house and enables inhabitants or guests to control the smart home system. Currently, we use the speaker and an electronic paper display in the eHUB in combination to provide visual and audible information.

Secure Bootstrapping Using Acoustic Communication

Scheck et al. 7 used the FreeSpeaker to implement a secure pairing process with an acoustic out-of-band channel. While commercially available smart speakers theoretically provide the required hardware for acoustic pairing, software access to them is too restricted. The FreeSpeaker enabled them to demonstrate their protocol on a device similar to available smart speakers.

Future Work

We demonstrated the general viability of our smart speaker as a research platform with a flexible mechanical design and modular swappable components, while still being easy to assemble. Based on our experience with the first platform revision, we plan to redesign the PCB and signal routing to support future extensions of our platform with improved modules for battery, display, and wireless protocols. This PCB redesign will result in incompatibilities, whereas our mechanical design remains compatible.


This work has been funded by the LOEWE initiative (Hesse, Germany) within the emergenCITY center.

Parts

136
QtyValueFootprintReferences
32SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmJP10, JP11, JP12, JP13, JP14, JP15, JP16, JP17, JP18, JP19, JP20, JP21, JP22, JP23, JP24, JP25 +16
13Sloder_Jumper_3hardware_id:3_way_solder_jumperJP35, JP36, JP37, JP38, JP39, JP40, JP41, JP42, JP43, JP44, JP45, JP46, JP47
10100nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC14, C15, C23, C24, C25, C26, C27, C28, C38, C41
810nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC32, C33, C34, C35, C36, C37, C47, C48
851R 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9, R10, R11, R12, R13, R14, R17, R18
8MountingHoleFreeSpeeker:mouting_hole_with_clearanceH1, H2, H3, H4, H5, H6, H7, H8
61nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC9, C10, C19, C20, C21, C22
61uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C4, C5, C6, C7, C8
4220nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC11, C12, C13, C16
433pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC29, C30, C31, C44
4FerriteBeadInductor_SMD:L_0805_2012Metric_Pad1.15x1.40mm_HandSolderFB1, FB2, FB3, FB4
4SPU0410HR5H-SB-7SPU0410HR5H-SB-7:SPU0410HR5H-SB-7MIC1, MIC2, MIC3, MIC4
333k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3, R8
2100uF TantalumCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-B_Pad1.50x2.35mm_HandSolderC17, C18
22K2LED_SMD:LED_0805_2012MetricR5, R6
2Screw_TerminalTerminalBlock_Phoenix:TerminalBlock_Phoenix_PT-1,5-2-5.0-H_1x02_P5.00mm_HorizontalJ5, J7
1100nLED_SMD:LED_1206_3216MetricC3
110R 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR16
110k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR15
110mInductor_THT:L_Radial_D7.8mm_P5.00mm_Fastron_07HCPL1
110nCapacitor_SMD:C_0805_2012MetricC2
1120Resistor_SMD:R_0603_1608MetricR4
130Pin_Connector_FPCFreeSpeeker:FPC_30locked
139k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
156k 1%Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR7
1ATmega32-16APackage_QFP:TQFP-44_10x10mm_P0.8mmU4
1AVR-JTAG-10Connector_PinHeader_1.00mm:PinHeader_2x05_P1.00mm_Vertical_SMDJ2
1AudioJack3Connector_Audio:Jack_3.5mm_CUI_SJ1-3533NG_HorizontalJ1
1Conn_02x04_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x04_P2.54mm_VerticalJ4
1Hardware_ID_feature_connectorhardware_id:hardware_ID_feature_connector_for_productionJ3
1LED GreenLED_SMD:LED_0603_1608MetricD2
1ReSpeaker_4-Mic_Linear_ArrayConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalU1
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP2
1TPA3140D2PWPRTPA3140D2:TPA3140D2PWPRU2
1TestPointTestPoint:TestPoint_Pad_D1.0mmTP10
1slice_connector_maleConnector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalU5

More from LOEWE-emergenCITY/freespeaker

5
  • 2 layers100 × 100 mmFreeSpeaker, the printed circuit board in 3D

    FreeSpeaker

    LOEWE-emergenCITY/freespeaker

    The modular, research-friendly smart home hub

    100 parts1
  • 2 layers100 × 100 mmPowerSupply, the printed circuit board in 3D

    PowerSupply

    LOEWE-emergenCITY/freespeaker

    The modular, research-friendly smart home hub

    90 parts1
  • 2 layers100 × 100 mmPrototypingSlice, the printed circuit board in 3D

    PrototypingSlice

    LOEWE-emergenCITY/freespeaker

    The modular, research-friendly smart home hub

    74 parts1
  • 2 layers100 × 100 mmUserInterface, the printed circuit board in 3D

    UserInterface

    LOEWE-emergenCITY/freespeaker

    The modular, research-friendly smart home hub

    71 parts1
  • 2 layers100 × 100 mmLoRaWan, the printed circuit board in 3D

    LoRaWan

    LOEWE-emergenCITY/freespeaker

    The modular, research-friendly smart home hub

    65 parts1

Similar boards

  • 2 layers176.4 × 21.4 mmLedClock, the printed circuit board in 3D

    LedClock

    qb-creates/pov-led-clock

    POV Clock using an ATmega32 microcontroller.

    47 parts2MIT
  • 2 layers95 × 70 mmDigiLight, the printed circuit board in 3D

    DigiLight

    mrKuzmich/DigiLightM_pcb

    Digital light organ DigiLight-M. Schematic and PCB.

    88 parts1
  • 2 layersLCD Project, the printed circuit board in 3D

    LCD Project

    belishaza-jordan/Atmega32

    An embedded user-interface project built on the ATmega32 microcontroller. A 16×2 LCD displays a menu and parameter values while push buttons let the user navigate menus, adjust settings, and save values.

    18 parts
  • 2 layers209.5 × 134.5 mmATmega32 External Event Object Counter, the printed circuit board in 3D

    ATmega32 External Event Object Counter

    naslaizer/ATmega32_External_Event_Object_Counter

    ATmega32-based External Event Object Counter utilizing hardware interrupts (INT0), an 8-bit parallel 16x2 LCD display, and a custom single-layer curved-track PCB layout.

    15 parts
  • 2 layersKeyboard Memory Emulator, the printed circuit board in 3D

    Keyboard Memory Emulator

    ShreksHellraiser/Vintage-Keyboard-Memory-Replacement

    ABANDONED UNFINISHED - A memory replacement PCB that adds sample loading and saving to the SK-1

    40 parts
  • 2 layers240.7 × 179.5 mmSmart Ventilator PCB, the printed circuit board in 3D

    Smart Ventilator PCB

    yesitha/Smart-Ventilator

    This project aims to develop a low cost smart ventilator system that requires minimum professional interaction to operate using Atmega32 Microcontroller

    69 parts
  • 2 layersLabnodeCAN, the printed circuit board in 3D

    LabnodeCAN

    das-labor/automatization4.0

    Automatization of our Hackerspace

    57 parts1
  • 2 layers150.5 × 48 mmBattery bus, the printed circuit board in 3D

    Battery bus

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    136 parts915

Questions

How big is the Speaker PCB?

It measures 100 × 100 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Speaker use?

136 parts, built around the ATMEGA32-16AU. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Speaker KiCad files?

From the LOEWE-emergenCITY/freespeaker repository on GitHub, at the commit this page was made from: the board is electric_design/FreeSpeaker/Speaker/Speaker.kicad_pcb and its schematic electric_design/FreeSpeaker/FreeSpeaker.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Speaker design in my own project?

Its repository states no licence, so its author keeps all rights: ask LOEWE-emergenCITY before reusing the design.