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
  host / artist show at your time
<on air> Twyndyllyngs Chez Mosc
 Forum index » DIY Hardware and Software » YuSynth
Clock Divider
Post new topic   Reply to topic Moderators: Scott Stites
Page 1 of 2 [28 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Sun Dec 03, 2017 11:52 am    Post subject: Clock Divider
Subject description: Strange phenomenon
Reply with quote  Mark this post and the followings unread

First post! Very Happy


I have built the Yusynth Clock Divider on stripboard. It actually works fine, but I do have a very strange observation:

The different divisions are not found at the IC pins described in the schematic. For instance, the 1/4 division should be at pin 10 of the 4017 (according to the schematic) but instead, it occurs at pin 1. In turn, the division of 1/5 that should be found at pin 1, is found at pin 5. And so on. The first 3 divisions are at the right pins, the others are in a different place.
Code:

division           occurs at:       should be:

1/1                pin 2             pin 2
1/2                pin 4             pin 4
1/3                pin 7             pin 7
1/4                pin 1             pin 10
1/5                pin 5             pin 1
1/6                pin 6             pin 5
1/7                pin 9             pin 6
1/8                pin 11            pin 9


This is when I use clock signals like gates of 0-10V, 0-6V, or a LFO of +-6V.
When I try other clock signals (like a +/- 3V square wave LFO), the divisions occur (in part) at other pins, but never at the pins that are described in the schematic.

Two of my 4017's are HEF's (Phillips), the other is a STMicroelectronics. They all behave the same. My transistors are BC547C's. I have triple checked my stripboard lay out. There are no errors.

Does anybody have an explanation for this?

Last edited by flagada on Mon Dec 04, 2017 3:01 am; edited 1 time in total
Back to top
View user's profile Send private message
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Sun Dec 03, 2017 3:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is the schematic:
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message
Grumble



Joined: Nov 23, 2015
Posts: 1320
Location: Netherlands
Audio files: 30

PostPosted: Sun Dec 03, 2017 5:49 pm    Post subject: Reply with quote  Mark this post and the followings unread

maybe you switched pins 3 and 2 on your stripboard, because the sequence is 2 4 7 10 1 5 6 9 since pin 3 is output 0 and is not connected to the switch.
_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Mon Dec 04, 2017 3:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Ooops! Embarassed I made a mistake in the table I made (see first post). The masterclock (1/1) appears at pin 2 of the IC, not pin 3. In my clock divider that works as it should. (error has been corrected).

@ Grumble: sorry for the confusion. But no, I did not switch pin 2 and 3 on my stripboard.
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5931
Location: Moon Base
Audio files: 709

PostPosted: Mon Dec 04, 2017 5:47 am    Post subject: Reply with quote  Mark this post and the followings unread

What exactly do you mean with the divisions appearing at those pins ?
Do you mean setting the step switch to those pins, because all the divisions should be measured at pin 3.
Also make sure pin 13 is connected to GND, it could cause some weird behaviour if it isn't.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Grumble



Joined: Nov 23, 2015
Posts: 1320
Location: Netherlands
Audio files: 30

PostPosted: Mon Dec 04, 2017 6:16 am    Post subject: Reply with quote  Mark this post and the followings unread

PHOBoS wrote:
because all the divisions should be measured at pin 3.
Actually they should be measured after the two diodes while the resistor after the diodes is tied to vcc at one end. This is because the output of pin 3 is OR-ed with the clock input.
_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
PHOBoS



Joined: Jan 14, 2010
Posts: 5931
Location: Moon Base
Audio files: 709

PostPosted: Mon Dec 04, 2017 6:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Actually it is AND-ed with the CLK, but yes. Although for measuring it doesn't make much difference
except for the 1/1 division as pin 3 just stays high.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Grumble



Joined: Nov 23, 2015
Posts: 1320
Location: Netherlands
Audio files: 30

PostPosted: Mon Dec 04, 2017 6:30 am    Post subject: Reply with quote  Mark this post and the followings unread

Embarassed Your'e right, AND-ed
_________________
my synth
Back to top
View user's profile Send private message Visit poster's website
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Mon Dec 04, 2017 6:43 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi PHOBoS, I'll try to be clearer.

First, I put all three rotary switches completely CCW (all common terminals are connected to pin 2 of their 4017). All the LEDs blink at the same rate i.e. the rate of the clock signal. So far so good.

Then I put SW2 in the 1/2 position (common gets connected to pin 4). The second LED blinks at half the rate of the two other LEDs. That's good too.

Next: SW2 in the 1/3 position (common connected to pin 7). The second LED blinks at a third of the rate of the other two. Still working as it should.

But then: SW2 in the 1/4 position (common connected to pin 10): the second LED blinks only once and then it stops blinking. If I connect the common of SW2 to pin 1 of the 4017 it blinks like it should, at a rate of a fourth of the rate of the other two.

Likewise, if I want the LED to blink at a rate of, say, 1/7 of the clock signal, I have to connect the common to pin 9, while the schematic says it should be connected to pin 6.

This behaviour is the same for all three switches/4017's.

Yes, Pin 13 is connected to ground (all three of them).
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5931
Location: Moon Base
Audio files: 709

PostPosted: Mon Dec 04, 2017 8:11 am    Post subject: Reply with quote  Mark this post and the followings unread

flagada wrote:
But then: SW2 in the 1/4 position (common connected to pin 10): the second LED blinks only once and then it stops blinking.

That's very odd. blinking at the wrong rate is one thing but if it only blinks once it suggests that the counters stalls which it
shoudn't. Even without the switch it should just cycle so you'd get a pulse every 10 steps. (personally I would add 2 more
divisions btw as 12 step rotary switches are common anyways). I had some problems myself with the 4017 most likely
because of propagation delay (outputs not changing instantly on the CLK transition) This caused some problems when the
output is AND-ed with the CLK signal.

You could try disconnecting D4 (D9, D14). As I mentioned the 1/1 won't work but the rest should. The difference is that they
will stay high for a complete CLK cycle instead of having the same pulse length. But this way it might be possible to narrow
down what is causing the odd behaviour. I am pretty sure people have succesfully built it though, including Yves himself,
but maybe there is a problem with certain brands of 4017 chips.

Also maybe recheck the way the switches are wired, which you probably already did a couple of times and with all the
dividers showing the same behaviour it is very unlikely that there is something wrong with it.

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Mon Dec 04, 2017 10:42 am    Post subject: Reply with quote  Mark this post and the followings unread

PHOBoS wrote:

That's very odd. blinking at the wrong rate is one thing but if it only blinks once it suggests that the counters stalls which it
shoudn't.
The 'blinking once' and then stopping happened before I wired the switches, when I was probing around the IC pins. Now that I wired up the switches the 'blinking once' is gone. There is just no (divided by 4) clock signal at pin 10 so the LED does not blink at all.

PHOBoS wrote:

Even without the switch it should just cycle so you'd get a pulse every 10 steps.
When I pull the wire from the connector at pin 10 (common not connected to pin 10 anymore), then the LED does start blinking, but once every NINE steps! Not every ten. Somehow a step 'disappears' after the third division?? Looking at the table in the first post, everything is normal until the third division. Then, it seems that pin 10 is skipped, and that the rest of the cycle continues as normal, but one pin later.
Code:

division           occurs at:       should be:

1/1                pin 2             pin 2
1/2                pin 4             pin 4
1/3                pin 7             pin 7
1/4                pin 1             pin 10
1/5                pin 5             pin 1
1/6                pin 6             pin 5
1/7                pin 9             pin 6
1/8                pin 11            pin 9


PHOBoS wrote:

personally I would add 2 more divisions btw as 12 step rotary switches are common anyways).
That's a great idea! I have 12 step switches so I will do that once I get this working as it should.
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5931
Location: Moon Base
Audio files: 709

