It's just that every time I've finally understood something we seem to start all over again with yet an improved redesign, which means I have to relearn everything again instead of just completing it.
Do not learn
details, learn the reasoning behind the choices!
For example, there are many possibilities on how to control the sync signals. If we look at the schematic in
reply #73, I realized that if we have active-low signals for 1) Atari output, 2) VGA color or mono output, and 3) VGA color output, we only need two analog switches (TS5V330), and a single 74HCS125 suffices for the sync signals. 74HCS125 is a quadruple tri-state buffer with Schmitt trigger inputs at TTL logic levels, meaning it is just about perfect for buffering and enabling/disabling 5V TTL level signals like the sync signals are.
What would change if we replaced the 74HCS125 with say four SN74LVC1G125's? Nothing much; the latter do not have Schmitt trigger inputs, which means that if the input voltages are not clearly TTL level (low if below 0.8V, high if above 2.0V; so between 0.8V and 2.0V) extra current may be drawn in the '1G125s.
What would change if we replaced the 74HCS125 with four Diodes, Inc.
74AHCT1G125W5-7's?
Nothing at all. The Diodes, Inc. variant of AHCT1G125 has Schmitt trigger inputs with TTL input levels. Aside from details like maximum current draw per output pin and such, these are interchangeable.
This is the exact reason I vary my suggestions. Getting fixated with specific components is not a good idea; you want to learn the rule behind the component selection! Here, for the sync signals, we need
active low enable signal (which means it will have
three-state outputs, the third state being "disabled" or "high-Z"),
TTL logic levels, and preferably
Schmitt trigger inputs for most robust control of the sync signals. The difference is the same as between memorizing and understanding a text book on something. The former gets you past the tests, but doesn't enable you to create anything new. And I only help, because I want others to create something new
better than before.
(We
could also use
active high enable for the VGA sync outputs, because /ATARI is HIGH in both VGA output modes. So, two AHCT1G125 plus two AHCT1G126 –– the two only differ by the polarity of the enable signal –– from Diodes, Inc. would also work.)
How the analog video signals are routed/switched is a completely separate decision, and does not affect how you deal with the sync signals.
I much prefer the amplifier-as-a-switch approach, because it allows
simultaneous output on all connectors, and just seems more robust to me. This is because video amplifiers passes input to output, amplifying the output, but nothing in the output passes back to input. Analog video switches and muxes, on the other hand, only
connect the input to output, as if it they were connected by wires, so everything on the output side will affect the input side also. The reason analog video switches and muxes do work well in this particular case is that the video signals generated on the Atari need to be attenuated a bit to get down to VGA levels.
Can I connect the +5V directly from the power supply to this board, or do I need some current limiting resistors or something first?
I think a
polyfuse, or Polymeric Positive Temperature Coefficient (PPTC) device on the input, would be a good idea. Something like a 50mA/150mA one, perhaps a Yageo SMD1206B005TF. Element14 has a pretty good
guide to resettable fuses that explain how they work.
Basically, they are a resistive devices that pass currents up to the
holding current (50mA for the Yageo) like a low-value resistor (3.6Ω and 50Ω for the Yageo, depending on the ambient temperature and current it is passing, and how long since it tripped last). When the current is exceeded for long enough, it
trips, its resistance becoming very high, and thus dropping the current. When the circuit is turned off, the PPTC recovers by itself, essentially resetting itself. These are basically used for short circuit protection, but they're not instant. If one triggers many times, you may wish to replace it, as the trip currents and so on will be affected.
Another option is to have a say +7V supply that you linearly regulate to +5V wherever +5V is needed; with just input and output capacitors and a linear regulator (low-noise, low drop or LDO type). Linear regulators have a property called
common mode rejection ratio, often expressed in decibels, which refers to how much ripple and noise is passed from input to the output. 60dB CMRR means that if the peak amplitude of such is 1V on the input, it is seen in the output with peak amplitude of at most 1mV. (This is because 60dB corresponds to 1000:1 ratio in amplitudes.)
Since the regulators drop only about 2V, at say 100mA of current only 2V×0.1A = 0.2W of waste heat is generated.
This way, noise in one 5V circuit is not passed to other 5V circuits (because each regulates their own one from the common +7V supply), but not too much power is turned into waste heat.
I know others (
jepSTone.net) have used
Mean Well RPD-60A for Atari STe supply.
I personally might consider using a
RPS-30-15 linearly regulated to 12V, and a
RPS-45-7.5 linearly regulated to 5V, although I do admit it is overkill; and some kind of aluminium heatsink would definitely be needed for the regulators. I just like the idea of very low noise, very stable power rails...
[Do bypass capacitors] minimize induction, as the wire traces of the PCB can act as induction coils and cause power "noise" and other problems?
No, they literally behave as local charge storage. You see, we're using transistor-based circuits here, where current draw changes whenever the signals change state. This means the current draw from the +5V supply varies based on the signal. Without local bypass capacitors, the current draw fluctuations affect the voltage on the supply rail, affecting the +5V VCC of other chips. With bypass capacitors, the peak current draw is topped up from the capacitor, "smoothing out" the noise otherwise generated on the supply rail.
This is also why the capacitors need to be very close to the ICs, preferably within a couple of millimeters. They also don't need to have huge capacitances; 0.1µF = 100nF is extremely common. Sometimes you see larger ones, for example 1µF to 10µF, with for example microcontrollers, since they do a lot of digital switching. (There are entire threads on bypass capacitor selection here at EEVblog forums, including why some use a large and a small capacitor for bypassing; and misconceptions related to that.)
I can't make 4-layer PCBs with Eagle. But 2-layers should do fine?
Yeah. I do recommend using M2.5 or M3 nylon standoffs; you can get kits from e.g. AliExpress. The through-hole is then 2.5mm or 3.0mm in diameter.
You could consider not mounting the connectors on the PCB, and instead solder the cables directly to the board, and have the connectors on some kind of panel. The downside is that the solder joints do tend to break off, if the cable moves too much/often (due to metal fatigue, and the solder wicking up the signal wire making it stiffer, forming a weak point immediately after the stiff part because that tends to flex most when the cable moves).
Or you could do separate connector PCBs, that connect to the main switching PCB via a ribbon cable or male-female headers, or even directly soldered.
Note that for the schematics in this thread, I've used the free online
EasyEda editor.