← back

RISC-V-RISU

ThriveS
ThriveS

Shade

Shade
Shade

What?

Shade
Shade

Wow... Is that an FPGA board?

ThriveS
ThriveS

Yes

Shade
Shade

And there's a girl drawn on the PCB... using the traces

Shade
Shade

That's actually pretty cool

ThriveS
ThriveS

Right?!

ThriveS
ThriveS

I found this while going down another internet rabbit hole. Apparently there's this thing called 同人ハード, or doujin hardware

Shade
Shade

Doujin as in independent or fan-made?

ThriveS
ThriveS

Pretty much. Doujin literally has a much broader meaning, but in this context it's basically hardware made by independent creators or small circles, rather than a conventional commercial product

Shade
Shade

So... indie hardware

ThriveS
ThriveS

Exactly

Looking into the AZPR EvBoard, it's actually a proper FPGA development board. The artwork isn't just decoration slapped onto the board—the PCB traces themselves form the illustration on the back. The board was designed around an FPGA and was also intended for experimentation with things like designing and running your own CPU.

ThriveS
ThriveS

So it's not just a pretty PCB

Shade
Shade

No. It's an actual FPGA development board

ThriveS
ThriveS

Have you used FPGA before?

Shade
Shade

A little. I used them at university for a few months. Enough to know my way around one, write some HDL, and make digital logic work

ThriveS
ThriveS

So you're an FPGA expert?

Shade
Shade

Absolutely not

Shade
Shade

Using an FPGA for a few months doesn't make me an FPGA expert

ThriveS
ThriveS

Okay, so we're making one

Shade
Shade

No

ThriveS
ThriveS

Why not?

Shade
Shade

Because designing an FPGA board is considerably more complicated than drawing a cute picture on a PCB

ThriveS
ThriveS

But the picture is the important part

Shade
Shade

It is not

ThriveS
ThriveS

Okay, what if we make something simpler? Something we can actually build

Shade
Shade

Like?

ThriveS
ThriveS

A cool PCB

Shade
Shade

...

ThriveS
ThriveS

Fine. Something useful

Shade
Shade

Such as?

ThriveS
ThriveS

A keychain

Shade
Shade

...

ThriveS
ThriveS

A really cool keychain

Shade
Shade

That's considerably more achievable

ThriveS
ThriveS

And we already have a microcontroller

Shade
Shade

The CH32V003

Shade
Shade

So we're putting a RISC-V microcontroller on a keychain

ThriveS
ThriveS

Now you're getting it

Shade
Shade

The basic idea is actually pretty simple. We'll use the CH32V003 as the brain. It's a tiny RISC-V microcontroller with 16 KB of Flash, 2 KB of SRAM, and a 48 MHz maximum clock.

ThriveS
ThriveS

And what exactly is it going to do?

Shade
Shade

Make noise

ThriveS
ThriveS

Perfect

Shade
Shade

More specifically, we'll use a small electromagnetic buzzer. There's also a push button, a CR2032 coin-cell battery, and a small transistor circuit to control the power

ThriveS
ThriveS

Transistor circuit... for what? Why not just connect the battery to the microcontroller and use the button as an input?

Shade
Shade

Because then the microcontroller would have to remain powered all the time, consuming the battery

ThriveS
ThriveS

Oh

Shade
Shade

Instead, we're going to use a latching power circuit

A Tiny Power Trick The basic idea is that the button briefly turns the circuit on. Once the CH32V003 starts running, it controls the transistor circuit so that it keeps itself powered. The circuit uses two transistors, an SS8050 and an AO3401A to create a simple electronic latch. Think of it like a physical light switch, except instead of your finger keeping the switch in position, a tiny amount of current from the circuit keeps the switch on. Q: How does it turn off? A: The MCU releases the latch. Once the transistor circuit is no longer being held on, the battery is disconnected from the rest of the circuit.

ThriveS
ThriveS

That's actually pretty cool

Shade
Shade

That's why we don't need a traditional power switch

ThriveS
ThriveS

And the buzzer?

Shade
Shade

