vrijdag 25 november 2022

Mosha Eurorack Modules #10: I/O Module (Head phone output and MIDI input)

 

The I/O Module is a 6 HP module that provides some input and output facilities. The black knob is a double potentiometer that controls the left and the right channels. If a cable is plugged into the gold jack it will be either the left channel or both channels, and a cable plugged into the purple jack will be the right channel. The output is a TRS jack with the black dial controlling the volume. It uses two NE5532 OPAMP, one for each channel. The input voltage is divided by 5 using a resistor network. Because a dual voltage system is used, there is no output capacitor to normal the voltage.

The bottom six jacks are all MIDI related. The MIDI input is fed to the board from the rear of the box using a special conversion circuit (shown below. The 10k resistor in this circuit is essential and occasionally missing in online versions of this circuit). The optocoupler prevents ground loops through the MIDI cable and is required by the MIDI protocol for receiving data. There are two headers on the module, one to provide power to this circuit and one to transfer the MIDI signal to the PIC16F690 that is used to convert the MIDI.

The PIC16F690 was chosen because it has an USART (for MIDI) an analog input and a PWM that can be used as an analog output, and it can be programmed by the PICkit 2. The MIDI outputs are, in order: CV out for MIDI notes played on channel 4. The gate signal of these MIDI notes. The clock signal of the MIDI, and three drums from channel 10. The source code for the MIDI is available here.

To ensure a quick response to frequency changes the PIC16F690 is running at 20Mhz, which also allows 10-bit accuracy. There's a two pole active filter to prevent the PWM signal from interfering with the output, and a small trim potentiometer that allows setting the output voltage from 1x to 2.1x (10k with 9.1k non-inverting OPAMP, which may not be enough).



woensdag 23 november 2022

Mosha Eurorack Modules #9: Double Mixer

 

The double mixer is a 6 HP module that, as the name implies, has two mixers: a golden one and a purple one. As usual, round jacks are inputs, and hexagonal ones are outputs. The golden mixer has two inputs, one that can be attenuated and one that is fixed. It also has one non-inverting output. The circuit is basically an inverting OPAMP for the mix part, and a second OPAMP to invert the signal again. The jack has +5V by default, so the mixer can be used to provide a 0V to 5V signal if it isn't used for anything else.

The purple mixer has all the features of the golden mixer, but in addition it has a third input so it can mix three signals together, and it has an output at the inverted stage. This means it can be used to provide both a 0V to 5V signal and a 0V to -5V signal if no other signals are mixed. It can be combined with the golden mixer for a 0V to 10V and a 0V to -10V signal, if desired.

maandag 21 november 2022

Schematic of the Decay and the Metallic oscillator

 Turns out I had a schematic made of the decay, which is included here:


As well as one of the metallic oscillator, which is here:





zondag 20 november 2022

Mosha Eurorack Modules #8: Drum Module

 

The Drum Module is a 6 HP module with 4 different sound generators. The silver knob is for metallic sounds, with 5 separate oscillators. The knob controls both the decay (middle is highest decay) and filter (right is highest filter) of the sound. Each time a cable is plugged into the jack it will randomize the oscillator values, so the sound can be changed by replugging the cable.

The black knob is for a noise generator adding short bits of noise to other drums. Again the knob controls both decay and filter. The two gold knobs are for the two tom drums. The knobs control the pitch, whereas the purple knob controls the decay of the two toms (making one shorter makes the other longer). There is one output jack at the bottom, and four trigger jacks above it.

The circuits for each of the drums are different. The silver knob uses a PIC10F206 to generate the sound (source code). One of the pins of the PIC10F206 powers an one-transistor inverter with a capacitor, which allows a very clean decay to occur. This is then pushed through a TL074 OPAMP for both filtering and buffering, and then moved to a final inverting amplifier that sums the signals of the four drums with a 100k Ohm input. Since the metallic sounds can be quite loud there's also a trim potentiometer to adjust the level.

