# Kakashi: The Copycat Robot

DevFeed: [Kakashi: The Copycat Robot](<https://devfeed.tech/articles/kakashi-the-copycat-robot-21538.md>)

Original publisher: [Read original article](<http://lifepluslinux.blogspot.com/2024/09/kakashi-copycat-robot.html>)

Author: Suresh Alse (noreply@blogger.com)

Published: 2024-09-23T04:47:00Z

Content type: tutorial

Language: en

Sources: [Life Plus Linux](<https://devfeed.tech/sources/life-plus-linux.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Algorithm](<https://devfeed.tech/topics/algorithm.md>), [3D](<https://devfeed.tech/topics/3d.md>)

Tags: [3d-printed](<https://devfeed.tech/tags/3d-printed.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [aurdino](<https://devfeed.tech/tags/aurdino.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [image-processing](<https://devfeed.tech/tags/image-processing.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [project](<https://devfeed.tech/tags/project.md>), [scale](<https://devfeed.tech/tags/scale.md>), [side-project](<https://devfeed.tech/tags/side-project.md>), [speed](<https://devfeed.tech/tags/speed.md>)

## AI overview

A developer describes building Kakashi, a robot that imitates hand movements using an Arduino UNO, LED display, pan-and-tilt brackets, and four servo motors. The article explains the hand-tracking algorithm, including scale-invariant coordinate mapping and conversion to motor angles.

## Source excerpt

In this post, I want to share about "Kakashi: The Copycat Robot"--a fun side project I built a few years ago. The name is inspired by the famous character from Naruto, Kakashi Hatake, also known as the Copycat Ninja. The goal of this robot was to mimic Kakashi's ability to copy movements--though, of course, in a more limited way. Check it out for yourself! Here are the things I used to build this: Aurdino UNO board. Max7219 8x8 LED 3D printed Pan and Tilt brackets (2x) 4 servo motors Bread board and jumper wires. I will go through it in following sections: The Sharinghan Pan and Tilt motion Controller - Serial bus Tracking algorithm The Sharinghan Of course, our Kakashi needs a Sharingan! For those unfamiliar, the Sharingan is the special eye that grants Kakashi his copycat abilities in Naruto. For this, I used a Max7219 8x8 LED. It has 5 pins which I connected as follows: VCC - connect to 5V GND - connect to ground DIN - data in ports.h CS - chip select ports.h CLK - clock ports.h Then I found a led editor which I used to create a hex mapping of the sharinghan in different angles and wrote this code that loops around it. Aurdino: https://github.com/alseambusher/kakashi/blob/new_algo/src/led.h Client: https://github.com/alseambusher/kakashi/blob/new_algo/client/led.py Pan and Tilt Pan and tilt are the two motions using which you can basically cover any movement when used in combination. I used two of these to mimic arm movements. Each one is made up of a pan and tilt bracket, which you can either 3D print or purchase pre-made from Amazon. I attached two servo motors to each bracket. I won't go into assembly details, as there are plenty of great tutorials available on how to put one together. Each servo motor has 3 pins - 5V power, ground and control. I connected the four control cables to the following ports: I wrote a simple class to control the 4 servo motors and map it into pan and tilt actions. Controller - Serial Bus The serial bus acts as a communication channel