Wish Tin
A tin with a candle in it and a tiny screen that keeps me company either side of the wish. It shows me something before, a flame while I’m wishing, and something after – and it never, ever shows the wish itself.
How I made it
It was a really easy project to do, but it was super whimsy. Here’s the whole thing start to finish, in the order I actually did it.
-
Choosing the right board
I went with the XIAO ESP32S3 over something like a Raspberry Pi Pico because I don’t need it to have an operating system at all. It’s just running one programme in a loop. All I need it to do is work out when a button has been pressed and show the right messages on the screen.
It was also really useful because the headers were pre-soldered, and I hate soldering headers. It has USB-C built in too, so I can plug a cable straight in to connect it to my phone. Down the line I’d quite like to make it so that it records my wishes through my phone – I’m going to be doing a macro for that at some point as well.
-
The screen and the button
I went with an OLED screen, 0.96 inches, an SSD1306. Super cheap, and it makes things show up really nicely on the screen itself.
I also went with a 12mm tactile button. I have some 6mm ones as well, but they were just a little too small and fiddly for this project, because it also involves real-life flames. I didn’t want to make anything too fiddly to use.
That was all the actual equipment I needed, plus some female-to-female jumper wires to connect things together.
-
Tools and firmware
I needed to install the tools, and then flash the firmware onto the board for anything to run. I pulled the firmware from micropython.org.
uv tool install mpremote uv tool install esptool curl -L -o firmware/ESP32_GENERIC_S3-v1.29.0.bin \ https://micropython.org/resources/firmware/ESP32_GENERIC_S3-20260824-v1.29.0.binThen a classic bootloader on the ESP32-S3 – hold BOOT, tap RESET, release BOOT – and flash the firmware onto it. I ran a quick blink test to make sure everything was awake and alive before I went ahead and started securing hardware down into the actual physical thing.
Worth doing in that order. If the blink works, the board, the cable and the firmware are all fine, so anything that breaks after this point is wiring.
-
Wiring up the OLED
I wired the OLED up to the ESP32-S3 using four female-to-female jumper cables – power, ground, and the two data lines.
OLED VCC → 3V3 OLED GND → GND OLED SDA → D4 OLED SCL → D5
Then I tested the screen with a short script to make sure all the pixels were working as they should, and that we could do different things like fading and short animations.
-
Soldering the button
The button was a tactile button with four legs, so I had to get a little creative. I took a female-to-female jumper cable and cut it down the middle, stripping the ends back a little on each one. I tinned both the exposed wires and two of the legs on the button first, then soldered them together.
I chose two legs diagonally across from each other. If you choose legs that are laterally across from each other they basically serve the same purpose, so you can’t do that – they’re already connected inside the switch. I had to choose different legs.
Then I tested that the button was reading and that my soldering wasn’t rubbish. I put a little bit of electrical tape around where I joined the jumper cables to the legs, for insulation and to give it a bit more stability.
-
Deciding what appears on the screen
After that I got to work deciding what I wanted to appear on the screen, and started choosing some fun quotes and animations to show while I was doing the wish. I used
mpremote runso I could keep iterating on my quotes and things without needing to install anything onto the board each time.The way I thought this through was that I wanted it to relate to the universe and the stars, because that’s something I really enjoy and find a lot of meaning in.
-
What actually happens
Idle. Whenever the board has power, the screen shows this sea of stars just idling. They twinkle a little, with an occasional shooting star.
Press one. When you’re ready you press the button, and a nice introduction quote fades in and then fades away. Another message comes up telling you to light the candle, with an unlit candle on the screen as well. This stays for as long as you need it to.
At this point you get your physical candle out, put it in the candle holder in the tin, and light it.
Press two. Some phrasing comes up to tell you to make a wish. The digital candle lights on the screen, with embers around it drifting away. You make your wish in real life.
Press three. When it’s done, you blow your candle out and press the button. The digital candle also goes out, scatters, and smokes. It’s very pretty. Another message comes up to let you know your wish is now drifting in the universe, out there with the stars – and it ends with this beautiful visual of a bunch of stars and a shooting star, before returning to the idle screen.
-
Testing before locking it down
I had to do some quick tests before actually locking everything into position. I wanted to make sure it would run properly from my phone, because that makes it super easy to just carry around with me.
-
Getting it into the tin
Then I got to work positioning the three components and a bunch of cables. I ended up using the deeper side of the tin – technically the side where you’re supposed to keep your items – but it worked really well in terms of height for mounting everything I needed to mount.
I used Velcro for a lot of it. The XIAO ESP32S3 is mounted to the side of the tin with Velcro, and so is the screen, and the cables are tucked out of the way at the back. The button is mounted on a circular piece of foam, which gives a bit of cushion when you press it so it isn’t pressing directly onto a hard surface. That protects the button as well. It just sort of wedges in.
Velcro also means I can always take these components out and use them for other projects, or pull things out if anything needs updating. Super easy to do.
-
The cover
I created a cardboard visual for the top of the candle tin as well, to cover up all of the jankiness behind it.
And that was it.