The black knob uses the standard noise circuit of the beat box instructable. There is a separate OPAMP to amplify the result. The decay is done using a JFET with a circuit from squarewav. This is not the best circuit, even with careful selection of resistors the decay is cut off rather early.

The tom drums are based on the simple twin T-drum design from Krakenpine. It was simplified even more by removing the tone and distortion parts and not massaging the input signal (because it will always come from the drum sequencer).

zondag 13 november 2022

Mosha Eurorack Modules #7: Drum Sequencer

 

The drum sequencer is a 6 HP module that sequences drums. It was intended for the drum module, but could be used for anything that needs a fixed pattern of gates over a 15 or 16 step period. There are 8 outputs, each with a different rhythm. There are lights behind the jacks that show the pattern before a cable is plugged in. This makes it clear which plug is which pattern, but avoids additional power use while the pattern is used.

The patterns themselves are chosen using a switch. In the middle position it will use the standard 16 beat patterns. In the down position it will use the standard 15 beat patterns. In the up position it will randomize the patterns once, and then use the randomized patterns. This pattern is stored in memory, so after a restart the pattern will remain the same.

There is one input, which is the clock. This determines the speed at which the beats happen. Beats can happen on clock up and on clock down, which means that the outputs can be twice as fast as the inputs when needed.

There is an ICSP connector at the back that allows the rhythms to be changed. The circuit is exceptionally simple: it is a 16F684 and all gates are connected using a 1k resistor. It therefore relies on the diodes in the PIC16F684 to prevent damage, but this generally isn't a problem.

The source code is available here.

zaterdag 12 november 2022

Mosha Eurorack Modules #6: VCF


The VCF is a 6 HP module that has an LM13700 based filter using a mixture of designs by Look Mum No Computer, RĂ©ne Schmitz and Moritz Klein. It is nearly 1V/oct, but not quite, but the voltage control circuit is simpler than most. There is a -12V to 12V offset that can be added manually to the CV input, and a separate knob for resonance. There are two inputs. The entire VCF part is using the gold colors, the purple colors are a separate filter that isn't voltage controlled, but uses a two-colored LED for a more gritty response in the feedback loop. It also uses 10nF instead of 1nF capacitors.

A full circuit diagram is included in this blog post, however, this may not exactly match the built version and there may be errors in it. Although multiple circuits suggest to use the buffers internal to the LM13700 there is some trouble making sure that they are offset correctly, and it is therefore easier to use the TL074. This also provides a cleaner sound. 



vrijdag 11 november 2022

Mosha Eurorack Modules #5: VCO

 

The VCO is a 6 HP module that has a CEM3340 based design. The first input is the linear FM input. The gold input is the 1V/oct (which can be controlled with the golden knob). The third input is the soft sync. The purple input is the PWM modulation, which can be attenuated with the bottom knob and separately controlled with the middle knob. From top to bottom the outputs are the sawtooth wave, the pulse wave and the triangle wave. The sawtooth wave is at 10Vpp the other waves are louder and softer (they are buffered, but not amplified copies from the original CEM3340 output).

The design of this is a mix. It uses the basic and advanced schematics from Look Mum No Computer, the variety of schematics on the electric druid site, and the schematic from Non-Linear-Circuits.

As you can see, there is only one input (which may have been a mistake) there is no high frequency tracking. When in doubt, the design choses the simplest solution, however, the FM input and sync input were kept.

donderdag 10 november 2022

Mosha Eurorack Modules #4: Double VCA

 


The double VCA is a 6 HP module that has two VCA circuits and a mixing circuit. The two VCA (gold and purple) are identical and organized vertically. The VCA level is only controlled by CV, the knobs are part of the mixer that mixes the VCA with a third input.

The circuit is based on the vintage VCA of electric druid. It uses the "more practical current source" as described there, since no mixing of current sources is needed.

The mixer is a simplified version of the Doepfer A-100 do-it-yourself page. It doesn't have the part that inverts it back to normal and it doesn't have an offset voltage. In fact, it doesn't even have a knob to control the volume of the third input.

