DIY Makey Makey With Arduino Leonardo




Introduction: DIY Makey Makey With Arduino Leonardo

About: DIGIJEUNES is an NGO active in the field of digital mediation.

In this tutorial you will learn how to create a makey makey-like device with an Arduino Leonardo.

You can watch this video to familiarize yourself with makey-makey.

This tutorial was developed as part of theI TECH project, co-financed by the Erasmus + Program of the European Commission.

Project n°: 2017-1-FR02-KA205-012764

The content of this publication does not reflect the official opinion of the EuropeanUnion. Responsibility for the information and views expressed therein lies entirely withthe author(s).

For more info contact us on

Step 1: Parts

you will need:

1x Arduino Leonardo + USB cable

6x 1MOhm resistors

1x large breadboard

14x jumper wires

7x alligator clips

Step 2: Wiring

The image below shows the wiring that is needed for one key of your makey-makey-like device. In order to obtain 6 functional keys, you will need to repeat this wiring 6 times overall, each time using a different analog pin on your arduino leonardo.

Step 3: Program the Makey Makey-like Device

In order for your makey-makey-like device to function like a classical makey makey, you will need to program the Arduino board, so that whenever a circuit is shut, the computer will react as if a certain key (ex. “a”, “backspace”, “space”) were pressed.

You will need to use Arduino IDE to code and upload the firmware onto your Arduino Leonardo board. Download the software by visiting Arduino IDE > Scroll down until you see the “Download the Arduino IDE” section and choose the version based upon your operating system (e.g. If you have Windows 7, choose “Windows Installer” / if you have Windows 10, choose “Windows app”) > On the next page choose “Just download” and run the installation files.

Here you can download the code to upload on your Arduino board.

You then need to run the .ino file with Arduino IDE and make sure you install the movingAvg library from “Sketch” menu > Include Library > Manage Libraries… > Search for “movingavg” > Install. Afterwards, select the correct board from Tools > Board: Arduino Leonardo and then the correct Port from Tools > Port. Finally, upload the code by using the right arrow (→) button at the top right corner of the window, by choosing Sketch > Upload or by pressing Ctrl+U on the keyboard.

Note that we’ve mapped the analog pins so that A0 maps to letter “d”, A1 to letter “s”, etc.

You can modify the mapping by changing the letters “d”, “s”, etc.

Step 4: Play

Just like you do with a real makey makey, it is convenient to attach alligator clips to the jumper wires, and connect the alligator clips themselves to whichever conductive object you'd like.

Be the First to Share


    • Cookie Speed Challenge

      Cookie Speed Challenge
    • Edible Art Challenge

      Edible Art Challenge
    • Hide It Challenge

      Hide It Challenge



    1 year ago

    I have followed the instructions and the "A0" gives me a "d" everytime (as long as every pin is plugged in, if not it acts like the others), but the others give me multiple keys at once. Anybody have an idea of what I did wrong? Anybody had the same thing happen to them? Thanks.


    Reply 1 year ago

    Hi, well done!

    actually, which software did you use to play the sounds and record them?




    Reply 1 year ago

    Thank you! I used logic pro and set the drum machine to correspond with my keyboard.


    Question 2 years ago

    Hello, a very beautiful build and we'll explained.
    I have a question...I was wondering if it is possible to add more buttons? I need only 2 more...but any more would be great


    Answer 2 years ago


    sorry for delay :)

    I wouldn't know how to add extra buttons to be honest, since for each button we need one analog pin on the arduino board. and the Leonardo board only has 5 Analog ports unfortunately...


    2 years ago on Introduction

    This tutorial was produced as part of the iTech project, co-financed by the Erasmus + programme of the European Commission.
    A French version of this tutorial is available here.


    2 years ago

    Can you lmao this to mouse