# Yes? No? Maybe? Module // Probabilistic gates

**URL:** <https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997>\
**Category:** DIY STUFF\
**Created:** [September 16, 2021, 12:27pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997 "2021-09-16T12:27:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![YMNK](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ymnk/32/23992_2.png) [@YMNK](https://lookmumnocomputer.discourse.group/u/YMNK)\
**Post date:** [September 16, 2021, 12:27pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/1 "2021-09-16T12:27:15Z")

</div>

Yoooo.

So, this is something I created and built few months ago. I wanted to make a video about it but I’m super lazy/busy, so here’s some very nice pictures.

 ![IMG_6747-1-768x1024](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/5/5/55df127b45ec55b77156d0c2c44496482e496270.jpeg)  
 ![IMG_6746-1-768x1024](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/d/8/d828d22a6d26642b81f2d1797d59a06472daf56a.jpeg)

It’s what we can call a “Probabilistic Gates” module. You have 1 Gate in and 5 Gate out. Each output has its own chance of apparition.  
If the knob is down to 0, then the gate will never be reproduced. If it’s at 1, it will always be reproduced.  
If it’s at the middle, then you have 50% of chance that the gate will be reproduced … pretty clear, right?

It’s based on a Arduino Nano and some op amp. Really cheap and simple. And super fun to use if you like to do some “generative music” … like you will never really know what’s gonna happening …

Here’s the schematic 😛

 ![Yes_-No_-Maybe_-1024x571](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/4/7/47b5b518303f0315df0d2545af627459a7e29941.png)

The coooode : [GitHub - alexiszbik/yesnomaybe: Arduino based random trigger for modular synthesizers](https://github.com/alexiszbik/yesnomaybe)

Wants to know more (actually I said everything I could … but yeah … ) : [Yes? No? Maybe? – YMNK](https://www.ymnkmusic.com/diy-synths/yes-no-maybe/)

AGAIN, I’m not a super expert in electronic (but I’m good with code, heh) so, if you have any remarks or suggestions about how to optimize this thing, I will be very happy to hear it.

Thanks!

---

<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:** [September 16, 2021, 1:11pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/2 "2021-09-16T13:11:09Z")

</div>

Once I got past the transparent background on your schematic which makes it harder to read against a dark background ([this](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/4/7/47b5b518303f0315df0d2545af627459a7e29941.png) works better for me) I think it looks good — the one thing I’d change is to add 1k resistors in series on the outputs.

The LEDs don’t have to take up Arduino pins, they could be driven by the same op amps as the outputs (with a larger resistor!) but since you’re not using those pins for anything, no harm done.

---

<div class="post-metadata">

**Author:** ![YMNK](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ymnk/32/23992_2.png) [@YMNK](https://lookmumnocomputer.discourse.group/u/YMNK)\
**Post date:** [September 17, 2021, 12:45pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/3 "2021-09-17T12:45:41Z")

</div>

Thank you for your feedback @analogoutput !  
Yeah, I did the schematic on Google Draw, didn’t verify it was with a transparent background, sorry!

Yeah actually, we could make the LEDs driven by the output and add 2 mores possible output! Might be a nice update.

Ok, noted for the 1k resistors. Thanks again!

---

<div class="post-metadata">

**Author:** ![TimMJN](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/timmjn/32/15227_2.png) [@TimMJN](https://lookmumnocomputer.discourse.group/u/TimMJN)\
**Post date:** [September 19, 2021, 9:34pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/4 "2021-09-19T21:34:15Z")

</div>

The design looks pretty solid, good job!

I do think you missed one major opportunity here: make it voltage-controlled! A few rail-to-rail opamps (eg MCP600x) should be able to take care of that. You can even get away with just one opamp per channel. (Sum the CV and manual inputs, re-invert them in the firmware.)

Cheers

---

<div class="post-metadata">

**Author:** ![zorch](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/zorch/32/5586_2.png) [@zorch](https://lookmumnocomputer.discourse.group/u/zorch)\
**Post date:** [September 19, 2021, 9:53pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/5 "2021-09-19T21:53:57Z")

</div>

Neat! Seems a bit like a cross between branches and a sequential switch.

---

<div class="post-metadata">

**Author:** ![YMNK](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ymnk/32/23992_2.png) [@YMNK](https://lookmumnocomputer.discourse.group/u/YMNK)\
**Post date:** [April 10, 2024, 1:00pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/6 "2024-04-10T13:00:08Z")

</div>

Hi Everyone,  
I’ve added an update to this project, with a pattern switch.  
This will transform the behaviour of the module from a random trigger to a pattern sequencer.  
Each knob of each output will choose between 62 different patterns (from 2 to 8 steps length).  
This is very useful to create some polyrhythmic madness !

Here is the new schematic :

 ![](https://global.discourse-cdn.com/free1/uploads/lookmumnocomputer/original/3X/7/a/7a4fee639779015367a447587683015d1d918c2c.png)

---

<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:** [April 10, 2024, 5:10pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/7 "2024-04-10T17:10:53Z")

</div>

You shouldn’t leave the inputs of the second opamp in the '072 floating, that’s bad…

---

<div class="post-metadata">

**Author:** ![YMNK](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ymnk/32/23992_2.png) [@YMNK](https://lookmumnocomputer.discourse.group/u/YMNK)\
**Post date:** [April 11, 2024, 5:53am UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/9 "2024-04-11T05:53:29Z")

</div>

I trully didn’t know that was problematic, but I take the advice.  
I use to let floating pins all around, so I will take special care now.  
I assume you have to wire all of them on the ground.  
Thanks

---

<div class="post-metadata">

**Author:** ![jaradical](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/jaradical/32/12069_2.png) [@jaradical](https://lookmumnocomputer.discourse.group/u/jaradical)\
**Post date:** [April 11, 2024, 8:22am UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/10 "2024-04-11T08:22:28Z")

</div>

Check [How to Properly Configure Unused Operational Amplifiers (Rev. A)](https://www.ti.com/lit/ab/sboa204a/sboa204a.pdf)

Have a look at Figure 3. Proper Implementation of Unused Op  
Amps - Split Supply Rail

Basically tie the non-inverting input to ground and connect the output to the inverting input.

Cheers

---

<div class="post-metadata">

**Author:** ![YMNK](https://yyz2.discourse-cdn.com/free1/user_avatar/lookmumnocomputer.discourse.group/ymnk/32/23992_2.png) [@YMNK](https://lookmumnocomputer.discourse.group/u/YMNK)\
**Post date:** [April 11, 2024, 1:10pm UTC](https://lookmumnocomputer.discourse.group/t/yes-no-maybe-module-probabilistic-gates/3997/11 "2024-04-11T13:10:45Z")

</div>

Great, thank you very much !
