Skip to the content
4 layers90 × 66 mmAudio, the printed circuit board in 3D

The project is a wireless speaker system that can play music from a Bluetooth or WiFi source. The system consists of four main parts with subcomponents:

Size
90 × 66 mm
Copper layers
4
Thickness
1.6 mm
Parts
162
Nets
127
Pads
541
Tracks, vias
1,038, 1,066
Pours
19
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
21 Mar 2024
Updated
6 May 2024

Overview

Audio is an open-source printed circuit board by AndreasNielsen4000, from the AndreasNielsen4000/Group-7-IoT-Project repository on GitHub. It is a 4-layer board of 90 × 66 mm with 162 parts on 127 nets, routed with 1,038 tracks and 1,066 vias.

It is built around the ESP32-WROOM-32E-N16, NRF24L01P-R and CP2102N-A02-GQFN28, with the TPA3128D2DAPR, PCM5101AQPWRQ1 and CL31B106KBHNNNE among its other parts. Its parts include 76 capacitors, 39 resistors, 15 diodes, 7 ICs and 7 connectors. It belongs with the audio and music and radio and wireless boards and the ESP32 boards of this library.

Main components

12

README

README.md

Group 7 IoT Project: Wireless Stereo Speaker System

This one of the two github pages for Group 7s project for DTU course 34346 Networking technologies and application development for the Internet of Things (IoT).

Group Members

  • Andreas Nielsen: s203833
  • Alexander Nordentoft: s176361
  • Rasmus Kurdahl-Martinsen: s194337
  • Sergio Piqueras Moreno: s232104
  • Hugo Velasco Bombin: s233845
  • Anton Per Rønnedal: s203821

Project Description

The project is a wireless speaker system that can play music from a Bluetooth or WiFi source. The system consists of four main parts with subcomponents:

  1. A speaker with an ESP32-WROOM-32 microcontroller.
    1. Two custom PCBs
      1. A power board with USB-C PD and a battery management system.
      2. An audio board with a class D amplifier, a DAC, ESP32-WROOM-32, and an nRF24L01 module.
      3. Rotary encoder for volume control and switching modes.
      4. OLED display for showing the current mode, metadata, battery level and volume.
  2. ESP32 IoT Bridge
    1. An ESP32-WROOM-32 microcontroller.
    2. nRF24L01 module.
  3. Azure Backend
    1. WebAPI for managing the speaker system.
    2. Simple front end for controlling the speaker system.
  4. Thunkable App
    1. An app for controlling the speaker system using the Azure backend.

Description of the Speaker System

Code in BT_I2S_URL_OLED

The speaker system consists of a speaker with an ESP32-WROOM-32 microcontroller. The speaker is powered by a custom power board with USB-C PD and a battery management system. The speaker can be powered by three 18650 batteries or by USB-C PD. The battery can be charged using USB-C PD.

The audio is played by a custom audio board with a class D amplifier.

The speaker can play music from a Bluetooth or WiFi source. The speaker can be controlled using the Thunkable app, the Azure backend or by using the rotary encoder and OLED display on the speaker.

When powering on the speaker, a byte will be read form the EEPROM to determine the mode of the speaker. The speaker can be in one of the following modes besides being powered off: WiFi, Bluetooth, Standby or Charge

When powered on, a short press on the rotary encoder will switch betweent the current active mode to the valid passive mode, e.g. if the speaker is in WiFi mode and charging, a short press will switch to Charge mode. A short press again will switch back to WiFi mode. If the device is not charging, the speaker will go into Standby mode instead. From Standby mode, a long press (10 seconds) will turn off the speaker.

In all modes except powered off, the speaker will show the battery level on the OLED display as well as the current mode. It will have an active nRF network to the IoT Bridge and will be able to receive and transmit payloads from the nRF network.

Once a second the speaker checks for any changes in local device parameters and if they are different from the last time the speaker will send a payload to the IoT Bridge with the new parameters. Should the speaker receive a payload from the IoT Bridge, it will parse the payload and act accordingly.

When in WiFi mode, the speaker will start by playing Radio BOB! bby default. The speaker will show the current song and Internet Radio station on the OLED display.

When in Bluetooth mode, the speaker will connect to the last connected Bluetooth device and that device will be able to play music on the speaker. The speaker will show the current song on the OLED display. When connected to a compatible device, the speaker will show the current song on the OLED display and turning the volume down to 0 sends a pause command to the device. Turning the volume up will send a play command to the device.

