Author |
Message |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
Posted: Thu Sep 07, 2023 10:55 am Post subject:
4094 based shift register nightmare... |
 |
|
Hi there guys,
I wasn't really sure where to post this, but this one drives me crazy.
It is a 4094 based shift register / random rhythm generator.
(Schematic attached.)
Normally, it should work like this:
- clock in
- turn the pot of the comparator
- push the stream/lock switch
- it enables random bits to go through it and fills the shift register
- if you release the switch (it is spring loaded) it feeds back the last bit to the data input, essentially loops an 8 step rhythm
- outputs are fed to AND gates to form pulses
It pretty much does this. The pot is more towards to CW the more random bits go through, the more complex the rhythms are.
The problem is that even if the switch is closed, if the pot is close to CW, random bits go through…it is like the pot has affect on the data input, which is kinda weird.
I’m looking at the board layout, just to see if there is a possibility of “crosstalk” between pins.
I've cut the above mentioned, re-routed with a flying wire, no luck.
I even cut the clock trace, just to confirm that there no crosstalk - still no luck.
The problem must be somewhere around the 4081, since I've checked the 4094s output with a scope and it seems stable - no random bits there, so in theory, the 4081 got those from somewhere, but still can't determine where.
Any tips?
Description: |
|
Filesize: |
54.47 KB |
Viewed: |
125 Time(s) |
This image has been reduced to fit the page. Click on it to enlarge. |

|
|
|
Back to top
|
|
 |
blue hell
Site Admin

Joined: Apr 03, 2004 Posts: 24476 Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320
|
Posted: Thu Sep 07, 2023 12:06 pm Post subject:
|
 |
|
The schematic misses some things ..
Does the 4081 have power and ground? also, does the 4091 have ground? _________________ Jan
also .. could someone please turn down the thermostat a bit.
 |
|
Back to top
|
|
 |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
Posted: Thu Sep 07, 2023 7:55 pm Post subject:
|
 |
|
Blue Hell wrote: | The schematic misses some things ..
Does the 4081 have power and ground? also, does the 4091 have ground? |
Oh yes, sorry, power pins are on the top of the schematic.
All two ICs has +15V and ground, with a 100n's close to the power pin. |
|
Back to top
|
|
 |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
Posted: Thu Sep 07, 2023 11:20 pm Post subject:
|
 |
|
So, the mighty Dave Brown suggested to check things with a scope again so I did.
I've checked the output of the shift register and also patched something to the outputs of the 4081s.
For sure, the shift register output is stable, but there are extra random bits at the outputs of the 4081.
I don't know why, both chips are clocked from the same source, but, either the 4081 picks up something that forces it to generate extra bits or there is something else here.
Important, musically it is usable, since the random bits are in sync with the clock.
If you add bits via the switch to the shift register, you can turn down the pot and it is stable and ok and with the pot you can even control the randomness.
...just drives me mad that I can't understand why this happening... |
|
Back to top
|
|
 |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
|
Back to top
|
|
 |
electrotech

Joined: Apr 24, 2013 Posts: 47 Location: Ayrshire Scotland
|
Posted: Sun Sep 17, 2023 3:14 am Post subject:
|
 |
|
Hi Snaper,
I've just seen this thread.... and had a look at your circuit.
You mention the 'comparator' pot a few times... I'm wondering if this pot has an intermittent connection on it's wiper ; this would cause the output of the op-amp/comparator to go high randomly.
I'd suggest you try adding a decoupling capacitor (say 10nF) between the wiper and ground. It's value will depend on the value of the potentiometer but I'm assuming it will be 100k ?
This will remove any noise at the comparator's input, especially when moving the control.
As for your 'scope photo - this looks like what you'd get if you're using AC coupling.... there's certainly a capacitor in-circuit there somewhere.
Hope this helps.
Andy |
|
Back to top
|
|
 |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
Posted: Tue Sep 26, 2023 5:27 am Post subject:
|
 |
|
electrotech wrote: | Hi Snaper,
I've just seen this thread.... and had a look at your circuit.
You mention the 'comparator' pot a few times... I'm wondering if this pot has an intermittent connection on it's wiper ; this would cause the output of the op-amp/comparator to go high randomly.
I'd suggest you try adding a decoupling capacitor (say 10nF) between the wiper and ground. It's value will depend on the value of the potentiometer but I'm assuming it will be 100k ?
This will remove any noise at the comparator's input, especially when moving the control.
As for your 'scope photo - this looks like what you'd get if you're using AC coupling.... there's certainly a capacitor in-circuit there somewhere.
Hope this helps.
Andy |
Hi there Andy,
Sorry about the delay...I've turned on notifications, yet, have not received anything about your reply.
I'll try it when I got home.
Crazy, since, with some clocks, it works as it should.
Yeah, AC indeed, fixed that :S |
|
Back to top
|
|
 |
Snaper
Joined: Feb 28, 2014 Posts: 217 Location: Hungary
|
Posted: Tue Sep 26, 2023 8:46 am Post subject:
|
 |
|
Tried with a 10nf ceramic, then with a 100n.
Neither of those helped - the damn issue is still there.
And it is still weird, since it works with some clocks… |
|
Back to top
|
|
 |
|