# KOSMO Audiohacker - looking for mistakes/feedback

**URL:** <https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374>\
**Category:** KOSMO MODULES\
**Created:** [November 25, 2020, 8:53pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374 "2020-11-25T20:53:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [November 25, 2020, 8:53pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/1 "2020-11-25T20:53:53Z")

</div>

Hi, I am trying to build a KOSMO variation of the [nootropic audiohacker board](https://nootropicdesign.com/audio-hacker/). Now I would like some “additional eyes” from you to spot stupid mistakes before I design and order a pcb for it 🙂  
My plan is to use it as a bitcrusher/sample rate reducer and also a freeze module, similar to the [2hp freeze Sam uses](https://www.youtube.com/watch?v=Zvyxk23MKA4&lc=UgjLe9RGjRtajngCoAEC).  
If you have other cool ideas what could be done with a 12bit ADC -\> DAC Arduino, I would love to hear!

I added a TL072 to convert from ±5V to ±2.5V and then exchanged the original opamp for an MCP6004, where I add 1.25V to have a range of 0V to 5V for the ADC. For the output I convert 0V to 5V from DAC to 0V to 10V and then AC couple it to the output. The part for CV and pots is from Mutable Instruments’ grids.

 ![KOSMO_audio_hacker.png-1](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/2X/6/66b033daca492db601178943cb3b9924fd7b392d.png)

It should be a 5cm KOSMO module in the end, it will be quite crowded! The jacksockets and the circle for the big button are just a reference and will be cut out later (will be connected via molex connectors).  
This is just a first idea of how it could look:

 ![Screenshot from 2020-11-25 21-41-25](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/2X/0/0ec18802762eaf80885e839dc88fd1c743a8d9a9.png)

Feedback welcome!! 😀

---

<div class="post-metadata">

**Author:** ![SYNTHGUY57](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/synthguy57/32/14422_2.png) [@SYNTHGUY57](https://lookmumnocomputer.discourse.group/u/SYNTHGUY57)\
**Post date:** [November 25, 2020, 9:39pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/2 "2020-11-25T21:39:15Z")

</div>

wider and notso crowded but love to see it in all phases of construction, great idea there

---

<div class="post-metadata">

**Author:** ![CTorp](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ctorp/32/15023_2.png) [@CTorp](https://lookmumnocomputer.discourse.group/u/CTorp)\
**Post date:** [November 25, 2020, 9:53pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/3 "2020-11-25T21:53:28Z")

</div>

Great module to kosmotize!

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 25, 2020, 10:42pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/4 "2020-11-25T22:42:47Z")

</div>

I haven’t gone over the schematic carefully, but for the layout — Yeah, if it were me, I’d make this 75 mm wide to reduce panel crowding. (I also would put the jacks on the bottom, or on the left side if necessary, but not on the right, but that’s me and my dominant right hand’s personal preference.)

Also “length” is misspelled.

Praising with faint damns here, looks pretty nice!

---

<div class="post-metadata">

**Author:** ![antoine.pasde2](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/antoine.pasde2/32/326_2.png) [@antoine.pasde2](https://lookmumnocomputer.discourse.group/u/antoine.pasde2)\
**Post date:** [November 26, 2020, 3:47am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/5 "2020-11-26T03:47:47Z")

</div>

U5B in channel 2 looks like it’s got its + and - inputs swapped.

Might also want to add negative voltage protection on your inputs. (Q1 and A1 wouldn’t enjoy negative voltages).

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [November 26, 2020, 8:22am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/6 "2020-11-26T08:22:06Z")

</div>

Thanks for the feedback!

> [@analogoutput](#):
>
> Yeah, if it were me, I’d make this 75 mm wide to reduce panel crowding. (I also would put the jacks on the bottom, or on the left side if necessary, but not on the right, but that’s me and my dominant right hand’s personal preference.)

Hm… 75mm could be a good compromise, I did not want to make it 100mm, but maybe 50mm is too dense… I wanted it to be small, because I would like to be just a small effect that I can put in where I still have some space in the case 😉 I will make a file for the panel and see how it looks without all the “invisible” components.  
For the left-right stuff: I am left-handed, so I prefer it this way, but maybe I can work out a symmetrical version.

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [November 26, 2020, 8:22am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/7 "2020-11-26T08:22:21Z")

</div>

> [@antoine.pasde2](#):
>
> U5B in channel 2 looks like it’s got its + and - inputs swapped.

great catch! thanks!

For reversal protection, would you replace the 10 ohm resistors with diodes (which?) or would you add diodes to ground?

---

<div class="post-metadata">

**Author:** ![ChristianBloch](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/christianbloch/32/56_2.png) [@ChristianBloch](https://lookmumnocomputer.discourse.group/u/ChristianBloch)\
**Post date:** [November 26, 2020, 10:54am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/8 "2020-11-26T10:54:22Z")

</div>

1N5817. I always put those in in stead of the resistors when I can.

---

<div class="post-metadata">

**Author:** ![fredrik](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/fredrik/32/682_2.png) [@fredrik](https://lookmumnocomputer.discourse.group/u/fredrik)\
**Post date:** [November 26, 2020, 11:17am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/9 "2020-11-26T11:17:34Z")

</div>

> [@sebastian](#):
>
> For reversal protection, would you replace the 10 ohm resistors with diodes (which?) or would you add diodes to ground?

There’s quite a few options, some better than others:

> [@Typical module power circuit](https://lookmumnocomputer.discourse.group/t/typical-module-power-circuit/1134/3):
>
> Different schools: 10 ohm and capacitor near power header (this basically results in an RC low pass filter, but with a voltage drop over the resistor depending on the current). Usually somewhat pointless (the resistors, not necessarily the capacitors). 10 ohm without capacitors (either using them as fuses, expecting them to die if something’s shorted, or possibly just cargo culting, trying to do the above but forgetting how things work, see “power sins” [here](https://northcoastsynthesis.com/news/design-mistakes-in-synth-schematics/) for more). Ferrite beads (if done …

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 26, 2020, 12:39pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/10 "2020-11-26T12:39:52Z")

</div>

You’re probably aware that isn’t what @antoine.pasde2 was referring to in his comment about negative voltages, but just in case, it isn’t. It was about protecting components against negative input voltages.

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [November 26, 2020, 12:53pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/11 "2020-11-26T12:53:14Z")

</div>

Oh, no I misunderstood that! Thanks for pointing it out!  
For the Arduino I think it is pretty safe, because there is the MCP6004 before the inputs, which limit the voltage due to the rails. But for the trigger input I don’t know what happens if I put in negative trigger voltage… will the transistor blow up? The part is from some other schematic (probably also Mutable Instruments) and I have not yet seen any protection for triggers. Or are you talking about something else still?

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 26, 2020, 1:13pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/12 "2020-11-26T13:13:51Z")

</div>

I think you’re correct that the audio input on the Arduino is safe, but the CV inputs are not.

I’m not sure about the transistor, I did basically what you did on dac/ino (taking it from the Synapse project it was based on). But I guess the emitter-base breakdown voltage is 6.0 V and that can be exceeded if the input goes much below -6 V?

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [November 26, 2020, 1:18pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/13 "2020-11-26T13:18:03Z")

</div>

But CV inputs go through the MCP6004 as well, this is the CV circuit from MI grids, where the CV is offset by the potentiometer. The output of the MCP6004 can never go beyond its rails (0V and 5V). 🙂  
At least this is how I understand it, maybe I have mixed up my labels?

---

<div class="post-metadata">

**Author:** ![analogoutput](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/analogoutput/32/29663_2.png) [@analogoutput](https://lookmumnocomputer.discourse.group/u/analogoutput)\
**Post date:** [November 26, 2020, 1:20pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/14 "2020-11-26T13:20:34Z")

</div>

Sorry, didn’t notice that op amp was not on ±12 V rails!

---

<div class="post-metadata">

**Author:** ![antoine.pasde2](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/antoine.pasde2/32/326_2.png) [@antoine.pasde2](https://lookmumnocomputer.discourse.group/u/antoine.pasde2)\
**Post date:** [November 27, 2020, 9:32pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/15 "2020-11-27T21:32:43Z")

</div>

> [@analogoutput](#):
>
> Sorry, didn’t notice that op amp was not on ±12 V rails!

Same here, I hadn’t noticed that, sorry. Those inputs should be OK.

As for the trigger input, to quote the excellent web site [Design mistakes in synth schematics - North Coast Synthesis Ltd.](https://northcoastsynthesis.com/news/design-mistakes-in-synth-schematics/)

“The problem is, what happens on a _negative_ input voltage? Then the transistor’s base-emitter junction is reverse-biased. For small negative voltages, no problem, it just won’t conduct. But the absolute maximum reverse voltage rating for a 2N3904 transistor is 6.0V (even less for some other common transistors). Apply more than that much negative input and it will go into Zener or avalanche breakdown, passing current in the reverse direction. The current will be kept small by the 100k series resistance, but the transistor isn’t designed for it and may be permanently damaged. This input cannot safely accept a voltage below -6V. A quick fix would be to add a basic switching diode, like a 1N4148, from ground to the transistor base, to pass any reverse current and prevent the transistor’s base-emitter junction from seeing a larger negative voltage.”

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [December 1, 2020, 10:46am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/16 "2020-12-01T10:46:33Z")

</div>

That website really has good resources on how to improve your design!

Would it be bad to put components on top of each other on different sides of the board? Like this:

 ![Screenshot from 2020-12-01 11-43-33](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/2X/0/0f0623228f536bf3427dae30203390241319bb3b.png)  
I can save some space like this, the Arduino will be socketed on the backside, so there is space in the z-axis. But maybe bad practice?

---

<div class="post-metadata">

**Author:** ![telec16](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/telec16/32/4510_2.png) [@telec16](https://lookmumnocomputer.discourse.group/u/telec16)\
**Post date:** [December 2, 2020, 10:24am UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/17 "2020-12-02T10:24:37Z")

</div>

Not really a bad practice, it’s just harder to debug. But I to that quite often !  
The only thing to take care of is to separate well enough the digital and analog circuits (try not putting an opamp under the Arduino).

---

<div class="post-metadata">

**Author:** ![sebastian](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/sebastian/32/39_2.png) [@sebastian](https://lookmumnocomputer.discourse.group/u/sebastian)\
**Post date:** [December 2, 2020, 3:32pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/18 "2020-12-02T15:32:10Z")

</div>

Good to hear! These are memory chips, so no problem there, but I have some of the audio traces crossing paths with die digital (SPI) traces… I should probably improve that, right?

 ![Screenshot from 2020-12-02 16-28-44](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/2X/8/820d241e8f2294a0c5569f5562d5c6ace1063a6e.png)

Upper left IC is ADC (MCP3201), upper right is opamp (MCP6004), Bottom left is opamp (tl072) and bottom right is DAC (MCP4921).  
This stuff makes routing pretty hard! xD

---

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://lookmumnocomputer.discourse.group/u/eric)\
**Post date:** [December 2, 2020, 3:36pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/19 "2020-12-02T15:36:56Z")

</div>

If they are crossing at a right angle there shouldn’t be any problem.  
Problems arise when analog and digital run parallel close together.

---

<div class="post-metadata">

**Author:** ![telec16](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/telec16/32/4510_2.png) [@telec16](https://lookmumnocomputer.discourse.group/u/telec16)\
**Post date:** [December 2, 2020, 3:41pm UTC](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374/20 "2020-12-02T15:41:29Z")

</div>

It depends on a lot of factors, but to avoid crosstalk you can:

- Use only high level/low impedance audio signal when near digital one (especially clocks)
- Separate traces with ground
- Only cross traces perpendicularly, do not route traces parallel together, even is they are not on the same side of your PCB

[Next page](https://lookmumnocomputer.discourse.group/t/kosmo-audiohacker-looking-for-mistakes-feedback/2374.md?page=2)