When in Standby mode, the speaker will not play music, but the ESP32 will still be running with the OLED display and the nRF network active.

When in Charge mode, the speaker will charge the battery and show the battery level on the OLED display.

Description of the IoT Bridge

Code in NRF_COM_HUB

The IoT Bridge consists of an ESP32-WROOM-32 microcontroller and an nRF24L01 module. The IoT Bridge is connected to the Azure backend using WiFi. The IoT Bridge sends a request to the Azure backend 5 second to check for any changes in the data. If the data has changed, the IoT Bridge sends the new data to the speaker system. The IoT Bridge receives data from the speaker system and sends it to the Azure backend.

Description of the Azure Backend

Code in https://github.com/AndreasNielsen4000/azureradioapi]https://github.com/AndreasNielsen4000/azureradioapi

The Azure backend consists of a WebAPI for managing the speaker system. The WebAPI is connected to the IoT Bridge using WiFi. The WebAPI receives data from the IoT Bridge and sends data to the IoT Bridge. The WebAPI has a simple front end for controlling the speaker system.

Description of the Thunkable App

The block-code for the app can be found here https://x.thunkable.com/projectPage/65fbfc2f66a304c1d58aabaa

Using Thunkable an app was created for controlling the speaker system using the Azure backend. The app can be used to change the mode of the speaker system, search for new Internet Radio stations, change Internet Radio station and change the volume. The app works by using HTTP GET to search and filter Internet Radio URLs and then HTTP POST to the Azure with updated device parameters.

AppWelcomeScreen AppSearchScreen

Overview of Communication

ComFlow

Video Preview of Functionality

In the following video, the device is powered on from the off-state, going into Bluetooth mode. The rotary encoder is turned up, issuing a play request to the connected iPhone. Then the device is switched over to WiFi mode and playing Radio BOB!.

https://github.com/AndreasNielsen4000/Group-7-IoT-Project/assets/8758884/1d90d405-0698-4473-90d2-c6516d68bdfd

Work Distribution

ResponsibilityMainSecondary
Mobile AppAndreasAlexander
OLEDAlexander------
LEDsSergio------
PCBsAnton------
SolderingAnton------
3D DesignSergioHugo
AzureRasmusAndreas
Back-endAndreasRasmus
Front-endAndreasAlexander
IoT bridgeRasmusAndreas, Alexander
nRFSergioRasmus, Andreas
nRF NetworkAndreasAlexander, Sergio
WiFi (mode)AlexanderAndreas
Bluetooth (mode)AlexanderAndreas
EEPROMAlexander------
Battery ReadingRasmus------
Power DeliveryAnton------
BMSAnton------
Rotary encoderAnton & Alexander------
State MachineAnton------
Code IntegrationAndreas & AlexanderAnton
Final prototype assemblyAlexander, Anton & Sergio------
ReportAll------
PosterAll------

Parts