That's connected to another GPIO. The CH32V003 can toggle the GPIO rapidly, which lets us drive the buzzer at different frequencies

ThriveS
ThriveS

So we can play music?

Shade
Shade

Very loosely

Shade
Shade

It's not going to replace a speaker, it only beeps

ThriveS
ThriveS

That's fine

ThriveS
ThriveS

While you are doing all the boring engineering stuff, I had an extremely important job

ThriveS
ThriveS

Artwork

Shade
Shade

You mean you were drawing

ThriveS
ThriveS

Yes

ThriveS
ThriveS

See? I have a role in this project

Shade
Shade

...

Shade
Shade

I never said you didn't

Once the schematic was complete, the PCB was designed around it. The board needed to fit everything into a small enough shape to work as an actual keychain, while still leaving enough room for the components and the artwork. The final design contains: - CH32V003J4M6 RISC-V MCU - CR2032 battery - Push button - SS8050 + AO3401A power latch - Electromagnetic buzzer - Supporting resistors and capacitors - Programming connections for the WCH-LinkE

Shade
Shade

That took me hours to design

ThriveS
ThriveS

And most importantly...

Shade
Shade

Yea?

ThriveS
ThriveS

The artwork!

Shade
Shade

You forgot her tail btw...

ThriveS
ThriveS

Yea, I just realized it after exporting it. Whatever... It’s too late to change it now

ThriveS
ThriveS

Anyway, a normal PCB is usually green, right?

Shade
Shade

Not necessarily

Shade
Shade

There are multiple choices of color, like red, blue, yellow, etc But this one is special, I ordered it from JLCPCB with a white solder mask and multicolor silkscreen, which makes the artwork much more visible… and, of course, more colorful

ThriveS
ThriveS

From JLCPCB?

Shade
Shade

Yes

ThriveS
ThriveS

Are they sponsoring us?

Shade
Shade

No

ThriveS
ThriveS

JLCPCB, if you're reading this...

Shade
Shade

They're not sponsoring us

ThriveS
ThriveS

I didn't even finish

Shade
Shade

I know where this is going

ThriveS
ThriveS

...please sponsor us

A Few Weeks Later...

Shade
Shade

It's here!

ThriveS
ThriveS

Finally!

Shade
Shade

Look at it!

ThriveS
ThriveS

The silkscreen actually came out pretty well

The next step was assembly. There's something oddly satisfying about taking a completely empty PCB and slowly turning it into an actual circuit. First the smaller components. Then the transistors. Then the microcontroller. Then the buzzer. Finally, the battery holder and button. After soldering everything together and flashing the firmware, it was time for the moment of truth.

ThriveS
ThriveS

Does it work?

Shade
Shade

Let's find out!

ThriveS
ThriveS

IT WORKS!

ThriveS
ThriveS

We made a keychain with a RISC-V processor

Shade
Shade

Technically, yes

The project started with a simple video about a ten-cent microcontroller. From there, the exploration led to a Japanese FPGA board featuring an anime girl drawn directly into its PCB traces, which introduced the concept of doujin hardware. Inspired by the idea, the decision was made to create a piece of hardware, eventually resulting in RISC-V-RISU: a tiny PCB keychain featuring custom artwork of Ayunda Risu from Hololive ID, a CH32V003 RISC-V microcontroller, a transistor-based power latch, and a buzzer. What began as an excuse to make a cool PCB turned into a surprisingly educational project. The CH32V003 handles most of the logic, while the surrounding circuitry turns it into a functional little gadget. A button and transistor-based latch handle power, while a GPIO controls the buzzer. The microcontroller can run its program, generate tones, and eventually release the latch to shut itself down.

Shade
Shade

You don't always need a complicated project to learn something. Sometimes you just need an excuse to put a microcontroller on something that absolutely didn't need one

ThriveS
ThriveS

Like a keychain

Shade
Shade

Exactly

Shade
Shade

And if anyone wants to make one... The hardware design and firmware are available here:

https://github.com/ThriveShadow/risc-v-risu

This is perhaps the most interesting lesson from this project: The fun part isn't always building something powerful. Sometimes it's seeing how much you can do with something tiny.