The talkie box project is an ESP32 based stand alone box that listens for MQTT (Message Queuing Telemetry Transport) protocol sensor messages and plays them audibly. The first version of the project was developed by Pete Wells and was used for theatrical performances. I then reengineered both the hardware and software incorporating built in speakers and many other features together with a range of local sensors to measure soil moisture, relative humidity, temperature, CO2, and Volatile organic compounds (VOC).
The first step was to figure out how the box left by Pete worked -- I had no documentation other than the Arduino code itself.
This is what I figured out by inspection.
Next came a quick breadboard prototype and some testing of the firmware - revealing some very obsolete libraries for the sound that needed equally old versions of Arduino and
Espressive
code that was not supported on my MacBook.
So a good few hours getting everything updated and some of the code rewritten.
Some of the library updates had made significant breaking changes to the API by introducing a new concept fro audio streams.
Next came some design in my favourite solid modelling software - OpenSCAD - and some 3D printing to make boxes for the several soldered protoboard versions. The 3D printed box worked well and I simply tapped threads into slightly undersize holes for the socket head bolts. These were used for performances and proved reliable.
The front panel controls have 3 LEDS to indicate mode (local sensors or MQTT data from remote sensors) a potentiometer knob to specify frequency of sensor samples in local mode and a switch to select the mode. Next came a small production run!
The initial version didn't have the CO2 and VOC top sensors but they were added to the same basic design necessitating only a reprint of the centre box section. The separate little daughter boards for the additional sensors was a little fiddly to install though, but ok as a retrofit.
The following year a new performance idea called for 8 boxes that can listen to different sets of remote sensors. I couldn't face that much hand wiring so out came KiCAD and a PCB was designed
And here were the board layout and 3D renderings from KiCAD
It was about this point when the idea of including a speaker into the TalkyBox rather than using external speaker or headphones.
It turned out that the I2S digital sound card provides 3W of power so 3 3W 4Ohm speaker was incorporated alongside a compartment to hold a compact powerbank.
It was decided not to add an internal battery because then a charge controller and voltage regulator would have been needed - and the PCB was already designed and manufactured.
The powerbank solution allows multiple use and simply connects to the ESP32 WROOM board USB port with a short USBA - USBC cable.
The final assembly want fairly smoothly. Mostly I only did basic short circuit tests on the power rails and then ran software tests on each peripheral. There were a couple of missed solder joints but nothing that cost any real time to find.
And finally here are a couple of short videos. This one is listening to remote MQTT messages arriving so all the boxes receive the message at (approximately) the same time with only network latency separating them.
Here they all boot in sequence. There is a strip of RGB LED's inside each which are used to indicate the level of each sensor reading. Red for temperature, green for CO2 etc. Here they all show white controlled by the front panel potentiometer just to show the internals!
Here local sensor values are being read and since they were all powered up sequentially the effect is ... interesting as they all start chipping in with values!
Here are trailer and full film links to Miranda's 2026 performance up in the hills. And a flyer for the first performance using my redesigned Talkie Boxes.