woensdag 9 november 2022

Mosha Eurorack Modules #3: Attack/Release and Decay


 The Attack/Release and Decay is a 6 HP module, that, as the name implies, as an Attack/Release section and a Decay section. The output voltage is 8V to 0V. The Decay (in purple) accepts either triggers or gates as inputs, the Attack/Release (in gold) section requires a gate input.

There are are knobs to control the Attack, Release and Decay, and two red LED indicating the current voltage on each. There is also a single CV input for the Attack/Release section. A positive voltage will affect the Attack (the higher the voltage, the shorter the attack) and a negative voltage will affect the Release (the lower the voltage, the shorter the release). At 0V the CV doesn't influence the outcome.

The circuit diagrams shown are mostly used for the simulations, the actual diagrams are slightly more complicated. However, they give an idea on how things work. The Decay takes the gate input which is low-pass filtered by a large capacitor and a potentiometer. A diode prevents it from triggering negative voltages and the output is buffered. There is a second buffer for the LED.

The Attack/Release circuit diagram is even less complete, as it doesn't show how the potentiometers are individually connected to the outputs of the microcontroller in order for them to be controlled separately. 

In order to ensure that there is a clean input for both the Decay and the Attack/Release there is a PIC10F206 microcontroller that accepts the messy input signal and cleans it up. For the Decay this means converting a short trigger into a longer gate output and ensuring that the capacitor is discharged quickly (over a 100 Ohm resistor) when the signal needs to be reset. The source code is here for the Decay and here for the Attack/Release.

