Below is a summary of the schematic updates to be applied for your 4x6 macropad with an ATmega32U4 and a switch matrix featuring diodes for ghosting prevention:
For each key, add a diode such as 1N4148 in series with the switch.
Orient the diodes appropriately (anode on one side of the switch, cathode on the other) to prevent ghosting.
Matrix Wiring:
Connect each row and column from the key matrix to dedicated I/O pins on the ATmega32U4.
Ensure that all rows and columns share a common ground using the Ground component.
You can use the Apply changes button to update your schematic with these modifications. If additional features (such as USB filtering or debouncing circuitry) become necessary later, we can further refine the design.
Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
Wirelessly connects power nets on schematic. Identical to the net portal, but with a power symbol. Used to organize schematics and separate functional blocks. To wirelessly connect power net portals, give them the same designator. #portal #power
General Purpose Thick Film Standard Power
and High-Power Chip Resistor
47 kOhms ±5% 0.125W, 1/8W Chip Resistor 0805 (2012 Metric) Automotive AEC-Q200 Thick Film
Features:
- RMCF – standard power ratings
- RMCP – high power ratings
- Nickel barrier terminations standard
- Power derating from 100% at 70ºC to zero at +155ºC
- RoHS compliant, REACH compliant, and halogen free
- AEC-Q200 compliant