Hello!
I’ve ventured far too deep into the custom ergonomic columnar-staggered mechanical keyboard rabbit-hole, and I think I’ve finally found myself at my endgame (for now, anyway lol): the Hillside 46.
TL;DR:
Please see “questions” section at the bottom regarding why, how, and if I should use the ESD protection on the right-half, left-half, or both halves of this split ergo-mech keyboard build.
Background:
In constructing this board, I came across a part of the circuit design that has confused my non-expert brain: the ESD chip and decoupling capacitors. At a theory level, I understand that it protects the board from electrostatic discharge (presumably, specifically, the microcontroller) and the damage it can cause. What is weird to me is that this is the only keyboard out of the several split-mech-ergo boards I’ve built that have featured this protection circuit, and even within the Hillside family of keyboards, the version with 46 keys that I built seems to be the only one with this protection circuit which makes the decision even more perplexing to me.
Given that this is a split-keyboard design with a reversible PCB, there are footprints for the SRV05-4 ESD chip (datasheet here) and decoupling capacitors on both sides of the PCB though they appear to be wired up differently depending on the side of the board you’re using (schematic here). On the “top” of the PCB (left side of the keyboard), you would solder the ESD chip with pin 1 at the top-left position. I did this and everything works fine.
On the “bottom” of the PCB (right half of the keyboard), the connections to the pads seem to be mirrored from the “top” of the PCB, but it looks like that was done so in a way that would not allow me to invert the ESD chip, with pin 1 at the bottom-right of the footprint, and still have everything work. I definitely can’t keep pin one at the top-left of the footprint on the “bottom” of the PCB, so I’m kind of stuck as to what to do.
Questions:
- Are the ESD chip and decoupling capacitors necessary or just nice to have?
- If they are necessary or very useful, do I really need them on both halves of the board?
- Looking at the Gerber file, it seems like I might be able to mount the ESD chip to the footprint on the underside of the right-side PCB and still have it functional; is that correct?
- What is this ESD circuit protecting against, exactly? I assume it’s potential voltage spikes on lines that shouldn’t have them that can occur if I were to unplug one end of the audio cable while the keyboard was still plugged into power/USB; is that correct?
Thanks in advance!
With regards to the ESD chip:
The ESD chip is going to try to prevent transient overvoltages from persisting on the protected line (which is going to be a voltage-sensitive circuit). Since (if I understand the application and schematic correctly) this circuit has a microcontroller with a data pin directly exposed to an external connector, some form of ESD protection is going to be highly recommended, as modern microcontrollers are going to be extremely intolerant of surprisingly low overvoltages.
This could happen if, as you suggest, one end of the audio cable is unplugged and a transient voltage is applied (by touching the exposed connector end), while the other end is plugged in to an instance of the board. This applies whether or not the affected board is energized (and it looks like this ESD chip will function passively, as it claims to be effectively a pile of diodes).
You do in fact need protection on both halves of the board, since they can exist as physically separate devices (e.g. when stowed for transport).
The particular ESD chip you’re using has VCC on pin 2, GND on pin 5, and four interchangeable-looking functional pins on 1 / 4 /
53 / 6. As long as you orient the VCC and GND pins correctly, you should end up with a valid circuit.With regards to decoupling capacitors:
The main purpose of these is to filter out high-frequency noise on the voltage rails. These do serve a factor in ESD protection (which involves huge instantaneous voltages but not all that much charge), but also guard against other transient voltage variances that might affect operation or reliability of the circuit.
Because the decoupling capacitors you’re looking at are part of the ESD solution (with regards specifically to voltage rails), I wouldn’t suggest omitting them.
Thanks, that all makes a lot of sense.
It looks like pad 5/VCC is on the middle-left, pad 2/GND is on the middle-right, and pad 6/data is on the upper-left of the footprint when I open the hillside46.kicad_pcb file in the KiCad PCB Editor, click on ‘View’, and check “Flip Board View”.
As a sanity check, given the info above: it looks like I could rotate that ESD chip 180 degrees (so that the ESD chip’s pin 1 is on the lower-right pad of the footprint) and have everything work, correct?
Yes, it looks like that should be OK.
Fantastic, thank you for all your help!
Maybe also crosspost to !ece@lemmy.world, which should be good at helping out with such questions?
Thanks for the suggestion!
I tried hitting the crosspost button and pasting in !ece@lemmy.world, but it said something like “no results found”. Is this because of the defederation I read about? Is there another easy way to do this or would I have to create a new account on lemmy.world and copy/paste my post over there?
Ah, it’s because nobody on your instance is currently involved in that community, so it hasn’t been federated to Beehaw yet. To fix that, go to the search tool, make sure that you have “All” selected for all four filters, and enter “https://lemmy.world/c/ece”. If you get a community result, you can click on it and subscribe to the community and then crossposting should work. If you get too many results, try switching the scope from “All” to “Local”. If you get no results, it means that federation is pending but delayed. Give it a minute or two and try the search again; eventually the community should show up.
I do think this may have more to do with the fact that Beehaw, my current instance, recently made the decision to defederate with lemmy.world. Is that assumption correct?
Oh, yep, you’re right. As I stop gap, if you’d like, I can crosspost for you, so at least you can watch for answers at !ece@lemmy.world in a browser. Just let me know if I should do that.
I really appreciate your offer, and I’d totally take you up on it if @SurvivorBobXYZ hadn’t already provided a reply above. Thank you so much for all of your help!
deleted by creator