🌈 ESP32-S3 Rainbow: ZX Spectrum Emulator Board! Get it on Crowd Supply →
View All Posts
read
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi

This is a fun little battery-powered train set


Christmas Tree Tain

You can buy your own one here.

But out of the box it has two “features”:

  • It’s unbelievably loud (the kind of loud you don’t want in your living room for more than 30 seconds)
  • It eats four AA batteries living in the coal car

You can listen to the noise in all its glory at the start of this video:

So this was an excuse for a bit of train surgery: make it rechargeable, and give it a proper volume control.

What we’re starting with

The power pack lives in the coal car and holds 4×AA. Before changing anything, I wanted to know what voltage the train actually expects.

With the existing batteries already a bit tired, the output measured about 5.1 V. With fresh alkalines you’d expect something closer to ~6 V.

Battery Voltage

Quick teardown (and where to tap in)

Opening the locomotive was pretty straightforward - we have the legendary visible screws.

Inside the engine is a small PCB with the usual blob IC, plus a whole bunch of wires:

  • Two wires to the speaker
  • Wires to the power switch
  • Two wires to the motor
  • Two wires to the front LED

Lots of wires

Parts used

This is very much a “what’s in the parts drawer?” mod. The final setup was:

Making it rechargeable

The plan was simple:

  1. Put the 18650 cell in the coal car
  2. Boost it up to roughly “4×AA voltage”
  3. Feed the train through the existing power connector

Fitting it was the main challenge. The coal car has an internal red plastic compartment that needed to be
 re-engineered
 to make room for the cell.

It fits!

Once there was space, the wiring was straightforward:

  • Battery → charge/protect/boost module input
  • Module output adjusted to around ~5.5 V
  • Module output → connected to the plug coming out of the coal cart

I set the output to around 5.5 V — nicely in the middle between “fresh AAs” and “nearly flat AAs”.

One surprisingly nice thing is they did include a PTC fuse inline with the batteries - a nice soft start/safety feature.

Before plugging anything in, I did a quick polarity sanity check because toy wiring colour conventions are often a work of fiction. In this case the connector was centre positive.

It fits!

With the speaker temporarily disconnected (to preserve my hearing), I plugged it in and
 the wheels on the train went round and round. Success!

Adding a volume knob

Next problem: the speaker. The easy way to make something quieter is to disconnect it, but a volume control is much nicer.

The simplest approach here is to put a potentiometer in series with one speaker lead, using it as a variable resistor. With the pot turned up you get full volume; turned down it becomes civilised.

This worked immediately on the bench: at minimum it’s almost silent (you mainly hear the motor), and at maximum it’s back to the original “wow that’s a lot”.

The mechanical hack (aka: “please don’t judge my glue”)

An internal pot is only useful if you can actually reach it. I wanted the knob accessible from the outside.

So I:

  • Chopped the top off an existing plastic piece to use as a knob cap
  • Stuck the top I chopped off onto the top of the potentiometer
  • Glued it all together

Hot glue saves the day

In the end a combination of a lot of hot glue along with superglue and patience made it all work.

I did spend a lot of time with my fingers stuck together


In the end it’s slightly wonky, but it works, it’s solid, and a bit of gold paint hides the terrible workmanship.

Result (and one remaining annoyance)

The end result is exactly what I wanted:

  • Rechargeable power (no more burning through AAs)
  • Adjustable volume (from “barely there” to “festival headliner”)

The only thing I didn’t solve is the drivetrain noise: it uses plastic gears and the mechanical clatter is now the loudest thing at low volume.

Watch the full build

If you want to see the teardown, the battery conversion, and the volume knob bodging in real time, the full video is here:

Related Posts

Red Arcade Thing Repair - I resurrected a dead AliExpress arcade handheld by swapping the blown 3.3V regulator (I now own 99 spares), adding a TP4056 charger with Schottky diode isolation, and nursing a 0V LiPo back to life. A bit of hot-plate rework, tidier wiring, and—flip the switch—boom: it boots! It’s not pretty, but it’s alive again.
Brain Surgery - I cracked open a cheap Halloween toy, found the super-simple LED + LR41 setup with the arm-as-switch trick, and swapped the ‘empty head’ for my own CH32V003 + buzzer PCB. Now it screams as well as shines—powered by a small lithium cell for extra volume because if you’re going to be annoying, do it properly. New schematic, new brains, same spooky vibes.
More fun and games with high voltage - Hey everyone! I know it's been a while since the last video, but things have been crazy busy with shipping off the ESP32 Rainbows. Lately, I've been diving into the world of high voltage again. My last endeavor with a high voltage board led to some gnarly waveforms and flickering LEDs, so I tested with beefy resistors but wasn't thrilled with the results. Fortunately, I've found some nixie tube driver boards that work wonders with LEDs, providing smooth output with little ripple. Still, playing with the old boards has its thrill—hello, 787 volts and some wild sparks! Stay tuned for more high voltage adventures!
Danger danger high voltage - In this blog post, I explore my experiments with high-voltage circuits, trying to light up LED filaments salvaged from broken light bulbs. Despite some explosive mishaps with capacitors and MOSFETs, I decided to try a proper DC-DC converter. Unfortunately, the one I got turned out to be faulty, highlighting some rough soldering and component failures. I've ordered replacements and hope to successfully light the filaments soon. Follow along on my troubleshooting journey with plenty of learning curves!
10 Cent Music Machine - I built a tiny coin‑cell music board around the $0.10 WCH CH32V003J4M6 (8‑pin, 48MHz RISC‑V, 16K flash/2K RAM). The PCB is just 16.3×11.7mm with a piezo buzzer and transistor, and in standby it sips 7–8”A. I did hit a snag: playback caused 130mA peaks that browned out a CR2032. A LiPo fixed it, but I really wanted coin‑cell, so I upped the buzzer’s base resistor to 10k, dropping peaks to 56mA and average to ~7mA—now it runs happily (and loudly) from a coin cell. Pro tip: if standby bricks programming, wlink can erase via power-off mode. I’m bit‑banging audio, published a simple MIDI→buzzer tool with a 1‑bit SFX generator, and all the code’s on GitHub.

