【Keypad】鎌倉宮 獅子頭(Kamakura-gū Lion Head) #000 XIAO RP2040

by hide-key in Circuits > USB

1237 Views, 9 Favorites, 0 Comments

【Keypad】鎌倉宮 獅子頭(Kamakura-gū Lion Head) #000 XIAO RP2040

IMG_3451.JPG

A 神社 (Shinto shrine) is a religious facility based on the beliefs of 神道 (Shinto), a religion unique to Japan. Each shrine has its own amulet, and one of those shrines, the 鎌倉宮 (Kamakura-gū) amulet, was in my house.

One day, I was looking around the room, wondering if there was anything interesting.🤔 Since I started making my own keyboards, various things have come to look like keyboards. It's some kind of sickness. "Huh? The nose part of this amulet looks like a keycap?"😅

That is the 獅子頭 (Lion head) amulet, which is the motif of this time.

*獅子頭 (Lion head) refers to the head of a 獅子舞 (Lion dance). 獅子舞 (Lion dance) is one of the traditional performing arts seen in East Asia and Southeast Asia, in which 獅子 (Komainu) dance to the 祭囃子 (accompaniment of festival music).

I immediately started working on a 3D printed prototype, but the lion head motif is a talisman. I thought it would be impossible to complete it without permission. So, after the prototype was completed, I made an appointment with the 宮司 (chief priest) of the 鎌倉宮 (Kamakura-gū), met in person, and said, "Please let me make a lion-headed amulet as a self-made keyboard." In addition, I was able to talk about various things, and I was able to hear a lot of stories. As a conclusion, I was able to get a willing consent and started full-scale production.



Supplies

MCU : XIAO RP2040 : 1 pcs

Key switch : Kailh Low Profile : 3 pcs

Diode : 1N4148 3 pcs

Rotary encoder : EC12E2440301 : 2 pcs

Screw : M2 10mm : 4 pcs

Cushion rubber : 7.9x2.2mm Circular : 4 pcs


*It is necessary to request the production of the circuit board.

* In addition, a 3D printer (SLA) and resin are required.

Design

202106271626131064.jpg
1387686947.jpg
3Dスキャン.jpg

There are several types of this 獅子頭 (Lion head) amulet, but I mainly used the large size as a reference.

First, in order to obtain silhouette information, we used 3D scanning with Photogrammetry. I scanned with my smartphone and the size of the scanned object was small, so it turned out to be quite rough. But it's good enough because we got the approximate silhouette information. In addition, I searched for images on the Internet and supplemented the silhouette information.

The final size was designed to match the size of the key switch and rotary encoder.

3D Data

3C296CC2-5594-43D1-96F7-6314C655B72C.jpg
blueprint.jpg

3D data was created with Fusion360.

Originally it was a simple shape with a small number of parts, but I was unfamiliar with painting and decided that it was difficult to express the details. In the end, I decided to separate the eyes and mouth into parts by color and insert them into the main body.

3D Printing

IMG_3387.png
IMG_3377.jpg

Print the aforementioned 3D data. I output with the stereolithography method (SLA). You may also want to use a print service.

Please note that the mouth part is made quite thin. I have broken many times and rebuilt many times.

* The image is the first one I made, and it is the timing when the mouth and eye parts are not yet separated.

Painting

IMG_3389.png
IMG_3397.jpg

Paint as desired. The basic procedure for the painting I did was "Surfacer → File → Surfacer → Paint color → Matte clear".

The eyes and mouth are divided into parts, so paint them with each color. As for the mouth, the base gold is applied to the mouth of the head part, and the black mouth part is glued on.

* The image is the first one I made, and it is the timing when the mouth and eye parts are not yet separated.

Circuit Board Data

IMG_3442.png
IMG_3444.png

Below is the gerber file. Place your order with PCB Fabrication Services.


Gerber file : Data on GitHub


Firmware

Below are UF2 file, JSON file, and source files.

If you want to use UF2 file, boot XIAO RP2040 in bootloader mode and upload the downloaded UF2 file.

*Connect the XIAO RP2040 and the work PC with a USB cable, and press the RESET button while pressing the BOOT button. It will be recognized as a drive, so drag and drop the UF2 file. Once uploaded, it will be unmounted and reconnected automatically.

After that, use REMAP to make your favorite keymap.

Assembling

IMG_3451_1.JPG
IMG_3445.png

After assembling the circuit board and keyboard parts, we will install other parts.

For the head, fix the colored eyes and mouth with glue.

*The eyes are made quite tight, so I didn't use any glue, just fit them in. The eye part is also easy to break, so please push it carefully.


Points to note:

  • Please write the firmware before fixing the head part.
  • XIAO RP2040 is designed to be directly attached to the PCB. (No pin headers or cons throughs are used)


Completing

IMG_3454.png

Once the firmware has been written and the assembly is completed, it is completed.

I am also posting on the following SNS.

I would like to express my heartfelt gratitude to all those involved in the Kamakura Palace for their understanding and willing consent despite the sudden request.

Thank you very much for reading to the end.

Have a nice keyboard life.