Boxie – an all the time offline audio participant for my 3 12 months previous
Boxie – an all the time offline audio participant for my 3 12 months previous
2025-04-26

Table of Contents
At the top of July 2024, I launched into a journey to study electronics so I might construct little devices for my son. In my introductory submit I described just a few digital toys he makes use of incessantly, together with the Tonie Box, a tool that performs audiobooks and has a big library of content material. The Tonie Box is nice, till it is not. As outlined in my authentic submit, it has a number of deficiencies. Back then, I did not suppose I’d ever have the ability to construct my very own alternative.
Fast ahead just a few months, and I’ve realized sufficient electronics to construct my son’s personal audio participant. Here’s the preliminary outcome:
It’s been in "prod" since January 2025. It’s his every day driver, be it on the breakfast desk or when going for stroll in his buggy. Yes, the amount management is backwards. Easy to repair in software program.
What I realized these previous months
It turned out to be simpler than I believed. I needed to choose up these expertise:
- Learn how you can solder every kind of elements, together with floor mounted elements
- Abandon Arduino and embrace the ESP32 line of microcontrollers, that are one million occasions extra versatile, highly effective and cheaper.
- Learn how you can learn built-in circuit (IC) datasheets, and how you can mix a number of ICs with out issues exploding
- Learn how you can use Electronic Design Automation software program like KiCad or in my case EasyEDA Pro, to create my very own PCB designs
- Learn how you can use CAD software program to design enclosures I can print with my 3D printer. Coming from recreation growth, I had earlier publicity to 3D modelling software program, which helps loads. I ended up utilizing Fusion 360 for this, which has a free tier.
I additionally had to purchase myself some instruments. Here’s my battle station.

