Tag Archive for LM13700

Project Ryu Lagger Guitar Pedal Take 3

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

LM13600 LM13700 slow attack pedal

Hello dear readers,


It has been a quiet period but a very busy period, very active and very fruitful. I will be launching the projectryu.com site soon with tons of free resources for the audio hobbyist.


Getting back to the title of this post, i would like to present a few improvements and a concrete design as a pedal unit.  If you don’t remember about the Lagger project let me put the links below in case you want to check it out.

Project Ryu Lagger – Guitar Effect

Project Ryu Lagger Guitar Pedal Take 2


As a quick summary, Project Ryu Lagger is  a guitar effect pedal that slows down the attack of the guitar (or any instrument for that matter) just like an automated volume pedal.

It does this with a VCA (Voltage Controlled Amplifier), based on the LM13600/LM13700. The fade in envelope is created with a ramp voltage generator that controls the VCA and this generator is triggered by a digital circuit created with a Microchip PI18F1320 MCU.

The digital signal conversion and rectification is explained in a previous article, please read it at the link below:

Analog to Digital Signal Rectification


The new version i will present today was adapted as a real pedal with a 3 pole footswitch.

Another change was in the ramp generator replacing the 100k potentiometer with a 10k one since the other two pots in the circuit are 10k. This last change also implies changing some capacitor values. Please refer to the new schematics below:

Project Ryu Lagger Schematics

I am pretty satisfied with this pedal so i have created the PCB for this circuit. The PCB gerber files and the MCU firmware is available for free as usual to subscribers in the next newsletters. If you are not a subscriber yet please register in the form to the right.

Slow attack pedal PCB Project Ryu Lagger

Some things to consider if you plan to design your own PCB is good shield of the LM13600/13700 input pins. It is good to surround it with ground plane like below:

pch shield LM13600 LM13700

You can find the PCB artwork below:

Project Ryu Lagger PCB Art

With the new modifications on the ramp generator circuit the min – max values for attack control is 0.1s and about 1.4s. Below is the ramp waveform measured, this is actually the control voltage of the VCA:

1. full counter clockwise attack pot setting:

Horizontal resolution: 50ms/div

Project Ryu Lagger control voltage

2. full clockwise attack pot setting:

Horizontal resolution: 200ms/div

Project Ryu Lagger LM13700 control voltage

Below is a screenshot that shows the triggering of the ramp generator, the red trace is the input signal:

Project Ryu Lagger LM13600 LM13700 swell pedal

As you can see modifying the attack control will adjust the length of the fade in effect. The trigger control adjust the input level above which the ramp generator is triggered. This is to prevent noisy pickups or other pedals used in front of the Lagger to trigger the effect.

The level control adjusts output gain from between +6dB to a max of +24dB so it is capable of a high amount of gain. In the measurement below voltage gain is 14 with an output voltage of 3.6V peak to peak (yellow trace). As you can see there is a bit of saturation happening.

Project Ryu Lagger Measurement


Bellow are two videos showing signal traces using sine waves at 1kHz, one video triggering the effect manually and the other with the effect triggered by the input signal.

Project Ryu Lagger is one of my favorite pedals, i really like this effect and the latest version allows for a great deal of control for the guitarist in sustaining the effect or muting by simply applying muting effects with the palm for example.

Project Ryu Lagger Guitar Pedal

Project Ryu Lagger Guitar Pedal

Project Ryu Lagger Guitar Pedal


For DIY-ers this project is of moderate complexity but you can subscribe or comment here and i will try to offer any assistance i can. Remember to read the Disclaimer though.

Here is the parts list for this project:

