

Soundboard
STM8 device that plays mp3 over a DFPlayer at random intervals
- Size
- 43 × 33 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 5
- Nets
- 31
- Pads
- 43
- Tracks, vias
- 34, 0
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 16 Mar 2019
- Updated
- 1 Aug 2019
Overview
Soundboard is an open-source printed circuit board by jadeaffenjaeger, from the jadeaffenjaeger/quotebox repository on GitHub. It is a 2-layer board of 43 × 33 mm with 5 parts on 31 nets, routed with 34 tracks and 0 vias.
It is built around the IRLZ44N. Its parts include 2 ICs, 2 connectors and 1 transistor. It belongs with the STM8 boards of this library.
Main components
1README
README.mdQuotebox
This piece of electronics was made for an installation where speakers at various places would play short bits of sound at random intervals. Since there was no power available, the speakers need to run off 1S LiPo batteries. Since the budget was quite low, only cheap and easy to source components were used.
Components
A DFPlayer mini module is used to play mp3 sound bites from an SD card. Since the Idle Power consumption of the DFPlayer is quite high, even when in Standby mode, an external STM8 microcontroller is used to power up the DFPlayer through a MOSFET when needed and power it down as soon as it has finished playing. The STM8 also keeps track of sleep times and which track on the card to play next. The components used are:
summing up to below 5€ per speaker (without battery)
Energy
750mAh LiPo batteries from HobbyKing were used to power each speaker as I had them laying around from my drone anyway. Both the STM8 and DFPlayer work with 3-5V, so no voltage regulator was needed, keeping the price down. The voltage of the LiPo is not checked by the microcontroller, however, so the circuit will deep-discharge the battery if left unattended for too long. For our use case, the speakers played a sound of ca. 5s every few minutes. The STM8 needs ca. 2mA when in sleep mode (mostly due to the power LED on the breakout board. If lower consumption is required, one should remove the LED). The DFPlayer consumes 50-120mA when playing a file (depending on the content of the file). All in all, the speakers would have been able to work for 2-3 days on a single LiPo.
Firmware
The firmware for the STM8 is in the src folder. The DFPlayer is addressed over UART via the dfplayer.c module, the awu.c sends the microcontroller to sleep and the external MOSFET that powers the DFPlayer on and off is switched in the gpio.c file, along with the user LED.
The firmware can be built with SDCC using make all and uploaded to a board with make flash. An STLink (clone) and stm8flash are required for this. If you run into problems uploading to a new board, you might try unlocking it using make unlock
Schematics
I tried started doing a custom PCB for the speakers, but ended up opting for Perf Board eventually. The PCB layout therefore is not up to date and should not be used as is.
Housing
Again, to keep cost low, the speakers were hot-glued into old CD-R spindles to give them some protection and improve the resonance of the speaker
Summary
The speakers at full volume were loud enough to be heard indoors. The ones installed outdoors (in a rather noisy environment) were quite hard understand from a few meters away already, so a bigger speaker and amp would be required for this to work.
Parts
5| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | Battery | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J1 |
| 1 | DFPlayerMini | dfplayer:DFPlayer | U1 |
| 1 | IRLZ44N | Package_TO_SOT_THT:TO-220-3_Vertical | Q1 |
| 1 | STM8SF103 | dfplayer:STM8S103 | U2 |
| 1 | Speaker | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J2 |
Questions
How big is the Soundboard PCB?
It measures 43 × 33 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Soundboard use?
5 parts, built around the IRLZ44N. 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 Soundboard KiCad files?
From the jadeaffenjaeger/quotebox repository on GitHub, at the commit this page was made from: the board is schematics/soundboard/soundboard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Soundboard design in my own project?
Its repository states no licence, so its author keeps all rights: ask jadeaffenjaeger before reusing the design.
Similar boards
- 2 layers304.8 × 170.8 mm

- 2 layers94 × 79 mm

- 2 layers

Morpheus kicad
pscrespo/Morpheus-STM32
A small 3D printer controller board for use with a "blue pill" STM32F1 generic board. Inspired on http://reprap.org/wiki/SinapTec
66 parts80GPL-3.0 - 2 layers100 × 100 mm

- 2 layers157.5 × 97.8 mm

Esp32PrinterController
MitchBradley/Esp32PrinterController
PCB design for 3D printer controller using ESP32 processor
101 parts16MIT - 2 layers99.1 × 99.1 mm

- 2 layers64.8 × 109.2 mm

Dmx ledstrip dimmer-32ch
robinolejnik/dmx-ledstrip-dimmer-32ch
Arduino Mini and TLC5940 based 32 channel 12V PWM dimmer with DMX512 and RDM support.
105 parts14MIT - 2 layers101.6 × 53.3 mm

BatteryAnalyzer MkII
Moragor/BatteryAnalyzer_MkII
Updated Version of the battery analyzer, now with constant current
25 parts12MIT