PostPosted: Mon Dec 04, 2017 11:16 am    Post subject: Reply with quote  Mark this post and the followings unread

hmm skipping, I've seen that happen before, see this thread, but that had to do with pin 13.
It could have something to do with the CLK signal but the discrete schmitt triggers should provide a clean transition.
It's rather odd that it skips just that output. Do you have any decoupling caps on the board ?

_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Mon Dec 04, 2017 12:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes, pin 16 of each 4017 has a 100nF to ground. Also the 10R resistors at the supply rails are there. Instead of the 10uF elco's, I put 47uF elco's.
Back to top
View user's profile Send private message
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Tue Dec 05, 2017 1:47 pm    Post subject: Reply with quote  Mark this post and the followings unread

I did some more testing and I got more confused... Confused

The results above are obtained when I use my MFOS sequencer as a clock (gates of 0 to +12V, or 0 to +6V). When I use a LFO (-12V to +12V) the results are the same. The clock signal at the collectors of Q2, Q5 and Q8 is clearly visible on my scope.

But when I use another LFO (-4.5V to +4.5V) the clock signal is still visible on the collectors, but the clock divider behaves totally different:

With the rotary switches fully CCW, the LEDs blink according to the masterclock (OK). But with the switches in positions 1/3, 1/4, 1/6, 1/8 the LEDs don't blink at all. In position 1/5, the LEDs blink at a rate of 1/4, in position 1/7 the LEDs blink at a rate of 1/5. In position 1/2, the LEDs sometimes blink, and sometimes they don't.

