Woodworm game (or the first log with USB connector)

For a birthday present every host had to paint and decorate a piece of wood. Because my artistic talents are non existing I thought “why not transfer it in to a game boy?”. So I ended up in caving out the most of the wood and stuffing in a lot of electronics. (from top to down and left to right):

  • Bi-Color (yellow/blue) OLED I2C display.
  • 3.7 V LiPo battery
  • Arduino NANO clone (ATmega328! The ATmega128 had not enough FLASH memory)
  • Booster Circuit (3.7 V to 5 V) with removed USB-A connector
  • LiPo battery charger circuit

This project presented a lot of traps and I stompled in almost everyone!

  • I milled the cutouts for the electronics staight from the top down. But the log was cut in an angle. At the edges where the corner where overhangig, the router bit was endign to cut through the crust. Furtunately I had some crust chips which I used to cover the holes :-/.
  • Routing with a bad router bit and bad equipment is more time consumig then previously estimated :-/.
  • Cheap Aliexpress Arduino NANO clone using often the ATmega128…which had not enough FLASH memory for the Adafruit graphics library :-/.
  • The booster circuit had a LiPo protection chip mounted, but the battery had also one installed. Charging was possible, but powering the circuit from the battery didn’t work. I had to bypass the protection chip using on the charger :-/.
  • The button used boucing heavily. Because I hadn’t time left for hardware debouncing I tried to debounce by software. But this ended in the choice between having a lack in control or a worm on stereoids. This issue isn’t fixed properly yet :-/.

The source code can be found on my GitHub page.