162
QtyValueFootprintReferences
2510uCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C24, C32, C33, C34, C35, C36, C37, C38, C39, C40, C41, C42, C43, C44, C50 +9
22100nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C4, C5, C6, C12, C15, C17, C21, C22, C49, C61, C62, C68, C69, C70 +6
81uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC9, C18, C19, C20, C23, C25, C26, C31
710kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR15, R16, R17, R19, R20, R27, R31
6100kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR3, R12, R13, R14, R35, R36
62.2nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC14, C16, C27, C64, C65, C76
62kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR10, R21, R22, R26, R28, R32
510uH0_Costum:1274ASL1, L2, L3, L4, L5
51MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1, R2, R6, R11, R30
5PMEG60TDiode_SMD:Nexperia_CFP3_SOD-123WD1, D2, D3, D5, D6
4220nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC45, C46, C47, C48
4470nCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC52, C53, C54, C55
4Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ2, J3, J4, J5
4HoleMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3, H4
3(NC)Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR33, R39, R40
31N4148WDiode_SMD:D_SOD-123D10, D11, D12
322kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR8, R23, R37
212pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC29, C30
22.2uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC10, C11
2200kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR7, R29
2470RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR24, R25
25.1kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR4, R5
2BC817Package_TO_SOT_SMD:SOT-23Q1, Q2
2LED_greenLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD8, D13
2PMEG3020ERDiode_SMD:Nexperia_CFP3_SOD-123WD4, D15
2TerminalTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ6, J7
1100pCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC28
110MResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR38
116 MHzCrystal:Crystal_SMD_2520-4Pin_2.5x2.0mmY1
12450BM14E0002TSnapeda:2450BM14E0003T_JOT-LU5
133nCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC13
14.7uCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC7
147.5kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR9
15.6kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR34
1BOOT0_Costum:EVQPUKSW2
1CP2102N-Axx-xQFN28Package_DFN_QFN:QFN-28-1EP_5x5mm_P0.5mm_EP3.35x3.35mmU2
1EN0_Costum:EVQPUKSW3
1ESP32-WROOM-32ERF_Module:ESP32-WROOM-32DU1
1JumperJumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP1
1LED_amberLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD9
1LED_redLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD14
1LMR51430Package_TO_SOT_SMD:SOT-23-6U7
1MIFARF_Antenna:Texas_SWRA117D_2.4GHz_RightAE1
1PCM5101APackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU3
1RGB LED0_Costum:RGB_LEDD7
1Rotary Encoder0_Costum:EC11_RotaryEncoderSW1
1SW_DIP_x02Button_Switch_SMD:SW_DIP_SPSTx02_Slide_6.7x6.64mm_W8.61mm_P2.54mm_LowProfileSW4
1TPA31280_Costum:DAP32_4P36X4P11_TEXU6
1USB_C_ReceptacleConnector_USB:USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ1
1nRF24L01PPackage_DFN_QFN:QFN-20-1EP_4x4mm_P0.5mm_EP2.5x2.5mmU4

More from AndreasNielsen4000/Group-7-IoT-Project

1
  • 4 layers90 × 66 mmPower, the printed circuit board in 3D

    Power

    AndreasNielsen4000/Group-7-IoT-Project

    The project is a wireless speaker system that can play music from a Bluetooth or WiFi source. The system consists of four main parts with subcomponents:

    119 parts1

Similar boards

  • 4 layers100 × 90 mmOSBAMS Rev2 RC1, the printed circuit board in 3D

    OSBAMS Rev2 RC1

    hle12345/OSBAMS

    Moved here on 2026-10-01. The Rev.1 80x80 mm carrier PCB is a proven-prototype reference (circuits and interfaces that worked), not a design to revise or manufacture.

    149 partsMIT
  • 2 layers40 × 27 mmSensor board voc temp, the printed circuit board in 3D

    Sensor board voc temp

    adamvirovecz/sensor-board-voc-temp

    VOC, Humidity and Temperature Sensor Board

    39 parts1MIT
  • 2 layers47.8 × 61.3 mmOne button, the printed circuit board in 3D

    One button

    JayAgra/button

    57 partsMIT
  • 4 layers73 × 94 mmWirelessBERA, the printed circuit board in 3D

    WirelessBERA

    NathansLab/WirelessBERA

    KiCad 10 project for the Wireless BERA v1.0 board.

    183 parts
  • 4 layers154 × 81 mmSystem candidate, the printed circuit board in 3D

    System candidate

    bernardopg/ps28-modern-amp

    Infinity Primus PS28 amplifier modernization: TPA3255 engineering, validation and safety-gated workflow

    269 parts1
  • 4 layers40 × 40 mmSTMF765 Flight Controller, the printed circuit board in 3D

    STMF765 Flight Controller

    MatthiasGeorgImhof/STMF765_Flight_Controller

    A flight controller inspired by Speedybee F405 v3 but with CAN using F7 MCU. Use flash memory instead of flash card.

    235 parts1
  • 4 layers90.8 × 47 mmPickit, the printed circuit board in 3D

    Pickit

    ananevego/ProjectFreeCad

    Конвертер библиотечных footprint-файлов KiCad .kicadmod в самостоятельные библиотеки FreePCB2 .fpl. Написан на Python 3.10+, внешние зависимости не нужны.

    122 parts

Questions

How big is the Audio PCB?

It measures 90 × 66 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Audio use?

162 parts, built around the ESP32-WROOM-32E-N16, NRF24L01P-R, CP2102N-A02-GQFN28 and TPA3128D2DAPR. 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 Audio KiCad files?

From the AndreasNielsen4000/Group-7-IoT-Project repository on GitHub, at the commit this page was made from: the board is Hardware_V1.0/Audio/Audio.kicad_pcb and its schematic Hardware_V1.0/Audio/Audio.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Audio design in my own project?

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