And when I pull the wire from the common of the rotary switch, the LED starts blinking, but now at a rate of 1/7 of the master clock (instead of 1/10).

Somehow with this new LFO, three steps are being skipped?? Shocked

PHOBoS wrote:
It could have something to do with the CLK signal but the discrete schmitt triggers should provide a clean transition.
It's rather odd that it skips just that output.


The schmitt triggers indeed provide a clean transition, but something very strange happens afterwards...
Back to top
View user's profile Send private message
blue hell
Site Admin


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

PostPosted: Tue Dec 05, 2017 2:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

hmm .. interesting :-)

- What supply voltage do you use on the divider? (asking because the gate propagation delays depend on the supply voltage, getting higher for lower supply voltages, and there might be a race condition in the reset signal).

- What does the supply voltage look like on the scope?

- What does the RST input signal on pin 15 of the chips look like on the scope? (or even .. when you put the probe on the RST line do the symptoms change?)

_________________
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
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Tue Dec 05, 2017 3:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hee hallo! Very Happy

I am using +15V and 0V. On the scope it looks very clean, no ripple or something. The power supply can deliver at least 1,5A and it is not at all working at it's top.

Actually I don't see anything on the RST pins (15). What should I see exactly? The symptoms do not change when I touch pin 15 with my probe (did not check all of those symptoms because there are a lot of them!)

I discovered that the RESET input of my module does not work. If I apply a gate (12 V) to the reset input (R39) there is no reset. When i connect the emitter from Q11 to +15V for a split second, then there is a reset.
Back to top
View user's profile Send private message
blue hell
Site Admin


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

PostPosted: Tue Dec 05, 2017 3:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hoi hoi :-)

Ok .. supply seems fine then and delay times are minimal, which is good.

You should see the same as on the common from the step switch (as long as no external reset is being applied) .. a narrow upgoing impulse, like : _|_

When that is not happening ... are D3, D8, D13 properly oriented? Also .. what is the signal level at the RST input?

Tying Q11's emitter to + causing a reset seems to indicate proper orientation for D2, D7, D12, and also it seems to indicate an unrelated error in the circuit around Q10 and Q11.

_________________
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
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Wed Dec 06, 2017 2:38 am    Post subject: Reply with quote  Mark this post and the followings unread

Well I don't see such an impulse at pin 15 (none of them). D3, D8 and D12 are oriented in the right direction. I did a diode test and they seem to be OK. The signal level at RST (pin 15) is ) 0 Volt.

While probing around with my scope I noticed something remarkable at pin 3. I'll do some more testing tonight and report back here.
Back to top
View user's profile Send private message
PHOBoS



Joined: Jan 14, 2010
Posts: 5931
Location: Moon Base
Audio files: 709

PostPosted: Wed Dec 06, 2017 3:18 am    Post subject: Reply with quote  Mark this post and the followings unread

