Design and Construction of Arduino-Hacked Variable Gating Distortion Pedal
Design and Construction of Arduino-Hacked Variable Gating Distortion Pedal
December 9,
2014.
Digital Object Identifier 10.1109/ACCESS.2014.2374195
ABSTRACT This paper describes the distortion effects often used in an electric guitar. Distortion is an
added effect in an electric guitar, which compresses the peaks of the sound waves produced by the musical
instrument, to produce a large number of added overtones, which here is done by rigging up a circuit in
collaboration with the Arduino UNO circuit board. The digital potentiometer controlled by the Arduino
(microcontroller) was an improvement and was able to produce satisfactory results, as compared with the
analog potentiometer without the Arduino control. The complex circuitry of a three-stage distortion circuit
with the analog potentiometer was replaced by a digital potentiometer controlled by a microcontroller, with
better results. This variable-gating distortion pedal has an added advantage of being compact, light, and
inexpensive.
2169-3536
2014 IEEE. Translations and content mining are permitted for academic research only.
VOLUME 2, 2014 Personal use is also permitted, but republication/redistribution requires IEEE permission. 1409
See [Link] for more information.
A. A. Murthy et al.: Design and Construction of Arduino-Hacked Variable Gating Distortion Pedal
The one main difference between the distortion circuit and the and equalization. Experimental result shows that the system
overdrive circuit is that, irrespective of the level of volume, can be used as a MIDI synthesizer as well as a traditional
the distortion circuit clips and distorts the signal, whereas, the guitar effector. While according to M Karjalainen [7] there
overdrive circuit gives clean sound for quieter volumes, and is a need of a virtual analog modelling for the simulation
more harsh and distorted sound for higher volumes. Fig. 1, of classic analog circuitry by DSP. He showed the use of
shows the classic distortion pedal, with the capabilities of wave digital filters in real-time simulation of vacuum-tube
reproducing dynamics of playing, from soft to hard distor- amplifier stages. D.J. Gillespie [8] introduced a novel method
tions, and level and tone control to tailor the overall sound as for the solution of guitar distortion circuits based on the use
desired. of kernels. The algorithm he proposed uses a kernel regres-
sion framework to linearize the inherent nonlinear dynami-
cal systems created by such circuits and proposes data and
kernel selection algorithms well suited to learn the required
regression parameters. Examples are presented using the One
Capacitor Diode Clipper and the Common-Cathode Tube
Amplifier.
A. AMPLIFIER MODELLING
The digital emulation of a physical amplifier is referred to
as amplifier modelling. An amplifier is often used to recreate
the sound of a specific model of vacuum tube amplifiers. This
process of recreation of sound can add the effect of distortion
to the recording in the otherwise undistorted recording. The
FIGURE 1. BOSS Distortion DS – 1 distortion pedal (Photo dynamic behaviour of the amplifier modelling, renders it use-
courtesy: Wikipedia).
ful, as the amplifier setting can be modified instantaneously
without undergoing the trouble of re-recording the audio.
An equalizer is used to adjust the frequency response in a Digital Signal Processing (DSP) is generally used in the pro-
number of different frequency bands. To adjust the frequency cess of amplifier modelling to recreate the sound of plugging
response there are a few ways, such as the sliding control into analog pedals and overdriving the valve amplifiers [9].
and the rotary control. A graphic equalizer provides slider
controls for a number of frequency region. These bands of
frequency have a fixed width and a fixed center frequency,
but the slider will only be able to change the level of the
frequency band and no changes can be made on the width
and the center frequency. The tone controls on guitar uses
rotary control rather than sliding controls, to change the level
of frequency, while maintaining the fixed width and the center
frequency [2].
According to the previous works by R.C.D. Paiva [3] a
generic model was constructed to emulate distortion circuits
using operational amplifiers and diodes. This model consisted
of basic electronic analog components, resulting in a highly
FIGURE 2. Roland Micro Cube Amplifier (Photo courtesy: Wikipedia).
dense and complex structure of the circuit. On the other hand,
Alfred Hanssen [4] analyzed the amplification of sound of an Fig. 2 shows the classic solid state Roland Micro Cube
electric guitar by a high-quality all-tube amplifier which was Amplifier, having the capability to amplify the sound waves
emitted by means of a speaker cabinet. He used three different of the guitar to a desired level with an input power consump-
preamplifier gain settings: one clean, one half-distorted, and tion of 2W, and nominal input level being 10dBu.
one massively distorted to analyze the sound spectrum, and The extreme heavy overdriving of the amplifier tubes cre-
found that only the high frequency part of the spectrum was ates the sound effects with high gains essentially used in
boosted by an increase in the distortion levels. D.T. Yeh [5] Heavy metal concerts. The essential component of such a high
has presented a procedural approach to derive nonlinear filters gain is the loud, harmonically rich, and the sustaining quality
from schematics of audio circuits for the purpose of digi- of the tone. The distortion effects often produces sounds
tally emulating analog musical effects circuits in real time. which are not possible to be produced any other way.
Jiming Fan [6] proposes a solution to design a new type
of guitar effectors integrating a MIDI synthesizer function B. SOLID STATE DISTORTION
based on ADSP-BF533. He introduced the algorithm of Solid-state amplifiers incorporate transistors and opera-
the basic functions of guitar effectors such as distortion tional amplifiers (op-amps) to produce hard clipped and
FIGURE 3. (a) The Solid state amplifier. (b) The output stage of the Solid State Amplifier.
distorted waves. There are two methods to achieve this values of these components. Therefore, there is a need for
distortion using hard clipping. One is by either amplify- a quick and convenient method of measuring the open loop
ing the signal to such an extent that the signals get flat- gain, so that the circuit is designed with expected output.
tened by clipping due to crossing the threshold value, or Manipulating of the closed loop gains and breaking of the
by clipping the signal across diodes, which is a simpler feedback loops within the circuit is the standard method
method. for obtaining the open loop gain of an op-amp circuit. This
A typical circuit of the solid state amplifier is as shown procedural method has a very low success rate with the
in the figure above. The circuit mainly consists of solid average power amplifier, and hence is not adopted due to the
state devices like transistors and op-amps. The open loop inconsistencies.
gain of the circuit is calculated based on the values of the For the amplifier shown in Fig 3, the open-loop gain is the
resistances and the capacitances, and the required gain at voltage at the output divided by the differential voltage at the
the output is obtained by designing the circuit with modified input.
Resistors
1. 2.2k (3)
2. 51k (3)
3. 100k (3)
4. 1M
5. 50k trim potentiometers (3)
6. 100k potentiometer, audio taper.
7. 500k potentiometer, audio taper.
Capacitors
1. 200nF
2. 4.7uF (3)
3. 22uF (3)
4. 220uF
Semiconductors
1. J201JFETs (3)
FIGURE 4. Open Loop Gain – Frequency (Hz.) v/s Amplifier (dBr.). Miscellaneous
1. 9V battery
2. Clip for said battery
Fig 4 shows Open Loop gain of the amplifier shown 3. Breadboard/Strip board
in Fig. 3. 4. Jacks for input and output (2)
FIGURE 6. The basic stage of the circuit is cascaded to form a 3 stage distortion circuit to obtain the required tone (Photo courtesy: Instructables, FET
distortion pedal).
FIGURE 8. True Bypass switch, Double Pole Double Throw (DPDT), (Photo
courtesy: Instructables, FET distortion pedal).
• The analog potentiometer had issues while interfacing The board has to be cooled down. It is put on a plate with
with a microcontroller, and hence the circuit is not cold water and a little soap. After some time the paper can be
controlled by a microcontroller. removed by rubbing it. The toner should remain on the board.
• Also, variable gating was not possible with the simple If not, the toner can be removed using Acetone and the whole
analog potentiometers. process is repeated.
• Complex circuitry involving three stages, to obtain the • Etching
required distortion. 1) Designing the circuit, with digital potentiometer con-
trolled by Arduino UNO (Microcontroller).
III. OBJECTIVES
• The circuitry to be designed requires that input
• To assemble and construct a varying gate distortion pedal
waveforms be hard clipped, to achieve a distorted
for the electric guitar.
sound.
• To utilize a microcontroller to feed in a signal wave-
• The resulting circuit consists of a series of smaller
form to influence the output of the pedal, reducing the
circuits, such as a high pass filter, integrator, etc.
complex circuitry of 3 stage.
• Components required are:
• Mylar, ceramic and electrolytic capacitors (at least
12V, 0.1 uF)
• Transistors (2N5458)
• Diodes (1N914, 1N4002)
• 1% metal film resistors
• Input and output jacks
• LEDs and holders
• 9V power supply
• 22 gauge wire
• Power input connector
• 8 pin DIP IC socket for LM308 IC
• Blank copper clad circuit board
• 100 K-A potentiometers
• Metal casing
• MCP41100 IC.
FIGURE 10. Circuit design for PCB manufacturing.
In the circuit diagram shown in Fig. 11, a digital
potentiometer – MCP41100 IC along with Arduino cir-
cuit board has been used, to obtain the required tone
IV. METHODOLOGY as an output. It is easy and better to control the resis-
1) Constructing the PCB using toner transfer method. tance value by Microcontroller instead of using an ana-
Fig. 10 depicts the circuit design for the PCB manu- log one. Analog potentiometers have some problem with
facturing. Micro Controller Unit. Microcontroller doesn’t have an easy
way to interface with them. The Digital Potentiometer, gives
A. MAINTAINING THE INTEGRITY OF THE SPECIFICATIONS an ability to adjust the resistance, allowing to control a voltage
• Layout
splitter with digital signals, hence variation in the voltage is
obtained at a faster rate, producing the required distortion as
The Layout should be mirrored.
and when required. The Fig. 12 is a representation of the pin
• Crop and align configuration of the digital potentiometer – MCP41100.
The dust and fingerprints on the board are removed with From the above Fig. 13, it is clear that the wiper is moved
acetone. The layout is then cut and applied with the printed over the length of the wire to vary the resistance, and hence
side on the board. If necessary, the layout is fixed with Scotch the potential. The wiper movement is controlled by the digital
Tape. control of the Arduino UNO circuit board as shown in the
• Ironing Fig. 14. Hence, the effective variation of the potential in the
A linen cloth is put on the board. The layout on the board is digital potentiometer (MCP41100) is done by the microcon-
ironed with circling movements and light pressure. Thereby troller, Arduino UNO.
the correct temperature is important. If it is too high, the The Arduino UNO has the following specifications: -
toner becomes too liquid and the strip lines become blurred. Processor: ATmega328 (8-bit CPU, 16MHz clock speed,
If it is too low, the toner does not retain on the copper. So, 2KB SRAM, 32KB flash storage)
maintaining of the correct temperature while ironing is of the Features: 14 digital I/O pins, 6 analog input pins,
utmost importance. removable microcontroller
• Removing the paper Form Factor: 2.7’’ x 2.1’’ rectangle [12].
FIGURE 11. Circuit diagram showing the layout of the various components.
V. OBSERVATIONS:-
1. The setup is connected properly on the bread board,
with the specific components working in the similar
range of operating parameters, and the connection is
rigged to the input supply on one side, and a Cathode
Ray Oscilloscope (CRO) on the other side for obtaining
the output wave form.
2. The Arduino Microcontroller circuit board is used to
FIGURE 13. Digital Potentiometer. obtain the variation in the waveform of the distor-
tion produced, as seen in the output waveform of
the CRO.
3. The original input signal is a sinusoidal signal, varying
with respect to time, whose upper and lower limits are
set with the help of a potentiometer.
4. Fig. 17 shows the input sinusoidal waveform applied to
the circuit for which distortion has to be introduced by
hard clipping.
5. Fig. 18 shows the output waveform which is hard
clipped and the distortion which has been applied to it
is clearly visible.
FIGURE 16. Circuit prototyping with breadboard. FIGURE 18. Output hard clipped waveform with distortion.