Quantity: References Value
3 C1, C8, C15 4.7u
2 C2, C3 22p
1 C4 10u
1 C5 100u
2 C6, C7 33u
1 C9 4700u
1 C10 10u
2 C11, C12 1000u
5 C13, C14, C16-C18 100n
2 R1, R21 2k
13 R2, R6-R12, R15, R22, R23, R26, R28 10k
1 R3 22k
1 R4 3.3k
4 R5, R29, R31, R32 2.2k
3 R13, R14, R24 100k
1 R18 1k
1 R19 470
2 R20, R25 200
1 R27 5.6k
1 R33 1M
1 U1 LM13700
1 U2 PIC18F1320
1 U3 78L05
1 U4 79L05
2 U5, U6 TL071
2 Q1, Q2 BC549
1 Q3 BC559
2 D1, D2 1N4001
1 D5 LED
1 J3 3 pole foot switch
3 POT1-POT3 10k
1 RV1 1k
1 X1 20Mhz Crystal

I hope you enjoyed reading this article as much as i enjoyed building this pedal and hope to hear from you. To the subscribers, the newsletter will be sent in a few days with Gerber files for PCB and MCU firmware and a couple more details about this construction.


Here are 2 sample sounds of the effect played by one of my guitarist friends:


Thank you for your visit.


Project Ryu Lagger – Guitar Effect

Lagger Slow Attack Guitar Effect facebooktwittergoogle_plusredditpinterestlinkedinmailby feather


Do you remember BOSS Slow Gear pedal? If your a guitarist you most likely do or at least you’ve heard of it. It was a great pedal sold from 1979 to 1982 and it was made in Japan. The pedal would cut the attack of your notes giving a swelling sound. It god famous for making the guitar sound kinda like a violin.

I always liked that effect and i even made a clone a few years back. It is based on a 2SK30 JFET and it was a pain getting these transistors. It was a lot of fun though and i though i should make a Project Ryu swell effect pedal and so LAGGER was born!

Recently i worked on a few projects with LM13600/LM13700, one of them is a nice noise gate / compressor unit which i will present at a later date, and i really like the VCAs that can be built with these chips.

To cut the attack of a note and then swell the volume basically we need a triggered fade in effect. This means that we need to control our VCA with a rising voltage using what i call a ramp generator.

In a previous article (Monitoring Amplifier モニターアンプ P3: Speaker Coupling Delay)   i described the circuit of such a ramp generator and it even has a command input. I will use this circuit with the LM13600 VCA all controlled digitally with a PIC18f1320.

Below you can see the block diagram of the Lagger:

Lagger slow attack pedal diagram
The input is fed into an ADC channel to be rectified and averaged in order to detect when a note is played. Once it is detected, the ramp generator is triggered and provides the control voltage for the first VCA.

Since LM13600/LM13700 is a dual amplifier the second one is configured as a VCA with manually set control voltage. In the picture below you can see how the circuit works. The top signal is the input signal, the middle signal is the output of the ramp generator and the bottom signal is the trigger.

Lagger Slow Attack Signal

There is a problem with using the ramp generator circuit this way. The capacitor is discharged too quickly when the trigger is interrupted and this causes an audible thump noise when trigger goes off. Looking below at the schematic we can see the discharge current goes through CE junction of Q1.

Speaker delay circuit schematic

We can lower this current by inserting a resistor between ground and Q1’s emitter but in our specific application that will cause an offset and the output will not be totally silent in absence of input signal.

Another way to solve the problem is by paralleling a capacitor with R3 (Q2’s emitter resistor) This will cause a fade out effect and eliminate the thump noise.

Lagger Slow Attack guitar pedal


Below you can find the schematic for the Lagger:

lagger slow attack guitar schematic

U5 shows as TL071 but you need an opamp with higher output current sink capability. Something like HA17358 with 50mA capability is good:


Trigger for the ramp generated is created when the microcontroller detects a signal from guitar. In my last article i have explained a way to rectify and average an analog signal using ADC and software. If the input level is higher than a set threshold level then ramp generator is triggered.

In the first units the middle pot was used to set a sustain period but that was changed to sensitivity control as it proved to be much more helpful.

