electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » The Repair Shop
4094 based shift register nightmare...
Post new topic   Reply to topic
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Thu Sep 07, 2023 10:55 am    Post subject: 4094 based shift register nightmare... Reply with quote  Mark this post and the followings unread

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?


Screenshot 2023-09-07 at 19.47.43.png
 Description:
 Filesize:  54.47 KB
 Viewed:  125 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

Screenshot 2023-09-07 at 19.47.43.png


Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24476
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Thu Sep 07, 2023 12:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Thu Sep 07, 2023 7:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Thu Sep 07, 2023 11:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Fri Sep 08, 2023 9:08 am    Post subject: Reply with quote  Mark this post and the followings unread

So, did some more investigation.
I was all wrong earlier.

As a tip, I've used a simple audio to "hear" the first AND gate pins.
As soon as I've touched the pot, the data comes from the 4094 gets "wonky" - out of rhythm/sync.
Why is that?

Also, the data output of the 4094 is more like a square.
More like the this.


IMG_7681.jpg
 Description:
 Filesize:  1.18 MB
 Viewed:  103 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

IMG_7681.jpg


Back to top
View user's profile Send private message
electrotech



Joined: Apr 24, 2013
Posts: 47
Location: Ayrshire Scotland

PostPosted: Sun Sep 17, 2023 3:14 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Tue Sep 26, 2023 5:27 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Snaper



Joined: Feb 28, 2014
Posts: 217
Location: Hungary

PostPosted: Tue Sep 26, 2023 8:46 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » The Repair Shop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use