The checklist of all my instruments (with buy hyperlinks):
- ERSA RDS80 soldering station. One of the higher-priced newbie soldering stations, however it’s a workhorse. I exploit the 832KDLF 2.2mm chisel tip nearly solely. Also get the dry cleaner steel wool. It’s vastly superior to the included sponge for cleansing the soldering iron tip.
- armack typ32-3 0.5mm solder wire, which works for just about something, together with hand soldering SMD elements. I exploit 350C° on the soldering station. Lead-free.
- Yihua 85D sizzling air soldering stations, an affordable and efficient sizzling air "gun" for reflowing or desoldering elements.
- Miniware MHP50 sizzling plate, a wonderful little factor for soldering SMD elements. Since most of my PCB designs are fairly small, I now principally solder with this. More on that later.
- Sn42 Bi58 soldering paste used together with the new plate to solder SMD elements. The paste is often utilized through a stencil (EEVblog Tutorial). For some elements, or if I forgot to order a stencil together with the PCB, I exploit a tooth choose to use the paste to the pads. This is a low temperature paste. I often set the new plate to 165C° with out utilizing a temperature profile, as really useful by the producer. Works for me.
- No clear lead-free Flux. I often haven’t any want for that, as a result of the flux in each the solder and the solder paste often works simply tremendous. There’s in all probability higher flux pastes. It’s positively not "no-clean". Get some isopropanol and a cotton swab to wash the flux residue off the PCB.
- Soldering wick. I exploit this to wash the new plate after soldering if wanted. Never succeeded utilizing these to desolder something. Hot air weapons are higher for that.
- Magentic third hand. Used to carry elements whereas soldering. I barely use them.
- Silicone soldering mat. Essential, except you hate your desk. I particularly selected this one with none compartments. I discovered mats with compartments to be a ache to wash and the compartments typically get in the best way.
- ATTEN ST1101D fume extractor with HEPA filter, which is a will need to have if you wish to preserve your lungs intact. I solder in a small room at house with a giant window. This has a 3 layer HEPA filter. Fume extractors typically really useful to hobbyists are nothing extra like a fan plus an energetic carbon filter, which isn’t efficient in any respect. This consists of the Weller ZeroSmog Shield Pro, which is a particularly costly and ineffective joke.
- Andonstar AD249S-M digital microscope. I’m previous and that is important for SMD soldering for me. I’ve modded this to be simpler to make use of by designing a 3D printed contraption that permits me to mound the microscope to a Rode PSA1 articulated arm which is mounted to my desk. Super straightforward to place the microscope. More on that later.
- Jubor 10x LED magnifying lamp. I barely use this anymore, as a result of my modded microscope is so good. You may get away with simply this piece of apparatus.
- Alientek DP100 digital energy provide. Great for powering take a look at setups on a breadboard or particular person elements. Super compact. You do not essentially want this, however I prefer it.
- Digital multimeter. Again, there are in all probability many higher choices, however this low-cost one works for me. You completely want a multimeter for debugging.
- YJOCK 360W USB C multimeter. Most of my designs could be powered through USB-C. This little gadget permits me to measure the present draw of my designs simply.
- Saleae Logic Pro 8 logic analyzer. You positively will not want this. Before this challenge, I used to be growing my very own embedded programming framework to deal with varied protocols for driving shows, audio and so forth. So this got here in useful a LOT to determine whether or not it was my shoddy code, crappy connections, dangerous wiring, or a nasty element.
- KLEIN TOOLs TI290 thermal imager. Helps me to establish hotspots on the PCB, possible because of dangerous soldering, a nasty element, or a nasty design. Touch is usually sufficient to determine issues out although, so you will not want this both. Probably.
- Side cutters, (ESD) Tweezers, lengthy nostril pliers, digital restore screwdriver set,
- Crimping pliers set. Being in a position to crimp a connector to a wire is important, particularly when you do wiring inside customized enclosures. Many folks will inform you to get some tremendous costly crimping pliers. Maybe they’re higher, however after following some YouTube tutorials and a few observe, I can crimp just about any kind of connector.
- Wire stripper. Same deal as with crimping pliers. I discovered this tremendous easy and low-cost pliers to be rather more efficient than devoted wire strippers. Can additionally act as a wire cutter.
- Silicone electrical wires, 22 AWG. I like these. They are versatile and will not dissipate when you contact them with a soldering iron. For some functions it’s your decision thinner silicone wires. These labored tremendous for all my use instances to this point. The necessary half is the silicone. You wish to have numerous wires at house!
- Shrink tubing. Because you do not need any uncovered wires.
- M1-M1.7 Screws, M2-M3 screws. Just get numerous screws. You can by no means have sufficient of them. Self tapping are fairly good if you wish to screw into elements 3D printed with PLA (pattern measurement: me).
- Breadboards. Essential for prototyping.I exploit the boards from BusBoard. Follow the final hyperlink to study why high quality issues.
- 0805 SMD resistor and capacitor pattern e-book. This has saved me days of ready for the mailman, once I ordered the flawed elements for my PCB designs. The elements aren’t tremendous top quality, however can keep away from tears till your subsequent order arrives.
- Any previous electronics studying set. You need LEDs, buttons, throughhole resistors and capacitors, switches, and so forth. Basically something you may stick right into a breadboard. This helps with prototyping. I obtained just a few totally different kits as I realized and construct up somewhat library of elements that manner.
- A 3D printed. I perceive that BambuLab has gotten a nasty rap over the previous few months. And I do personal a Prusa printer as nicely. However, I’m previous, and time is treasured. And the X1 Carbon "simply works". It’s actually plug and play and produces wonderful outcomes with none want for tinkering. I’m sorry.
Now, my current weblog entries might have given you the concept that I’ll educate you every part wanted to achieve this stage. I’m afraid that is not the case. It would take appreciable assets, which I’d somewhat spend on my household and private initiatives.
However, the above checklist of instruments and expertise is an effective start line when you’re previous the "made an LED blink with an Arduino" stage. Many proficient folks have described (SMD) soldering, PCB design, and 3D modeling in depth, both in books or movies, a lot better than I might. See my earlier posts for suggestions.
Studying current designs can be a incredible method to study, simply as with software program. For instance, all [Adafruit products] are open supply, letting you examine their schematics and PCB designs. Want to design an influence administration circuit? Check out their PowerEnhance 1000 schematics and PCB structure information. Similarly, when creating my ESP32-based boards, I drew inspiration from Unexpected Maker and Waveshare designs. E.g. try the [Waveshare ESP32-S3 Mini schematics]
(https://www.waveshare.com/wiki/ESP32-S3-Tiny).
My last suggestion is to get away from Arduino as quickly as you presumably can. It’s a good way to study, however finally, you may must go one stage deeper. That opens up an entire new world of potentialities. Like porting DOOM to the ESP32-S3 and have it run at 44FPS.
Eventually, you may write your personal Arduino like framework to deal with all of the low stage stuff, like speaking with SPI shows, driving audio or neopixels, and so forth. My entry into that is mcugdx, a easy C-API on prime of ESP-IDF that may already do loads (on ESP32-S3 no less than). You also can discover the above DOOM port within the mcugdx examples. I do not at present give help or documentation. If you realize your manner round ESP-IDF, you must have the ability to determine it out, given the examples and the sdkconfig information discovered within the repository.
In the rest of this submit, I’ll undergo the design means of Boxie, stroll you thru the schematics and PCB structure, present you ways I got here up with the 3D printed enclosure design, and provides an outline of the software program I wrote to make all of it work.
Like a Game Boy, however for audiobooks
I began by fascinated by how I needed the boy to work together with the machine. I’m in love with the Game Boy kind issue, so I needed one thing related in measurement and form. It wanted to be battery powered for portability.
Instead of the Tonie Box’s volume-controlling ears, I needed a easy knob. The Tonie Box requires exhausting smacks to alter chapters or songs, which hardly ever works and infrequently knocks the Tonie determine off. I opted for easy navigation buttons as a substitute.
As for content material storage, the Tonie Box retains audio on an SD card, with Tonie figures appearing as RFID tags that set off particular audio information. This requires web connectivity for downloading information and probably provides the corporate utilization information.
I needed none of that. The machine must be fully offline, with content material delivered "bodily" just like the cassette tapes of my youth. A Game Boy cartridge kind issue was excellent, however with a twist. Unlike a Game Boy the place the cartridge label partially disappears into the slot, I needed the cartridge label to stay absolutely seen.
This resolution got here from watching my boy within the automobile. When we hearken to audiobooks via Android Auto and Spotify, he intently focuses on the duvet artwork displayed on the dashboard. These covers, displaying story characters, are distinct for every e-book. Having the cartridge seen lets him see the art work whereas listening.
Yes, a protruding cartridge is a possible breaking level, however I’ll make the design sturdy sufficient to deal with it.
For reliability, I needed the machine to be as fail-safe as attainable. No energy button wanted, inserting a cartridge turns it on, eradicating it turns it off. It ought to survive inevitable drops, which suggests utilizing sturdy NiMH batteries as a substitute of LiPos.
In abstract, the machine must be:
- Portable and battery powered through a secure battery kind (NiMH)
- Playback content material from cartridges inserted on the prime of the machine, with the cartridge label all the time absolutely seen
- Have a quantity management knob and buttons for navigation
- Turn on when a cartridge is inserted and switch off when the cartridge is eliminated, thereby saving battery
- Never ever connect with the web
The cartridge
Since I exploit an ESP32-S3 because the mind, I opted for micro SD playing cards because the medium to retailer audio information. It’s tremendous straightforward to entry a FAT filesystem on an SD card through ESP-IDF. Just wire up the SD card’s pins to the ESP32-S3’s GPIOs and use the SD card API.
To elicit that Game Boy cartridge really feel and to make inserting and eradicating the cartridge straightforward and durable, I designed a customized PCB that holds and exposes the micro SD card’s pins, and a 3D printed cowl onto which I might stick the label. You can view the top outcome on this educational video for my SO, so she will be able to assemble cartridges as nicely:
The PCB is a trivial 2 layer board. A micro SD card socket holds the cardboard. Each of the pins is uncovered to its corresponding huge pad on the backside of the PCB. Four M2 screw holes let me screw on the 3D printed cowl.

To determine on the scale, I drew a bunch of rectangles on millimeter grid paper and picked the one which seemed proper. Grid paper is your finest pal when getting a really feel for sizes!
I designed the duvet in Fusion 360. I exported the PCB design from EasyEDA as a STEP file and imported it. I created a sketch on the prime of the PCB, projected the PCB define onto it, and extruded it to a depth that seemed good. Finally, I added a cutout for the SD card socket, screw holes, and an indented space for the label. That took 5 minutes.

I despatched off the PCB design to JLCPCB and ordered a batch of 100 PCBs, together with 100 SD card sockets from LCSC. I additionally printed 30 covers on my 3D printer.
I then proceeded handy solder 100 SD card sockets onto 100 PCBs, cursing myself that I did not order a stencil and did not use JLCPCB’s meeting service. It took 2 nights. I used a toothpick to use the solder paste to the pads.

Yeah, I’m dumb. You might need observed the two capacitor pads on the PCB structure above. I ended up not populating these, which saved a little bit of time.
The cartridge slot connector
How do I join the cartridge pads to the ESP32-S3? The Game Boy makes use of a conventional edge connector, with gold plated contacts on the cartridge and a corresponding connector within the slot.
Since I did not know how you can create "chamfered gold fingers" in EasyEDA or get JLCPCB to fabricate such PCBs, I attempted a special method. But not earlier than failing first.
The cartridge design was impressed by Abe’s challenge, which makes use of pogo pins on the cartridge reader to contact the cartridge pads:

This did not work in any respect. Getting the vertical spacing right was extraordinarily tough, and even with first rate spacing, inserting a cartridge was too powerful for a 3 12 months previous. The soldered pogo pins additionally bent simply.
After some fascinated by the "3 12 months previous pleasant" requirement, I got here up with this:


I used battery springs, that are sturdy sufficient to deal with a 3 12 months previous’s enthusiasm. Instead of soldering, I exploit ring terminals crimped onto wires and screwed onto the battery springs within the 3D enclosure.
The result’s straightforward to assemble, straightforward to restore, and (to this point) indestructible. Here’s the primary cartridge insertion take a look at:
The machine’s internals have been nonetheless on a breadboard at this level, as I hadn’t discovered the enclosure design but.
Selecting a DAC, amp and speaker
For mono music playback from an SD card, I wanted a digital to analog converter (DAC) to rework and amplify digital audio from the ESP32-S3 to drive the speaker.
I selected the favored MAX98357A. Adafruit sells a breakout board for it, and there are lots of clones accessible.

The MAX98357A is a mono amplifier delivering as much as 3W right into a 4 Ohm speaker at 5V. Perfect for this challenge. It makes use of the I2S protocol, which my mcugdx framework already supported.
Given the amp specs, I went on a hunt for speaker. I ordered just a few spec compliant audio system from Amazon and found the artwork of speaker enclosure design.
I settled on a Visaton FR 7/4, which gives good bandwidth and higher sound high quality than the Tonie Box speaker.

ESP32-S3 board with energy administration and battery charging
Before beginning this challenge, I really dabbled in designing my very own ESP32-S3 board. There are many nice boards in the marketplace, with these from Waveshare and Unexpected Maker being my favourite. But I needed to discover ways to design such a board, ought to I ever want one thing that is not accessible in the marketplace.
Turns out, I wanted precisely that. None of the prevailing boards help charging NiMH batteries. They typically do not have undervoltage safety built-in, however as a substitute depend on measuring the voltage through GPIO after which switching the ESP32-S3 into deep sleep. I needed to keep away from that. Some additionally do not work nicely with each USB-C and a battery linked concurrently. A requirement for my machine, as I do not wish to unplug the batteries simply to attach a USB-C cable for flashing new software program or debugging.
I went via just a few iterations and finally ended up with this:

The board serves as a basis for all my challenge designs. Its options aren’t particular to this challenge, however somewhat embrace capabilities I’ve discovered helpful throughout all my initiatives:
- Charging 3x AAA NiMH or a single cell 3.7V LiPo battery through USB-C at 0.5A. Battery chemistry is chosen through a dip change. Optional overheating safety through thermistor.
- Shares the ability coming in through USB-C between battery charging and the remainder of the machine
- Exposure of all accessible GPIOs
- Under voltage lock out IC that cuts of energy if the voltage is under 3.08V
- Low drop out voltage regulator 160mA @ 1A, mounted at 3.3V output
- USB-C flashing and debugging (comes free of charge with ESP32-S3 when you wire up the right USB-C pins to the ESP32-S3)
Here’s the total schematic:
Let me stroll you thru the schematic actual fast.
USB-C

Connecting a USB-C cable powers the battery charger and the machine. The 5.1k Ohm resistors on the CC1 and CC2 pins enable the machine to attract 0.5A if linked to a USB 2 supply, or 0.9A if linked to a USB 3 supply. The USB-C connector offers 5V to the system if linked to a USB supply like my laptop computer.
For debugging and flashing, the DN and DP pins are linked to the ESP32-S3 GPIOs 19 and 20. The ESP32-S3 has built-in USB capabilities that deal with all of the communication. When routing these traces on the PCB, it is necessary to take care of equal size for each alerts (referred to as a differential pair) to make sure correct USB sign integrity.
ESP32-S3
There are varied variants of the ESP32-S3. I picked one with a built-in antenna, 8MB of flash, and 8MB of PSRAM. That’s been ample for all my initiatives to this point. And I needn’t wire up these elements myself. Here’s how it’s wired up.

This principally follows the advice within the ESP32-S3 {hardware} design tips. I did not embrace a crystal wanted for correct deep sleep timing, as I by no means want that function.
C1 and C3 are decoupling capacitors. R3 is a pull-up on the allow pin, that will get "overwritten" if the reset button is pressed, which grounds the pin and resets the machine. C4 is a debounce capacitor for the reset button. An identical button setup is discovered for the boot button on the left facet. Pretty easy!
The GPIOs are uncovered on the fringe of the PCB.
Battery charging through BQ25171-Q1
I spent a very long time looking for an IC that may cost each NiMH and LiPo batteries. I ultimately settled for the BQ25171-Q1, by Texas Instruments.
Here’s the a part of the schematic that offers with battery charging:

CN2 on the appropriate facet is a 2 pin 2mm PH connector, to which the battery is linked. VBAT is the battery voltage. On the left facet of this block you discover 5V_USB, which is the 5V from the USB-C connector. If USB-C is just not linked, then VBAT powers the system, whereas the charger IC does principally nothing. If USB-C is linked, then 5V_USB powers the charger IC, which fees the battery. The battery is lower off from the system in that case, which we’ll see within the subsequent part.
The the rest of the schematic consists of elements to configure the charger IC.
R7 linked to ISET units the cost present to roughly 0.5A. R8 pulls the TS pin all the way down to floor, disabling battery temperature monitoring. The PCB structure has provisions to wire up an NTC thermistor as a substitute of soldering the R8 pull-down resistor.
The CHM_TMR pin is linked to a dip change, which selects considered one of two resistors. R16 alerts to the IC that we wish to cost a single-cell LiPo battery at maximally 4.2V, with a 5 hour security timer. The IC will really terminate charging earlier and comply with the standard LiPo charging curve. R15 alerts to the IC that we wish to cost 3 NiMH batteries in collection, with a max charging voltage of 4.2V and a 4 hour security timer. This configuration is not going to disable charging when the voltage reaches 4.2V, however as a substitute preserve charging till the security timer is hit (or the non-obligatory thermistor alerts that the battery is simply too sizzling).
The VSET pin is linked to a 18k Ohm resistor, which units the maximal charging voltage to 4.2V for each battery chemistries.
Finally, STAT1 and STAT2 are linked to LEDs, that are linked to VBAT through 620 Ohm resistors. STAT1 and STAT2 are open-drain outputs; the IC will pull them low when the LEDs ought to gentle up.
Power administration
The system can both be powered by USB-C or by the battery. The USB-C voltage is 5V, whereas the battery voltage can vary anyplace from 3-4.2V. The ESP32-S3 requires 3.3V, so we have to regulate the ability supply voltage down. We additionally wish to stop the battery from discharging under 3.08V, so we want a voltage monitor that may energy down the ESP32-S3. Here’s how that is finished:

On the left facet of the schematic, you see 5V_USB and VBAT. VBAT goes via a P-channel transistor. If USB-C is linked, the gate is pulled excessive, which can stop energy from the battery from reaching the system. If USB-C is just not linked, the gate is pulled low, that means that energy from VBAT can attain the rest of the system. This is somewhat trick I noticed within the Unexpected Marker’s ESP32-S3 Feather board. It’s actually easy energy path administration!
For further security, a schottky diode is positioned after 5V_USB, simply in case energy from VBAT or some capacitor manages to sneak via for some purpose.
C9 is a decoupling capacitor urged by the TPS3839 datasheet. That is an extremely low energy provide voltage monitor. If the voltage drops under 3.08V, it pulls its RESET pin low. That reset pin is linked to the EN pin of the low drop out voltage regulator to its proper. If it’s low, the voltage regulator is disabled, reducing off energy to the system, thereby not draining the battery additional. This is probably going not strictly vital, because the ESP32-S3 and different linked ICs will brown out nicely earlier than the battery drains under 3.08V. But it is a good security web.
The low drop out voltage regulator is a LD56100. It can present 1A of present with a dropout voltage of solely 120mV. The audio participant attracts not more than 60mA even with the speaker at max quantity. That leads to a fair decrease dropout voltage, which suggests we will make good use of a lot of the battery capability.
The last output of this block is a clear 3.3V voltage, which powers the ESP32-S3 and the audio amp and speaker.
PCB Layout
After digging via numerous datasheets and wiring every part up within the schematic, I used to be lastly in a position to begin laying out the PCB. It’s like superior Tetris. I actually take pleasure in it (though I’m not good at it). Here’s how I translated the schematic right into a printable structure:


It’s a 4 layer board, with two floor planes within the center. The prime hosts the circuits described above, whereas the underside exposes a lot of the GPIOs. The board is breadboard pleasant and likewise has screw holes for mounting in an enclosure. The energy traces are thick sufficient to really deal with as much as 1A of present, ought to the necessity come up. Though that sort of energy couldn’t be delivered through USB-C.
If you squint, you may see the differential pair for the USB alerts. There are in all probability a gazillion issues that may very well be finished higher, however it works and would not blow up, which is nice sufficient for me. I’m fairly certain this would not go any sort of certification essential to promote it as a part of a industrial digital machine.
Soldering the board
I ordered a stencil together with the PCBs, which makes making use of solder paste a lot simpler in comparison with the toothpick methodology I used for the cartridge PCBs.

Once the paste is utilized, I begin by dropping capacitors, resistors, tactile switches and different elements with huge pads onto the board. I then activate my heating plate and let it soften the solder paste.

With the "straightforward" elements out of the best way, I examine the solder on the pads for trickier elements, just like the ESP32-S3, the 1.2mm by 1.6mm LDO voltage regulator, and the USB-C connector. Chances are the solder paste has melted right into a blob or shaped bridges between pads. This tends to occur when an excessive amount of paste is utilized, particularly on extraordinarily tiny sub-millimeter pads. I exploit solder wick or my trusty toothpick to repair any bridges.
Only once I deem the solder on the pads to be good do I drop the "tough" elements onto the board and hope for the perfect.
Once every part is soldered, I flash a easy LED blinking sketch to verify the board is working. If it isn’t, I exploit my multimeter to painstakingly verify for anticipated voltages throughout the board. I additionally use my thermal digital camera to verify for overheating elements.
Buttons, knobs and enclosure
I designed the enclosure fairly early on within the course of, based mostly on the speaker and cartridge dimensions, and the cartridge slot mechanism. The enclosure consists of a prime and backside half, that are held collectively by M3 screws.
The prime has cutouts for the buttons, quantity knob, speaker. It additionally has a mounting bracket for the battery springs which serves as connectors to the cartridge pads. A separate mesh cowl is mounted on prime the speaker gap to guard the speaker from my boy’s harmful tendencies.

The buttons and knob are easy shapes, with their bottoms extruded, so they do not fall out of the enclosure via the lower outs. In case of the buttons, they sit atop easy tactile switches. The knob has a middle cutout so it may be slid onto the potentiometer beneath it.


Turning the highest the wrong way up reveals two mounting buildings to which a PCB could be screwed beneath the button cutouts. More on that PCB within the subsequent part. You also can see spacers and screw holes for the battery springs, which make up the cartridge slot mechanism. There’s additionally a cutout on the facet for the USB-C connector for the ESP32-S3 board.

The backside is fairly unremarkable. It contains a bay for the three AAA NiMH batteries, just a few spacers to make positioning the highest on the underside simpler, and a bizarre little contraption consisting of what seems like a rod and two screw holes. Here’s what that is for.
When a cartridge is inserted, the rod is pushed down, which pushes a change that connects the battery to the ESP32-S3 board. It’s a foolish trying mechanism, however it has just a few advantages. In the primary iteration, I positioned the change subsequent to the cartridge slot. However, getting the place proper was tough. Also, routing the ability wire across the magnet of the speaker led to attention-grabbing points I used to be unable to debug or repair.
The rod resolution simply works.
The mom board
As you may see within the final video, the innards of the machine have been nonetheless dwelling on a breadboard at this level. The ESP32-S3 board, the amp, and the buttons and knob wanted to be mounted contained in the enclosure by some means. I had already designed mounting brackets on the highest half of the enclosure, bearing in mind the scale of the tactile switches, the potentiometer, and their 3D printed covers. This allowed me to measure the remaining house within the enclosure inside Fusion 360, based mostly on which I sized a provider PCB or motherboard. Here’s the schematic:
To the left is the MAX98357A audio amplifier breakout board. The ESP32-S3 board is on the middle. At the underside are the tactile switches and the potentiometer. And to the appropriate are the connections to the battery springs of the cartridge slot. Everything is wired to applicable pins on the ESP32-S3 board. The SD card traces additionally function pull-ups as vital.


It’s a 2-layer board. The prime layer homes the tactile switches and the potentiometer. The backside layer has 2.54mm headers into which I can plug the MAX98357A breakout board and the ESP32-S3 board. In the highest proper are pads for the SD card connections that are wired to the battery springs of the cartridge slot.
Here’s the motherboard with tactile switches, potentiometer, and headers soldered to it:

And right here it’s with the MAX98357A breakout board and the ESP32-S3 board plugged in:

The motherboard is screwed to the highest half of the enclosure and wired up with the cartridge slot mechanism.

Then I plug within the ESP32-S3 board and the MAX98357A breakout board and wire up the speaker to the amp, and the battery to the ESP32-S3 board.

(Note that the ESP32-S3 board is an earlier iteration however the precept is identical.)
The trick to getting this all lined up is importing 3D fashions of all elements into Fusion 360.

EasyEDA permits exporting a 3D mannequin of the PCB, together with the elements (if they’ve 3D fashions). This permits me to experiment with element placement and orientation, check out totally different PCB layouts, and so forth. That saves me huge quantities of time and frustration.
Software
The software program is simple and based mostly on my mcugdx framework. The total supply code is a single 390 LOC file that makes use of the "straightforward" mcugdx API to:
- Check if an SD card is current
- List the MP3 information on the SD card and type them by title
- Start playback of the primary file on the SD card
- React to button presses and the amount knob
You can dig into the mcugdx sources to see how you can implement all this beneath the hood on prime of ESP-IDF.
Mario, how do I construct this myself?
I’m glad you requested. It’s positively not for the faint of coronary heart. Assuming you could have every part wanted to solder SMD elements, wires, M1-M3 screws, and primary instruments like pliers (see really useful gadgets above), this is what you want particularly for this challenge:
- 3D mannequin of the enclosure Ready to print. Import into your slicer, allow helps (for USB-C cutout), and print with PLA. Should work with any standard 3D printer. For modifications, use this Fusion 360 file.
- 3D mannequin of the cartridge cowl Print a number of copies by duplicating in your slicer. Can use 10% infill or decrease. The cowl can be within the Fusion 360 enclosure file above.
- Cartridge PCB Gerber information 2-layer board design for producers like JLCPCB, PCBWay, or Aisler. For modifications, import this EasyEDA Pro challenge into EasyEDA or KiCad 9+. Optional: Have JLCPCB assemble the board utilizing the BOM under as a substitute of hand-soldering.
- Cartridge BOM. All elements wanted to assemble the cartridge. Features LCSC half numbers (the place I purchase them) in addition to producer title and half quantity if you wish to organize them some place else. The BOM consists of 2 decoupling caps, which based on my actual world testing could be omitted.
- Motherboard PCB Gerber information. Another 2 layer board able to be ship to a PCB producer. Here’s the EasyEDA Pro challenge if you wish to modify it.
- Motherboard BOM. All the elements it’s essential to assemble the motherboard, with LSCS and producer information.
- ESP32-S3 board Gerber information and corresponding EasyEDA Pro challenge. This is a 4 layer board, so ensure your PCB producer can do this.
- ESP32-S3 board BOM. All the elements it’s essential to assemble the motherboard, with LSCS and producer information.
- Micro Switch. This is used along with the 3D printed rod to attach the battery to the ESP32-S3 board. See the movies and pictures above. You must lower off the little hook on the finish of the steel half to make it match.
- Keystone Electronics 5231 battery springs. These are the springs used to attach the cartridge pads to the and in the end the SD card contained in the cartridge with the ESP32-S3. The 3D enclosure is particularly designed to suit these springs, together with spacers to allow them to’t shift and contact one another.
- TE Connectivity 34140 ring terminals. These are used to attach the battery spring with wires that result in the motherboard. They are crimped to wires after which screwed onto the highest a part of the enclosure along with the battery springs. I then bend them downwards. See the movies and pictures above.
- Right angle male 2.54mm pin headers. These are soldered to the motherboard within the space marked with SD. The wires coming from the ring terminals are then crimped with feminine Dupont housings and slid onto the pin headers.
- sourcing map AAA battery spring plates (8mmx9mm). These are inserted into the battery compartment within the backside a part of the enclosure to carry the AAA batteries in place and join them up.
- sourcing map AAA battery unfavourable to constructive spring plates (21mmx9mm). Same as above, however for the opposite compartments.
- MAX98357A audio amplifier breakout board. I prefer to help Adafruit, so if it is inside your funds, purchase from them. Otherwise, yow will discover a bunch of knock offs on Amazon or AliExpress. Just ensure the pin out is identical, in any other case you may have quite a lot of enjoyable debugging.
- 2.54mm brief feminine headers. These are soldered to the motherboard, so I can plug and unplug the MAX98357A breakout board and ESP32-S3 board. I could not supply them anyplace apart from Adafruit, ymmv.
- Visaton FR 7 4 Ohm speaker. Hopefully selfexplanatory. It’s wires are screwed into the terminals on the MAX98357A breakout board. Again, see the movies and pictures above.
- 3 AAA rechargable NiMH batteries
- Intenso Micro SDHC reminiscence card Class 44GB. I’ve solely examined these SD playing cards. Success charge with different SD playing cards might range. I didn’t have any luck with Class 10 playing cards. Might be an ESP-IDF subject. Didn’t hassle to analyze.
- Label paper. Print audiobook covers on it, stick them to the cartridge cowl entrance.
Assembly steps for the participant:
- Print enclosure elements
- Solder the motherboard and ESP32-S3 board
- Mount speaker and canopy to prime enclosure
- Mount motherboard to prime enclosure
- Install ESP32-S3 and MAX98357A boards
- Prepare 8 silicon wires (22AWG, 20cm every):
- Crimp ring terminals on one finish
- Attach terminals and is derived to enclosure
- Route wires round speaker
- Trim to size and add Dupont housings for motherboard connections
- Cut the hook of the micro change
- Screw it into the underside a part of the enclosure, proper to the battery compartment
- Connect the underside battery plate (constructive terminal) to the center pin of the micro change by soldering a brief silicon wire (22AWG) between them
- Solder one other 10cm silicon wire (22AWG) to the appropriate pin of the micro change
- Solder one other 10cm silicon wire (22AWG) to the highest battery plate (unfavourable terminal)
- Crimp a JST-PH 2.0mm feminine terminal to every of the 10cm silicon wires
- Slide the crimped wire ends right into a JST-PH 2.0mm housing. Make certain the unfavourable and constructive terminals correspond to the unfavourable and constructive pins on the JST-PH 2.0mm feminine socket on the ESP32-S3 board! The board has a – and + indicators on the pads of the socket! Don’t fuck this up!
- Connect the JST-PH connector to the corresponding JST-PH 2.0mm feminine socket on the ESP32-S3 board
- Insert the batteries into the battery compartment
- Insert the rod into the underside a part of the enclosure
- Connect the machine through USB-C to your pc. Once it’s acknowledged as a UART/JTAG machine, press the boot button the ESP32-S3 board
- Screw the highest and backside a part of the enclosure collectively
You can now flash the boxie firmware to the ESP32-S3 board. Clone the repo, then use the ESP-IDF CLI to compile and flash the firmware. Tested with ESP-IDF v5.3.2. The sdkconfig.defaults file is ready up for the customized ESP32-S3 board.
Assembly steps for the cartridge:
- Print cartridge cowl
- Prepare audiobook/music cowl (59mm x 62mm) on label paper
- Solder SD card socket to PCB
- Load audio information onto SD card (MP3 solely, playback follows filename order)
- Insert SD card and fix cowl
Future work
I want so as to add a headphone jack to the machine. The jack will need to have a pin that alerts the ESP32-S3 when headphones are linked. When linked, I’ll must disable the MAX98357A amplifier by pulling its SD pin low. This requires a reworked motherboard and a few voltage administration for the SD pin when no headphones are current. The jack could be positioned reverse the USB-C port, requiring a minor enclosure modification.
I additionally want an IC to transform the I2S sign (at present despatched to the MAX98357A) to a headphone output. I have never researched choices but. The motherboard will want extra routing to ship the I2S sign from the ESP32-S3 to each the MAX98357A and this new IC. Suggestions welcome!
Bonus content material: USB cartridge reader
I designed a USB cartridge reader for comfort. Instead of unscrewing a cartridge’s cowl to entry the SD card, the reader lets me modify information by merely plugging the cartridge into my laptop computer through USB, the place it seems as a mass storage machine.

Here’s the schematic:

It’s primarily a wrapper round a Genesys Logic GL823K IC, a USB 2.0 SD/MSPRO Card reader controller.
I hardly ever use it since I usually insert SD playing cards immediately into my laptop computer earlier than assembling cartridges. Still, it was a enjoyable facet challenge.
Bonus content material: modding the Andonstar AD249S-M digital microscope
The microscope comes like this initially:

I most popular mounting it on a Rode PSA1 articulated arm connected to my desk. This provides me almost limitless motion throughout my work space.
The microscope stand features a management PCB for the LED lights.

I disassembled it and eliminated the management PCB and LED gentle arms.

I then designed and 3D printed a mount that attaches to the PSA1 arm, homes the management PCB, and accommodates the LED gentle arms.

Note: The last model makes use of a special fastening mechanism with a screw and wing nut, however this demonstrates the idea.
Here’s the 3MF file for the mount, prepared for 3D printing. I used PLA with BambuLab slicer defaults.
This web page respects your privateness by not utilizing cookies or related applied sciences and by not gathering any personally identifiable data.
HI-FI News
through Hacker News https://ift.tt/XujVx7U
April 28, 2025 at 02:19AM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