J1 is a push-button which will generate an interrupt for the microcontroller and provide a true bypass via the SPDT relay.

You will notice some unusual supply voltages. For example the microcontroller’s Vdd is set to GND and Vss to  -5V. This is done in order to provide correct trigger levels and avoid using other active components to shift the level.

Below you can see the PCB for the unit:

Lagger Slow Attack Guitar Effect PCBLagger Slow Attack Guitar Effect PCBLagger Slow Attack Guitar Effect PCB

Here are some pictures with Project Ryu Lagger:

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect

Lagger Slow Attack Guitar Effect


Here is a short video with the unit in action:

I will be supplying the hex file for the PIC18f1320 microcontroller in my next newsletters so if you want to built the unit and your not a subscriber yet please use the top right form to subscribe.

Also in my newsletter you will find offer for kits and complete units for those who don’t do well with electronics.

Thank you for visiting.


LM13600: Noise Gate Project ノイズゲートプロジェクト Part 1

facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

Here is a noise gate module built around LM13600. You can use the newer and better LM13700, i chose LM13600 because i already have a few of them from National Semiconductor. I use these modules to clean up sound in audio surveillance applications but also can be used with music instruments like electric guitars.

LM13600 noise gate project


In the past i was using a FET transistor, mostly 2SK30, as a variable resistor and create a voltage controlled… voltage divider hehe. However better performance comes from using a VCA (Voltage Controlled Amplifier) not to mention the versatility of having the entire module in the form of a integrated circuit.

2SK30 FET noise gate module

2SK30 FET noise gate module

In LM13600 we have two operational transconductance amplifiers giving the posibility to varry the current through the input stage long tail pair. Its input will be a voltage and output will be current so you can find these devices named OTA (Operational Transconductance Amplifier) or VCCS (Voltage Controlled Current Source). They are very handy when you need to adjust gain of an amplifier dynamically.

In a noise gate we want to pass all signal with an amplitude higher than a settable threshold and block all signal with lower amplitude. What we’ll do is take the input signal rectify it, compare the result with our threshold and then modify the gain of the amplifier based on the comparator output.

As a first step i built the VCA around LM13600 as i wanted to check how the amplification works. You can see the schematic (pretty much the one from datasheet) and construction. I was able to trace the gain vs control voltage plot and it shows a pretty linear function.

LM13600 VCA schematic

LM13600 VCA schematic

LM13600 VCA Test

LM13600 VCA Test

Gain vs Control Voltage Plot

Gain vs Control Voltage Plot

Looking at the above chart we can see that if our input signal amplitude is below noise gate threshold then we need to set the control voltage to -15V (with +/-15V supply) and if it is above threshold ideally we will need 15V control voltage.

To rectify the input signal i use a two opamp schematic fairly common discussed on ESP website and other materials. The DC voltage is then compared with our threshold with a LM393 dual comparator. Supply voltage for the LM393 is +/-15V so output will swing close to these values providing the control voltage.

LM393 Dual Comparator

LM393 Dual Comparator

LM13600 Noise Gate Temp Schematic

LM13600 Noise Gate Temp Schematic

Before the rectifier you can see an amplifier, this is used to adjust sensitivity. Threshold is set by R16. C3 C4 are very important as they reduce artifacts caused by ripple in the rectified signal. Even so as it is there are a few issues when the signal level is equal to the set threshold level but solution for this will be presented later.

LM13600 Noise Gate Module


Dual power supply

Dual power supply

The voltage from the LM393 output can be passed through and integrator and thus adjust the attack time. This can be a very cool effect for musical instruments as it provides a swell effect similar to a volume pedal.

Circuit works of course will be improved pretty much in next articles so hope you will visit again. Below you can see a scope trace with TrueRTA (the scope feature is free). You can see pink noise signal and only peaks with an amplitude higher than my threshold are passing through.

Scope view of pink noise through gate


Thank you for visiting.