Cover image

Introduction

When a rep from PCBWay asked me if I had an idea for a new project, in absense of new ideas, I decided to bring back an old unpublished side project and give it a second life. By doing this, I got a chance to address issues identified years ago that I was not able to fix at that time.

So what it is about? Around 8 years ago, I made a keychain sized toy, running the T-Rex runner game (Google’s easter egg game from the Chrome browser) featuring Atmega88 microcontroller, 128x32px OLED, two push buttons and a 100mAh LiPo battery.

This time, I have chosen to try out the WCH CH32V003 microcontroller (aka 10cent MCU) and use ch32fun[1] open source development environment with gcc-riscv64.

As a bonus, this can be a perfect gift for a kid.

For more details about the schematic, firmware and 3D model take a look at the Gihub repo.

PCBway logo

Once again, thanks PCBway for sponsoring this project and sending me PCBs and the SMD stencil for free.

Changes

Hardware

Schematic: Schematic of trex runner *Open image in new tab to view the full size image

Improvements:

PCB:

PCB of trex runner

Assembled PCB:

PCB of trex runner

As you can see, PCBs are marked v1.0.1. This means I messed up something in the first version. A big lesson learned while working on this simple project is to never trust the default footprints provedided by the software - double check everything before making the order. In the first iteration, footprints for transistors had wrong pinouts.

There is no problem some creative thinking and enamel wire couldn’t fix:

Fixed v1.0.0 PCB Fixed v1.0.0 PCB

Firmware

Changes on the firmware side were straight forward:

Case

The original case has been re-made in Fusion360 with slight modifications:

3D model of the case:

3D model of the lid:

3D model of the button cap:

References