Skip to the content
2 layers50 × 128.5 mmTCE, the printed circuit board in 3D

The Two Comparator Effect. Originally designed by Rob Schafer, later improved by cyberboy666, and now turned into a Eurorack module by Octovolt.

Size
50 × 128.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
58
Nets
28
Pads
124
Tracks, vias
171, 2
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
31 Dec 2023
Updated
16 Jan 2024

Overview

TCE is an open-source printed circuit board by octovolt, from the octovolt/TCE repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 50 × 128.5 mm with 58 parts on 28 nets, routed with 171 tracks and 2 vias.

It is built around the L78L05CZ, LM317 and LM339. Its parts include 16 resistors, 8 capacitors, 3 ICs, 3 diodes and 3 connectors. It belongs with the audio and music boards of this library.

Main components

3

README

README.md

TCE: Two Comparator Effect

This is a Eurorack version of the two_comparator_effect originally designed by Rob Schafer and later improved by cyberboy666. I communicated with cyberboy666 before publishing this module and received his blessing to do so.

The circuit compares the voltage of a composite video signal to two different threshold voltages to produce two binary signals. That is, if the video signal is brighter than the threshold, the output is "high" or white. If the video signal is darker than the threshold, the output is "low" or black. One of the binary signals is sent out at a lower voltage level than the other, so the mixed output of both signals is white, gray and black.

A demo video is available if you would like to see the module in action. The video shows a version that used tall trimmer pots instead of the more robust Alpha 9mm pots in the BOM, but it is otherwise identical.

The LM339 Comparator

It's worth noting that this circuit uses an LM339 comparator, which is not quite fast enough for video. The LM339 has a response time of about 1.3 microseconds, and we really need a response time below 83 nanoseconds for video. As a result, the resulting video image is slightly shifted to the right. This is not an issue unless your are mixing the output with the original signal in some way. Even then, the offset sort of looks interesting. I will say this for the LM339: it's very cheap, easy to find, and it comes in a quad through-hole package. Unfortunately, with the way through-hole components are going extinct, there aren't a lot of other great options in a quad package.

Build Guide

When soldering, please also see the interactive BOM. After soldering a component, make sure to trim the excess leads as much as possible. This is particularly important where the potentiometers sit over the top of solder pads for other components.

Steps:

  1. Solder all resistors and the D1 diode on the primary, back side of the circuit board (the side with the open source hardware logo). I call this the back side because it faces away from the front panel. D1 says 1N914 on the BOM but this can be replaced by a 1N4148 or 1N5819. I use a 1N4148 in all of my builds. Make sure to get the polarity correct when you place diodes! The line on the circuit board should match the stripe on the diode.
  2. Solder the diodes and ferrite beads on the front side of the board. D2 and D3 are the standard Eurorack reverse polarity protection diodes. I use 1N4004, but you can use any diode in the 1N400x series. Once again, do make sure to get the polarity correct when you place the diodes.
  3. Solder the ceramic capacitors on the back side of the board.
  4. Solder the socket for the IC, if you want to one. People say it introduces extra capacitance, but it's probably no big deal in this circuit. A socket will protect the IC and make it reusable in other projects.
  5. Solder the transistor and voltage regulators (U2, U3, Q1). Make sure they are facing the correct direction as indicated on the circuit board.
  6. Solder the power headers. Please note that a shrouded, keyed power header will be very slightly too wide for a 4hp module (fractions of a millimeter) so you should probably use normal header pins here. The PCB is marked to indicate where the -12v (red stripe) of the power cable should go.
  7. Solder the electrolytic capacitors. Mind the polarity -- the white side of the circle on the circuit board is the negative side of the capacitor.
  8. Place but do not solder the jacks, knobs and switch on the front side of circuit board.
  9. Place the front panel over the jacks, knobs and switch, and then use their nuts to attach them to the front panel.
  10. Solder the jacks, knobs and switch.
  11. If you used an IC socket, put the IC in the socket. If you did not use a socket, solder the IC now. Mind the polarity -- the small semi-circle on the board should match the notch on the IC.
  12. Test and enjoy!

3DView1

3DView2

Parts

58
QtyValueFootprintReferences
31uCapacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mmC1, C2, C3
2clipboard:a33ce409-be4c-4978-ba5b-21cf3ff8b76a,
210uCapacitor_THT:CP_Radial_D5.0mm_P2.50mmC5, C6
21kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R15
21k_potPotentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_VerticalRV1, RV2
21n4007Diode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD2, D3
23kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R5
275Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR8, R10
2910Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R7
2Ferrite BeadResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalFB1, FB2
2Val**Graphics:octopus_silk_screenRef**, Ref**
2rcaVideo:tht_vertical_rcaJ1, J2
1.33uCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC11
10.1uCapacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mmC4
10.1uCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC12
11.2kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3
11.5kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR14
1100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR16
1150kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR9
1180Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR13
11n914Diode_THT:D_A-405_P7.62mm_HorizontalD1
12N3904Package_TO_SOT_THT:TO-92_HandSolderQ1
147Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR11
1470Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR12
1680Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR6
1L78L05Package_TO_SOT_THT:TO-92_HandSolderU3
1LM317Package_TO_SOT_THT:TO-92_HandSolderU2
1LM339Package_DIP:DIP-14_W7.62mm_LongPadsU1
1SW_DPDT_x2lib:dpdt_mini_toggle_switch_taydaSW1
1europowerConnector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_VerticalJ3

The 43 most common of 58 parts.

Similar boards

  • 2 layers160 × 135.3 mmMotor Control, the printed circuit board in 3D

    Motor Control

    mttb-aarhustech/Motorcontrol_PCB

    Motorcontrol PCB AARHUS TECH

    123 parts
  • 2 layers95 × 55 mmLogic probe, the printed circuit board in 3D

    Logic probe

    sjm42/electronics

    Various electronics projects

    103 partsApache-2.0
  • 2 layers100 × 35 mmTwo comparator effect, the printed circuit board in 3D

    Two comparator effect

    cyberboy666/two_comparator_effect

    analog video posterisation effect - adapted from a rob schafer design

    34 parts15GPL-3.0
  • 4 layers104.1 × 99.1 mmISA ES1868, the printed circuit board in 3D

    ISA ES1868

    hkzlab/ES1868_ISA8

    ISA 8bit sound card based on the ES1868F sound chip, providing Sound Blaster PRO and OPL3 compatibility in a highly integrated package

    120 parts88
  • 2 layers50.8 × 38.1 mmLk201, the printed circuit board in 3D

    Lk201

    pkoning2/lk201emu

    Emulate DEC LK201 keyboard using a standard PC USB keyboard

    19 parts56BSD-2-Clause
  • 2 layers104 × 73 mmArdf tx, the printed circuit board in 3D

    Ardf tx

    hmatuschek/ardf-tx

    Schematics and firmware for simple ARDF transmitter.

    55 parts5
  • 2 layers32 × 19 mmFan controller, the printed circuit board in 3D

    Fan controller

    flaviut/fan-controller

    a automatic temperature-sensing fan controller

    21 parts2
  • 2 layers99.1 × 99.1 mm4op drum module rev2, the printed circuit board in 3D

    4op drum module rev2

    vk2gpu/4op_drum_synth

    OPL3 based 4-op drum synth module

    117 parts2

Questions

How big is the TCE PCB?

It measures 50 × 128.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the TCE use?

58 parts, built around the L78L05CZ, LM317 and LM339. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the TCE KiCad files?

From the octovolt/TCE repository on GitHub, at the commit this page was made from: the board is TCE.kicad_pcb and its schematic TCE.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the TCE design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).