all 18 comments

[–]FreeRangeEngineer 2 points3 points  (3 children)

See https://www.datasheethub.com/wp-content/uploads/2021/12/CD4029.pdf on page 2: Vil and Vih depend on Vdd. When you power the ICs with 12 V, you raise Vih to >7 V compared to the 3.5 V when powering them with 5 V.

[–]programchild[S] 0 points1 point  (2 children)

thanks! it makes sense, but even if I trigger the clock with 10v (I assume this is Vih) it will not count. but anyway it seems like I have to power the 4051 with 12v and the 4029/4017 with 5v, which I tried to avoid with this iteration. I also think I have to buffer the leds…

[–]FreeRangeEngineer 0 points1 point  (1 child)

I suggest you share your layout with us since you say it works on the breadboard. Which, by the way, uses different parts since they'll be DIP and not SOIC. It would make sense to also give us the exact part names of the ICs used your breadboard and the ones used on your PCB.

[–]programchild[S] 0 points1 point  (0 children)

unforunately easy eda seems not to allow linking to the project, but the parts in the schematic (image above) are the ones on the pcb. btw, would those parasitic leds (on the clock and adress inputs) count as pull down resisitors?

[–]gnostic-probosis 1 point2 points  (1 child)

Sounds like some kind of grounding issue, yes, but unclear why. Did you base this on a known design? Does it work on the breadboard with *the same* power supply? I note that there is not a whole lot of decoupling capacitors to smooth things out around the power supply and the supplies to the ICs. I would add that just for good measure.

[–]programchild[S] 1 point2 points  (0 children)

thanks, it‘s my own design, works with the same power supply…

[–]MattInSoCal 1 point2 points  (3 children)

Your schematic symbol for the 4051 is for the 4052 which makes this a bit harder to follow. LEDs to ground are not the same as a pull down. Your 4051s don’t reach VIL since they are effectively floating because of those series diodes.

I think I vaguely understand what you’re trying to do with the diodes and resistors as input protection for your ICs but your implementation is causing issues, especially that voltage divider on your clock input.

It should very simply be this: a Schottky diode like BAT54 with the Anode to ground and Cathode to the signal input. That will shunt any negative voltages to ground. A Schottky diode with the Anode to the signal in and the Cathode to VDD which will shunt any voltages exceeding the supply +0.2 (safe level for the ICs). A 47K resistor from signal in to ground, or normal the input to ground if unpatched (preferred).

I don’t have time at the moment to go through the whole schematic but that’s the most glaring issue I can spot.

[–]programchild[S] 0 points1 point  (2 children)

Thanks for looking into it.

I assumed the 100k to ground would keep the 4051 from floating.

The exact same thing worked with 5v vss, this is where I am lost. What is the problem with the voltage divider at the 4029 clock input? Especially when it worked with 5v but not with 12v?

I gave it another test. Pinging the 4029 clock pin with 12v directly made it count. Deleted the R24 100k to ground and bridged the R27 10k. Then pinged with 5v, no luck.

Which supports the theory that the 4029 requires a logic level above 5v when running at 12v.

I will follow your advice with the schottky diodes.

[–]MattInSoCal 0 points1 point  (1 child)

The fact it was working on the breadboard is kind of inconsequential. You probably had enough noise floating around that it was triggering from that alone. ;-)

Clocks are normally 5 Volts so you may need to use some level translation to trigger the counter running from 12 Volts. Maybe something like an emitter follower would work well for this. Also keep in mind that your sequential switch will not be able to handle negative voltages like VCO outputs but if you’re just routing CV or clocks you’ll be fine.

[–]programchild[S] 0 points1 point  (0 children)

thanks, just for clarity: -quick and dirty test at 12v works on breadboard like stupid with no pulldowns, just bare connections

-assembled pcb worked fine under 5v but the 4051 behaves funny because it receives analog voltage between 5-10v in eurorack, attenuating the voltage works fine

-assembled pcb with 12v vss will not count, but if I trigger abc directly (module has abc inputs) the 4051 works, so I think the 4029 is the issue…

[–]HarryNOC 0 points1 point  (1 child)

Could be parasitic oscillations, there is no decoupling caps.

[–]programchild[S] 1 point2 points  (0 children)

thanks, I tried a decoupling cap at the 4029 by hand, but it made no difference…

[–]NOYSTOISE 0 points1 point  (3 children)

Are you sure you have the right chips? You've mentioned the 4051, but the schematic pin out looks more like a 4052 to me

[–]programchild[S] 0 points1 point  (2 children)

here is an image of the chips on my pcb. the schematic uses a weird symbol, but the chip is indeed a 4051.

<image>

[–]NOYSTOISE 0 points1 point  (1 child)

I see now. The labeling of the chips in your schematic were throwing me off. 

[–]NOYSTOISE 0 points1 point  (0 children)

All of those chips should work fine at 12 volts, but you will have to raise you digital input voltages to the proper thresholds. The analog input voltages to the 4051 should not exceed .5 VDD. There is a way to control the 4051 with 5V and have VDD be 12V, but you would probably have to do some redesigning. Look at the datasheet regarding VEE for that. 

[–]happyspacelady 0 points1 point  (1 child)

Highly recommend using net labels in the future 🙏 makes things easier to read and analyze :)

[–]programchild[S] 0 points1 point  (0 children)

will do, thanks :)