Howdy,
I'm making a commercial (hopefully) product with 35 key matrix (7x5) and just wanted to know best configuration of diodes and pullups.
Currently my diode and pullups setup is below (V1).
I want to optimize circuit as possible and was wondering, is it good idea for this purpose to relay on MCUs (SAMD21) internal pullups and remake circuit as in V2? Also as I understand in V2 there is no need to use current limiting resistors anymore (R16-20) because current will be limited by MCU internal pullup resistor, am I right?
Reason I did't went with the first design from the start is diode arrays – I didn't find any suitable common cathode array and I was avoiding single diodes due to possibly higher Pick and Place price, but now when comparing arrays and single diodes – single diodes cost practically nothing. This bring another question – ruffly how much of a PNP savings I can expect if its 7 vs 35 components to place? Will savings on PNP will be enough to justify 0,045 (array) vs 0.0035 (single) price difference, what would be your advice in this situation?
Also should I worry about EMC from matrix like this (10x20 cm PCB, on same PCB there is RGB matrix for every button)? Will flooding it with ground on two sided PCB will be enough or I should even consider 4 layers?
Talking about RGB matrix – if P mosfets gate is connected to MCU output, is pullup really necessary? Output floats only if MCU is off anyway, so I don't see the need for it...
