ACNH autodraw

Entertainment Tech English

Want your picture in the ACNH? Let’s hack switch with Raspberry Pi!

Napat Thumwanit true
08-31-2021

What is it?

In Animal Crossing: New Horizon, we can draw a 32x32 canvas so you can use the design to paste on the floor, shirt or many things in the game!Here, we develop a system to directly convert image to an Nintendo switch input signal to control the painting automatically.

To shoot the signal to our switch, we use Raspi 3b, and ATMega32U4 Micro-controller. Here is our final result (a drawing of titech-chan and Rin-chan)

Rin-chan and Titech-chan drawn in ACNH

Figure 1: Rin-chan and Titech-chan drawn in ACNH

Principle

Reduce the colors

An unfortunate constraint in the game is a canvas can conain only 16 colors. Therefore, the first step if to reduce the number of from the original image using k-mean algorithm.

Finding the nearest color in the game

The color that one can choose in the game is based on HSV-format. One can customize using HSV scale the game given which we convert them linearly to map with the colors we extracted from the previous step.

Draw time

From this point, we just throw signals to the switch to control the paint interface!