

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
3L78L05CZ
TO-920℃~+125℃ 100mA 30V 40uV 49dB@(120Hz) 5V Fixed Over Temperature Protection、Short Circuit Protection Positive TO-92 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSSTMicroelectronicsPower Management - SpecializedLM317
SOT-223-40℃~+85℃@(Ta) 0.003%Vout 1 1.3V~37V 1A 40V 80dB@(120Hz) Adjustable Positive Short Circuit Protection、Thermal shutdown SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSJSMSEMIVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsLM339
SOP-140℃~+70℃ 1.1mA 1.5mV 150ns 2.3nA 2V~32V 32V 57nA DTL、TTL、CMOS Four channels Open Collector SOP-14 Comparators ROHSJSMSEMIComparators
README
README.mdTCE: 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:
- 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.
- 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.
- Solder the ceramic capacitors on the back side of the board.
- 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.
- Solder the transistor and voltage regulators (U2, U3, Q1). Make sure they are facing the correct direction as indicated on the circuit board.
- 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.
- Solder the electrolytic capacitors. Mind the polarity -- the white side of the circle on the circuit board is the negative side of the capacitor.
- Place but do not solder the jacks, knobs and switch on the front side of circuit board.
- Place the front panel over the jacks, knobs and switch, and then use their nuts to attach them to the front panel.
- Solder the jacks, knobs and switch.
- 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.
- Test and enjoy!
Parts
58| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 1u | Capacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mm | C1, C2, C3 |
| 2 | clipboard:a33ce409-be4c-4978-ba5b-21cf3ff8b76a | , | |
| 2 | 10u | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C5, C6 |
| 2 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R15 |
| 2 | 1k_pot | Potentiometer_THT:Potentiometer_Alpha_RD901F-40-00D_Single_Vertical | RV1, RV2 |
| 2 | 1n4007 | Diode_THT:D_DO-41_SOD81_P7.62mm_Horizontal | D2, D3 |
| 2 | 3k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R5 |
| 2 | 75 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R8, R10 |
| 2 | 910 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4, R7 |
| 2 | Ferrite Bead | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | FB1, FB2 |
| 2 | Val** | Graphics:octopus_silk_screen | Ref**, Ref** |
| 2 | rca | Video:tht_vertical_rca | J1, J2 |
| 1 | .33u | Capacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mm | C11 |
| 1 | 0.1u | Capacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mm | C4 |
| 1 | 0.1u | Capacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mm | C12 |
| 1 | 1.2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3 |
| 1 | 1.5k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R14 |
| 1 | 100 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R16 |
| 1 | 150k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R9 |
| 1 | 180 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R13 |
| 1 | 1n914 | Diode_THT:D_A-405_P7.62mm_Horizontal | D1 |
| 1 | 2N3904 | Package_TO_SOT_THT:TO-92_HandSolder | Q1 |
| 1 | 47 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R11 |
| 1 | 470 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R12 |
| 1 | 680 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R6 |
| 1 | L78L05 | Package_TO_SOT_THT:TO-92_HandSolder | U3 |
| 1 | LM317 | Package_TO_SOT_THT:TO-92_HandSolder | U2 |
| 1 | LM339 | Package_DIP:DIP-14_W7.62mm_LongPads | U1 |
| 1 | SW_DPDT_x2 | lib:dpdt_mini_toggle_switch_tayda | SW1 |
| 1 | europower | Connector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_Vertical | J3 |
The 43 most common of 58 parts.
Similar boards
- 2 layers160 × 135.3 mm

- 2 layers95 × 55 mm

- 2 layers100 × 35 mm

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 mm

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 mm

Lk201
pkoning2/lk201emu
Emulate DEC LK201 keyboard using a standard PC USB keyboard
19 parts56BSD-2-Clause - 2 layers104 × 73 mm

- 2 layers32 × 19 mm

- 2 layers99.1 × 99.1 mm

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).