Related Videos

Train Surgery - I take a fun but unbelievably loud battery train and give it some train surgery: measure the 4xAA pack (~6 V), gut the coal car, shoehorn in an 18650 with a charge/protect/boost board set to about 5.5 V, wire it up, sanity-check polarity, and get the wheels turning. Then I tame the racket by putting a potentiometer inline with the speaker, chop some plastic so the knob pokes out, and hot-glue it all in place. Result: rechargeable power, adjustable volume, same charm—minus the living-room headache. (Quick shoutout to PCBWay for the boards.)
10Âą MCU Brain Surgery - CH32V003 - I crack open a punchy little toy, show how the original just squishes two contacts to light the eye LEDs off a pair of LR41s, then perform some brain surgery to cram in a tiny lithium cell and my own board that triggers lights—and an incredibly annoying tune—on each punch. It sips about 7 ”A in deep sleep and wakes via a yellow trigger wire, but the soldering was fiddly and full of swearing. Tape it up, cram it back in the head, and yes, it works a treat
 maybe too well, because the beeping is driving me mad.
Dodgy Circuit Defused - fixing the silly red thing. - I’ve got all the bits to bring this little arcade game back to life: swapped the dead 3.3V regulator (had to buy 100
 oops), tried and successfully revived the totally flat Li‑ion with a trusty charger board, and I’m adding a couple of Schottky diodes to handle USB vs battery power. Used the mini hot plate to reflow the regulator (not my finest soldering and, of course, the microscope didn’t record), confirmed 5V in and 3.3V out, and the screen actually boots. Next up: stick the charger board down with Kapton, wire B+/B− to the test points, cut the right track, and tidy the power routing.
ESP32 Touch Spectrum - Battery and Expansion port test. - It's time for a bit more testing of the boards from PCB Way, and I must say, these boards have come out amazingly well. Check out PCB Way – there's a link in the description! Today, we're focusing on testing the battery charging and the expansion port. The battery charging circuit seems successful, and even when playing music, everything is running efficiently. I've looked into some optimizations for the speaker side, such as adding more decoupling capacitors. We also tested the expansion port, successfully running an emulator on the Pico that drives the display via the expansion port. Excitingly, I wired up an HDMI breakout board and now we have a big screen! This is still experimental, but it's looking promising. Next steps include more focus on EMI and EMC as we prepare for production. Stay tuned for more updates!
10Âą MCU Music Hack - CH32V003 - I spun some tiny WCH boards at PCBWay around an 8‑pin MCU (48 MHz, 16k flash, 2k RAM) to beep tunes off a coin cell. I tried hand-soldering, then used my paste-dispensing PCB printer—expired paste still worked great. Standby sips under 8 ”A, but it locks out programming; a WLink flash wipe rescued me. Wake draws ~3.3 mA, and audio peaks hit ~130 mA (~13–14 mA average), which browned out the coin cell. A tiny 80 mAh LiPo with a TP4056 (modded to ~100 mA) proved the design, then swapping the buzzer’s base resistor from 1k to 10k tamed it to ~56 mA peak and just over 7 mA average—coin cell friendly and still loud. I’m bit-banging audio for now (PWM/timers later). I also made a quick MIDI-to-note tool and a one-bit SFX generator. These boards are heading into my next project—stay tuned.
HELP SUPPORT MY WORK: If you're feeling flush then please stop by Patreon Or you can make a one off donation via ko-fi
Want to keep up to date with the latest posts and videos? Subscribe to the newsletter
Blog Logo

Chris Greening


Published

> Image

atomic14

A collection of slightly mad projects, instructive/educational videos, and generally interesting stuff. Building projects around the Arduino and ESP32 platforms - we'll be exploring AI, Computer Vision, Audio, 3D Printing - it may get a bit eclectic...

View All Posts