It depedns on the scope but I wouldn't expect the pulse at the reset input to be visible as it is very narrow.
_________________
"My perf, it's full of holes!"
http://phobos.000space.com/
SoundCloud BandCamp MixCloud Stickney Synthyards Captain Collider Twitch YouTube
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
blue hell
Site Admin


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

PostPosted: Wed Dec 06, 2017 6:21 am    Post subject: Reply with quote  Mark this post and the followings unread

Right ... my work scope prolly spoiled me a bit Confused
Back to top
View user's profile Send private message Visit poster's website
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Wed Dec 06, 2017 7:33 am    Post subject: Reply with quote  Mark this post and the followings unread

I guess my scope should be good enough to see them. It's a 60MHz Tektronix.
Back to top
View user's profile Send private message
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Wed Dec 06, 2017 11:22 am    Post subject: Reply with quote  Mark this post and the followings unread

Ok, I did some more measurements on pin 3 with the rotary switch in different positions (MFOS sequencer as clock, gates of 12V). I noticed something that I think is strange when the switch is in position 1/4.

In all positions except position 1/4, the voltage at pin 3 switches between 0 and 15V at the same rate the LED is blinking. When the LED is on, pin 3 is high (15V), when the LED is off, pin 3 is low (0V). (In position 1/1, pin 3 is always high). I guess this is normal.

But when the switch is in position 1/4 (common connected to pin 10), the LED does not blink at all. The voltage at pin 3 remains low. However, I see tiny but regular spikes of 15V at a rate of 1/3 of the clock. I guess this is strange...

Code:
Switch

1/1:       Led blinks at 1/1 rate       
1/2:       Led blinks at 1/2 rate
1/3:       Led blinks at 1/3 rate
1/4:       Led does not blink
1/5:       Led blinks at 1/4 rate
1/6:       Led blinks at 1/5 rate
1/7:       Led blinks at 1/6 rate
1/8:       Led blinks at 1/7 rate


Again, I see this for all three the 4017's.
I checked pin 15 again, I really don't see spikes there.
Back to top
View user's profile Send private message
wackelpeter



Joined: May 05, 2013
Posts: 461
Location: germany
Audio files: 10

PostPosted: Thu Dec 07, 2017 9:19 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't know if your scope has a led/lamp for triggering, mine has and i can see when an trigger Impulse reaches the scope even when i can't see it on the scope screen because it's too narrow and slow for my timing divisions.

At an earlier point i would have guessed to check the pulldown resistor on the RST Input, but when it only occurs at that certain step then it's not likely that this resistor is too small and thus limiting the Impulses too much...

When you disconnect the pin that doesn't work properly then all other divisions work correct?

Have you measured your rotary switch for all positions to the common? And especially if in this certan position if there is any other connection between the pin and the common?

_________________
https://soundcloud.com/bastian-j
Back to top
View user's profile Send private message
flagada



Joined: Dec 15, 2016
Posts: 39
Location: Amsterdam

PostPosted: Thu Dec 07, 2017 2:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

wackelpeter wrote:
I don't know if your scope has a led/lamp for triggering, mine has and i can see when an trigger Impulse reaches the scope even when i can't see it on the scope screen because it's too narrow and slow for my timing divisions.

Yes I think mine has that too. My scope is full of switches and knobs that I don´t understand. Thanks to you, I now understand one of them! But still on pin 15 I can´t see that the LED on my scope blinks at a regular interval.

wackelpeter wrote:
When you disconnect the pin that doesn't work properly then all other divisions work correct?

No, they act strange even when I completely remove the switches. When I use a single wire to connect the annode of D3 (D8, D13) with the different pins, one after the other, the divisions do not work correct.
Back to top
View user's profile Send private message
blue hell
Site Admin


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

PostPosted: Thu Dec 07, 2017 3:48 pm    Post subject: Reply with quote  Mark this post and the followings unread

Confused I'm out of ideas .. except for one ... grounding issues maybe Confused
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Scott Stites
Page 1 of 2 [28 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » YuSynth
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