Picture of Arduino Guitar Pedal

The Arduino Guitar Pedal is a digital multi-effect pedal based upon the Lo-Fi Arduino Guitar Pedal originally posted by Kyle McDonald. I made a few modifications to his original design. The most noticeable changes are the built-in preamp, and the active mixer stage which lets you combine the clean signal with the effects signal. I also added a sturdier case, foot switch, and rotary switch to have 6 discreet steps between the different effects.

The cool thing about this pedal is that it can be endlessly customized. If you don't like one of the effects, simply program another one. In this way, this pedal's potential is largely dependent upon your skills and imagination as a programmer.

Step 1: Go get stuff

Picture of Go get stuff
You will need:

(x1) Arduino Uno REV 3 (Radioshack #276-128)
(x1) Make MakerShield Prototyping Kit (Radioshack #276-138)
(x3) 100K-Ohm Linear-Taper Potentiometer (Radioshack #271-092)
(x1) 2-Pole, 6-Position Rotary Switch (Radioshack #275-1386)
(x4) Hexagonal Control Knob with Aluminum Insert (Radioshack #274-415)
(x1) TL082/TL082CP Wide Dual JFET Input Op Amp (8-Pin DIP) (Radioshack #276-1715)
(x2) 1/4" Stereo Panel-Mount Audio Jack (Radioshack #274-312)
(x4) 1uF 63v capacitor (Radioshack #55047191)
(x2) 47uF 16v capacitor (Radioshack #55047280)
(x1) 100pF 50V 10% Hi-Q Ceramic Disc Capacitor (Radioshack #272-123)
(x1) 0.082µf 100V Mylar Capacitor (Radioshack #55046837)
(x1) 5pf 50V Ceramic Disc Capacitor (Radioshack #55047529)
(x6) 10K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1335)
(x2) 1M Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1356)
(x1) 390K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #55049555)
(x1) 1.5K Ohm 1/4W 5% Carbon Film Resistor (Radioshack #271-1120)
(x1) 510K Ohm 1/4W 5% Carbon Film Resistor (Radioshack #55049227)
(x1) 330K Ohm 1/4W 5% Carbon Film Resistor (Radioshack #44049468)
(x1) 4.7K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1330)
(x1) 12K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #55049436)
(x1) 1.2K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #55049409)
(x1) 1K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1321)
(x2) 100K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1347)
(x1) 22K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1339)
(x1) 33K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #55048044)
(x1) 47K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #271-1342)
(x1) 68K Ohm 1/4-Watt Carbon Film Resistor (Radioshack #55049451)
(x1) Heavy-Duty 9V Snap Connectors (Radioshack #270-324)
(x1) 90-Ft. UL-Recognized Hookup Wire (Radioshack #278-1221)
(x1) Enercell® Alkaline 9 Volt Battery (Radioshack #25-853)
(x1) Box 'BB' Size Orange Powder Coat (Small Bear #0301G)
(x1) DPDT Stomp switch (Small Bear #0203)
(x1) 1/8" x 6" x 6" rubber mat
(x1) 1/8" x 12" x 12" cork mat
1-40 of 182Next »
ange_pia1 month ago

Sorry do not quite understand that part of connect the stereo jacks, please you can explain how connects this, Which is the input and output? Thanks

ange_pia1 month ago

Disculpen no entiendo bien la parte de conectar los jacks, me pueden explicar a donde va cada conexion por favor, gracias

ange_pia2 months ago

I am using arduino uno. You could explain me, how use the code? That give me many errors about a main class. And others about to incluide files. Thanks

JustinasB3 months ago

Could someone can give me working code. Im using arduino uno

rwhite193 months ago

Could this pedal be used as a delay pedal or a distortion pedal?

did you watch the video?

bolongo19922 years ago
I've been following this tutorial and I've some issues with the code, I already changed the "WProgram.h" and "WConstants.h" with "Arduino.h" but I still get some errors:

dsp.cpp: In function 'void output(int, short int)':
dsp.cpp:23: error: 'OCR2B' was not declared in this scope
dsp.cpp:24: error: 'OCR2A' was not declared in this scope

I'm using Arduino 1.0.3 and my board is an Arduino Leonardo

did you ever find a solution for these errors? I am getting the same errors. tried uploading code with new Arduino software and Android 0021

Hello I am using an Arduino Leonardo as well. First, in new IDE's (mine is 1.5.6 r2) we need to change "WProgram.h" and "WConstants.h" with "Arduino.h" as you said. I realized that if you select that the board is an Arduino one, the code works perfect but when we change the board for an Arduino Leonardo I have the next error

timers.cpp: In function ‘void waveformGenerationMode(int, int)’:

timers.cpp:29: error: ‘TCCR2B’ was not declared in this scope

timers.cpp:30: error: ‘TCCR2A’ was not declared in this scope

Basically your error are mine are the same, the meaning of the error is that the variables are not defined in the header. Then I saw that there is something extrange. The variable is defined as OCR2A in the file timers.h but it is used as TCCR2A in the timers.cpp, somehow Arduino one manages to get this change but the Leonardo dont.

For fixing it, do yo have declared the OCR2A and OCR2B variables in the time.h file?

I dont understand the difference between #define pwm11 OCR2A and int OCR2A = 11; the 2nd one makes more sense for me, even the sintaxis of #define in the time.h file seems to be different to the standard one. http://arduino.cc/en/Reference/Define

Does someone over here knows what is the difference betwen Arduino one and leonardo in terms of libreries?

I got the the code running for a Leonardo, the problem was that OCR2A, OCR2B, TCCR2A and TCCR2B references to the timer 2, The arduino Leonardo does not have that timer, then we need to change the timer 2 for one that Leonardo really has. Leonardo has 0, 1, 3, 4 ones (but not 2, weird). Moreover the other timers are not linked to the same pins in Leonardo and in UNO.

It is necesary to reorganize them.

Open the file


Mine is linked as following

TIMER0B,/* 3 */ TIMER3A,/* 5 */ TIMER4D,/* 6 */ TIMER1A,/* 9 */

TIMER1B,/* 10 */ TIMER0A,/* 11 */ TIMER4A,/* 13 */

The definitions on the file timers.h must be

#define pwm3 OCR0B

#define pwm5 OCR3A

#define pwm6 OCR4D

#define pwm9 OCR1A

#define pwm10 OCR1B

#define pwm11 OCR0A

********and timers.cpp must content the following code: (et voilà)

#include "timers.h"

#include "Arduino.h"

int getTimer(int pin) {

switch(pin) {

case 5: case 6: return 0;

case 9: case 10: return 1;


return 2; // 3, 11


int getChannel(int pin) {

switch(pin) {

case 6: case 10: case 11: return 0;


return 1; // 3, 9, 5


// - - -- timer settings

void waveformGenerationMode(int pin, int type) {

int timer = getTimer(pin);

int wgm = type == phaseCorrect ? B001 : B011;

if(timer == 0) {

TCCR3A &= ~(B1 << 3); // clear WGM02

TCCR0A &= ~B11; // clear WGM01 and WGM00

TCCR0A |= wgm; // set WGM01 and WGM00

} else if(timer == 2) {

TCCR0B &= ~(B1 << 3); // clear WGM23

TCCR0A &= ~B11; // clear WGM21 and WGM20

TCCR0A |= wgm; // set WGM21 and WGM20



void waveformGenerationMode(int pin, int type, int bits) {

int timer = getTimer(pin);

if(timer == 1) {

TCCR1B &= ~(B11 << 3); // clear WGM13 and WGM12

TCCR1A &= ~B11; // clear WGM11 and WGM10

TCCR1B |= (type << 3); // set WGM12

TCCR1A |= (bits - 7);



void timerPrescale(int pin, int prescale) {

int timer = getTimer(pin);

if(timer == 0) {

TCCR3A &= ~B111; // clear CS02 CS01 CS00

TCCR3A |= getPrescale01(prescale);

} else if(timer == 1) {

TCCR1B &= ~B111; // clear CS12 CS11 CS10

TCCR1B |= getPrescale01(prescale);

} else if(timer == 2) {

TCCR0B &= ~B111; // clear CS22 CS21 CS20

TCCR0B |= getPrescale2(prescale);



int getPrescale01(int prescale) {

switch(prescale) {

case 1: return B001;

case 8: return B010;

case 64: return B011;

case 256: return B100;

case 1024: return B101;

default: return B000;



int getPrescale2(int prescale) {

switch(prescale) {

case 1: return B001;

case 8: return B010;

case 32: return B011;

case 64: return B100;

case 128: return B101;

case 256: return B110;

case 1024: return B111;

default: return B000;



// - - -- analog prescaling

void analogPrescale(int divisionFactor) {

ADCSRA &= ~B111; // clear analog prescale

ADCSRA |= divisionFactor;


i have the same problem but start's with analogWrite not declared in scoop

use version 20
ghunt45 months ago

I have a couple of questions. First would it be possible to add a selector switch to switch the pedal to different effects functions? Then, if this is added, would it then be possible to add an LCD screen to display which function is currently selected? Does anyone who has made this have a video anywhere of them using it that is a little bit more detailed than the one at the top of the post (I am not criticising the video. I understand it is an advert rather than a demonstration)

I'm looking forward to making it though.

Carrion Crow made it!1 year ago

Hi all, I attempted this this week. Some important things:

1. It will only work if you compile with an older version of the Arduino software. I used version 0021 found here: http://arduino.cc/en/Main/OldSoftwareReleases

2. The schematic uses a capacitor (C2, 100nF if I remember right) not found in the bill of materials at the top of this article, the only reason I had enough is because I ordered two of everything because I'm experienced at being inexperienced. I used the other 82nF in its place and all was well.

3. The design relies on you using a switched type of 6mm jack. I ordered non-switched ones because I am a fool. I don't like this method of turning it on and off, I would rather the main switch included more poles and throws so I think my solution will be to buy another foot switch for this build. It would be the easiest to plumb in to the case.

4. The article doesn't state whether or not you need a special spade bit for metal. I've yet to cut the larger holes in my Hammond enclosure but I would suspect it would make short work of spade bits intended for wood (most of the ones for sale seem to be, otherwise they are prohibitively expensive). I would be tempted to print the enclosure on my reprap in future. I had to phone my father regarding this issue, he's going to email me some tips.

5. Some pots have a low range over the ADC I think this may be corrected in code somehow. I measured the voltages and they seemed to sweep uniformly between 0 and 5V.

I'll report back when I've got my case made up and the selector wheel installed.

photo (1).JPG

You could use a "stepped" drill bit to get the holes to size, or use consecutively larger drill bits.

Sasando_Rote6 months ago
mantap om
marrymay7 months ago

I'm so excited to discover this series of DIY pedal posts. I need to to thank you for your time for this particularly wonderful read!! I definitely liked every little bit of it and i also have you book-marked to check out new things. I also have a blog (www.guitarpedal.org), If you have time to check on it, I will be so happy.

MattP77 months ago

it's possible to activate different effects at the same time? instead of using a rotatory switch, i want to use 3 three-state switch connected for example to D4,D5,D6... and eliminate the A3 pin of the rotatory switch

rich_saul7 months ago

It's two years after the comments below. I still don't see the template anywhere.


Just putting a proto-type together and was wondering where the 1.2k resistor is used? Ordered a few as I saw it on the parts list and only now I realize theres none in the circuit design.

Anyone have any info on this?

nitro211 months ago

Hi ,

Can someone confirm the correctness of the veroboard design ??

I am a bit confused about some capacitors

my project is almost finished , so a confirmation of that design would rocket me forwards toward the finish.

thanks a lot for your help

m_IMG_3995 (2).jpgm_IMG_3925.jpg

Do you have another image of the circuit of step 8? It gets blurred when I zoom it


would you please tell me what we are exactly connecting to analog 2,3.i couldn't find any knobs(potentiometers) attached anywhere in ckt dia..also the input signal.

this is my first time to follow instructables project i really love this one.i hope you will help me.reply as soon as possible.


Carrion Crow made it!1 year ago

Here's the finished thing. It works but only after I correctly insulated the pots from the casing. See my other comment for the other things I noticed. Mine doesn't have a switched input jack, instead I opted for a 2.1mm power port on the back, the same kind as used by standard effects pedals. I just use a 9V battery with the correct connector.

Be very careful when pushing the knob on your rotary switch as it can break the switch and they are not fun and games to reassemble. I used a sharp blade to cut down the shaft to the right diameter for it to slide on easily and be secured with the screw.

Also make sure your input and output are the right way around when testing. That seems like an obvious statement to make but it is a likely error. The schematic isn't the easiest to comprehend, my method was to go through with a felt tip pen and colour in each link as I soldered it down. This is definitely worthwhile as it reduces the chance of error.

photo 4.JPGphoto 3.JPGphoto (1).JPG
jleeuwen1 year ago

can someone make a shopping list for dx.com ?
Im not that experianced in electronics that i can figure it out my self

fightdu1 year ago
i have been searching for octive pedel coding specifically down or bass octive .also does it matter if i use arduino mini or ,nano ?

You need to check that the pwm pins in nano and mini are enough, moreover finally you must translate the code for linking the correct pins to the timer (look at for my previous coment for Leonardo). However, I am not sure how much memory have the mini and nano. When I run a code for an UNO this appears: Global variables use 2,025 bytes (98%) of dynamic memory, leaving 23 bytes for local variables. Maximum is 2,048 bytes.

aslaine1 year ago
hello there i'm currently trying to make this project but whenever i try to verify the code and then upload it to the arduino it gives me errors...Does anyone has the same problems as me or knows what to do?

give us details, Arduino version, board you use, and paste the error.

danejo1 year ago

For those of you having trouble following the corrections needed to make the pedal work, here is a veroboard layout I made. With this you can also create the circuit without the Arduino shield.


Hey , are you sure this layout is 100% correct ? I've been trying for days to make this pedal work and still nothing . I've checked it with the schematic and it seems right, but i'm an amateur and i can't be really sure . Have you managed to build this pedal ?

Sit tight - I will let you know as soon as it is done. I also bought twice as many parts so I can build it with the arduino shield kit board I have.

m4ns0nite1 year ago

Can someone please confirm that the veroboard layout made by

danejo is ok ?

I will let you know shortly - I have like 5 more components to solder....

lhörst1 year ago

I'm not 100% sure where i'm supposed to be wiring the input and output jacks to, unless it doesn't really make a difference. I have them on either side of the pushbutton but it doesn't appear to make a difference which side i connect them too.

I'm also testing mine with an oscilliscope and a function generator, if you could tell me what i'm supposed to be seeing to make sure i did it right that would be awesome!

Nithrate1 year ago

Have you tried using a Bass guitar instead of a guitar? It just sounds too fuzzy

STARDEMOS1 year ago

I really want to make this, but since there are so much revisions that are only mentioned in the comments I don't think I can get it to work. I think it would really help if this instructable would be revised or someone would make a new working instructable.

aballen1 year ago
Can I use a TL072 for this(I have these on hand)
randofo (author)  aballen1 year ago
I see no reason why it should not work, but I cannot be 100% certain.
1-40 of 182Next »