The reason for a micro-controller solution was to have more control over the outputs and how they work. However, a solution using an OPAMP in comparator mode would work equally well (or even better, as it would allow higher voltages without amplification, which could be done using the buffer. The CV control was done using a light sensitive resistor and an LED, with the LED being hooked up to the CV. By having one LED forward and one LED backward it was possible to control both with a single jack.




maandag 7 november 2022

Mosha Eurorack Modules #2: CV Sequencer

 

The CV Sequencer is a 6 HP module that, as the name implies, sequences control voltages in the range of 0V to 10V in either 15 or 16 steps. The switch has three settings: 15 step playback (top), 16 step playback (middle) or record (bottom). Record mode can also be activated using a CV in the top right jack, so it can modify its own content.

The yellow button can be used to step through, and the jack next to it allows an external clock signal as well. The purple jack is the actual CV that is recorded, but a manual voltage can be supplied with the dial.

Outputs are hexagonal, and the purple output is the actual CV output. The jack next to it is the gate output, which normally should follow the clock. Below are the two indicator LED. The right indicator cycles through 8 different colors for 8 of the 16 steps, the magenta LED on the left has two purposes: it both tracks the other 8 steps, and the fact that the module is in record mode.

The sequencer is built around the PIC16F684 microcontroller with the following pin configuration:

Analog input: voltage to be sampled (RA0, pin 13)
Digital input: clock (RA2, pin 11)
Digital input: write (RA3, pin 4)
PWM output: voltage result (RC5, pin 5)
Gate out (RA1, pin 12)
LED out (RC0, RC1, RC2, RC3, pin 10, 9, 8, 7)
Rhythm select in (RC4, pin 6)
20 MHz crystal: RA5 (pin 2) RA4 (pin 3)

The inputs are merely protected by resistors, there are no protection diodes. The ones inside the PIC16F684 work well enough. The analog input has a jumper that allows halving the voltage using a 1% resistor ladder and buffered to ensure that the impedance is below 10k. 

The PWM output goes through a two-pole RC (100k, 4.7nF) filter network with buffer where the second stage of the buffer is shown in the circuit below. It has a trim pot at the bottom of the module that allows the output to be amplified by 1x to 2.1x. As usual, all OPAMP are the TL074, not the TL081.

The jumper and the trimpot together allow the sequencer to work with a highly accurate 0-5V or a slightly less accurate 0-10V.

The code for the sequencer is available here. The analog imput is sampled multiple times and averaged, to ensure that the lower bits of the value are accurate as well.

zondag 6 november 2022

Mosha Eurorack modules #1: Triple LFO

The triple LFO is a 6 HP module that, as the name implies, as three LFO. 
  • The silver LFO has a -5V to 5V triangle output, a -5V to 5V square wave output and a 0V to 5V square wave output and has a medium speed (~2s to 0.2s).
  • The purple LFO only has a -5V to 5V triangle output and a slow speed (~20s to 2s).
  • The golden LFO has a -5V to 5V triangle output that can be attenuated with the second knob, and a 0V to 5V triangle output. Each of the LFO has an LED indicator that switches between red and green.
The design is based on the Simple LFO design from David Haillant. Modifications include having three different capacitor values, the replacement of the lower bound resistor with a 1.5k instead of a 470 Ohm resistor and having a fixed output path. What wasn't fixed is the missing 1k Ohm resistor at the output, so shorting the LFO can cause it to reset. For the 0V to 5V square wave a diode was added and a pulldown resistor.

For the 0V to 5V triangle wave the circuit below was added, which basically is an inverting amplifier that adds approximately -5V to the output of the LFO. This causes the LFO to fluctuate between -10V and 0V. The amplifier divides this by 2 and inverts it, resulting in 0V to 5V. Although the circuit mentions the TL081 the entire LFO was built using TL074.


woensdag 4 mei 2022

Building my own Eurorack module

 For my birthday I got a NiftyCase with various modules, and I also bought a Mr Phil Ter and a Monsoon for it. However, it lacked envelopes. I started looking for possible solutions, On my youtube channel you can see a bit more about the synthesizer, here I will describe the design and making of the module. The basic circuit I came up with is as follows:

There's two inputs and an output, one of the inputs is the gate signal, which starts the decay, and the other is the control voltage, which uses and LED to control a photoresistor which is in parallel with a potentiometer, both of which control the length of he decay. The output is multiplied by a certain amount (currently 1.55x, but I may go back to the idea of multiplying by 2x as in the circuit above.

The 85k resistor was changed to 1M, and I added a LED and 470 resistor to show the decay working after the OPAMP (an TL072). This circuit worked, but unfortunately most gate signals are terrible, so I had to add a special PIC10F206 circuit to clean that up. This circuit also discharges the capacitor quickly between uses, avoiding a wait time that was necessary otherwise.

The only improvement still needed is handling of triggers: if the gate signal is too short I want to change the behavior into a release instead of a decay, possibly with a check that the output signal has grown small enough.

Here is what it looks like on the outside, which required some drilling, which was definitely a new experience, and quite scary.

By now I learned that the CEO of the company that makes these specific panels isn't a very nice person, so I may have to reconsider my purchasing strategy here.


zaterdag 19 februari 2022

Syncing the Arturia MicroBrute with the Pocket Operator 32

 Today I wanted to do the reverse of the previous project: having the Arturia MicroBrute control the Pocket Operator 32. This is relatively easy (one video states it takes only 17 seconds) by just hooking up the MicroBrute's Gate Out to the Pocket Operator Sync In, but as I previously mentioned the issue here is that the output is 10V peak-to-peak and the input is 5V peak-to-peak maximum. It still works, which is great, but there have been reports of Pocket Operators freezing at certain battery levels and in general it isn't a good idea to run something out of specification.

Fortunately the circuit I made has a very lenient input, and can also be used to convert the 10V of the MicroBrute into the 5V necessary for the Pocket Operator. I plugged everything in, switched the PO-32 to sync mode 2, and everything worked fine.

You can see it working in the following video:



vrijdag 11 februari 2022

Soldered version of the PO-32 to Arturia MicroBrute sync

 As I still had a few prototype PCB boards I decided to make a soldered version of the syncer I previously designed. I added a power plug to it, so I can splice the power off the MicroBrute into this circuit. The power circuit is the usual LM7805 implementation seen elsewhere on this blog. As you can see from the pictures, my soldering skills haven't improved, but they suit the purpose, which is to make a nearly unbreakable version of the board.



I like my trick of putting the connectors at the edge of the board like this, so I don't need to drill larger holes for the pins. I chose pink for the connector to the PO-32 because Teenage Engineering sounds more playful, and because that plug is red, so I know what to match it to. Next will be to set this up and start making a song with it.

There was one soldering mistake that I had to fix, a blob of solder had fallen between two of the lines. This caused the circuit to just play a single note initially. But with my multimeter it was easy to figure out.

woensdag 9 februari 2022

Video for the PO-32 to MicroBrute sync project

I made a short video showing how the sync circuit of the previous post works:



I've not made many of such videos yet, and I clearly need some work on figuring out how to set this up better, but hopefully it shows the most important aspects.

The details are as follows:

  • 3.5mm stereo male to two 3.5mm mono male splitter cable, one goes to the circuit as shown, the other to a MouKey MAMX3 mixer.
  • The PO-32 is in SY1 mode, which can be done using the * button combined with the BPM button.
  • The Arturia MicroBrute is in "gate" mode, this can be configured with the program on a PC hooked up through the USB port.
  • The Arturia MicroBrute has a recorded sequencer pattern, ideally with a length matching the drum pattern (16 beats, usually).
  • The first note of the pattern will be the note played on the keyboard.

In the schematic the 100k Ohm resister IS the Arturia MicroBrute. There is no need to actually put the resistor in the circuit. I added it to aid the simulation.

maandag 7 februari 2022

Pocket Operator (PO-32) to Arturia Microbrute sync

Two birthdays ago I received an Arturia Microbrute which I did very little with so far. Instead I worked on a system combining a Yamaha CS, the Pocket Operator PO-32 by teenage engineering and a TASCAM digital recorder/mixer. However, lately I've become interested in Eurorack modular synthesizers and I discovered that the Arturia Microbrute has some (quite limited) patch options. I also became curious whether it would be possible to include the PO-32 into the modular system and discovered that it has a sync signal, both going in and out and I was curious if I could use this to have the PO-32 control the Arturia Microbrute.

The Internet has quite a few resources here, most of which have the Arturia Microbrute's Gate Out connected to the sync in from the pocket operator (e.g. https://www.youtube.com/watch?v=WIobsEA-_cA). Although this seems to work, if you research it closer there are some warnings here. The Arturia Microbrute's Gate Out is rated 10V peak-to-peak, whereas the pocket operator manual states that the sync signal should not exceed 5V peak-to-peak. From all the youtube videos on this it seems it usually works, and definitely doesn't destroy the pocket operator, but there are reports of the pocket operator freezing at certain battery levels. I suspect this all can be easily voided with a resistor network, and I'll work on that soon. However, I was more curious whether it was possible to have the Microbrute get the sync signal from the Pocket Operator through the Gate In.

Unfortunately the Gate In of the Microbrute expects a 5V peak-to-peak minimum (I suspect it can handle up to 12V) and the Pocket Operator seems to output not more than 1V, as shown on p0k3t0's blog. As you know, I faced a problem like this in the past with the RS-232 conversion for the PIC microcontroller, and I thought that I could use the same circuit here. Unfortunately the RS-232 conversion also required an invert, which is not useful here, so I decided to link two together to form the following circuit:

I'm sure a smaller version is possible, but as shown it is very lenient, it's very accepting to different voltages, and the output's voltage is basically whatever voltage you run the circuit at. 4.5V seems to be enough for the Arturia Microbrute, though.

 

Here is a picture of the working prototype I made. I can make a video later.

I used circuitlab to make this circuit diagram, also because it allows you to simulate the result:

It shows that a 0V input voltage results in a 0V output, and a 1V input results in a 4.5V output. When you change the voltage of the circuit to 12V it will adjust accordingly.

The simulator also allows me to measure current usage, which is 2.3mA, which seems acceptable.