I was curious to see how compact I could design a circuit to debounce switches, as well as see how much it costs at JLCPCB.

- total of 47 input lines,
- debounced using Bourns technique (10K / 0.1uF),
- Schmitt triggered and inverted (74HC14),
- 16F1946 TQFP-64,
- ICSP,
- driven from a master PIC via USART,
- busy lines to control communication (1 for master, 1 for slaves).

Ended up 158mm wide x 30mm tall (I was thinking of placing them vertically around the enclosure).

Name:  16F1946 with 47 switches.png
Views: 1683
Size:  614.0 KB


Got it priced at JCPCB to know what is the cost associated with assembling a circuit such as this:

5 PCBs, $80CAD + shipping
20 PCBs, $230CAD + shipping

Name:  16F1946 with 47 switches JLCPCB pricing.png
Views: 1711
Size:  56.8 KB