Consider a capacitive touch sensing solution instead of a mechanical contact switch if that meets the requirements:
For discrete "keys", pieces of single-sided PCB cut to the right shape and size serve well as capacitive electrodes. For sensing, either use a suitable microcontroller which supports capacitive sensing, or use a touch sensor controller such as the Atmel QTouch series.
An illustration of how this works, from the Atmel QTouch pages:
The PCB material, either glass epoxy (FR4) or paper phenolic, serves as the dielectric in the diagram above. The single-sided copper layer would be on the inside of the wearable.
From the question, it appears that a large number of "keys" may be needed. In such case, discrete capacitive touch sensing (one pin per electrode) may be sub-optimal. A matrix touch sensor IC would work better, e.g. Atmel's QMatrix. From the Atmel site:
QMatrix uses a pair of sensing electrodes for each channel. One is an emitting electrode into which a charge consisting of logic pulses is driven in burst mode. The other is a receive electrode that couples to the emitter via the overlying panel dielectric. When a finger touches the panel the field coupling is reduced, and touch is detected.
This works much like the matrix scanning technique used in conventional keyboards.
For up to 48 buttons, the Atmel QT60486 can be used: Up to 48 sense channels, with data communication via SPI and UART.
This capacitive touch approach addresses durability, safety and production concerns in one go. For best results, the exposed copper side of the electrodes could be coated with standard solder resist, or for longer life when exposed to human perspiration and friction, a suitable epoxy coating.
Addressing the bullet point questions:
- Copper as on a PCB would work fine for either the capacitive touch solution in this answer, or on the mechanical switch in the question.
- That would depend on the copper thickness, the pressure per button press, and any other source of mechanical wear. Of course, for the capacitive touch solution, life is indefinitely higher
- You do need to be concerned about oxidation, especially if the actual contact area on the conducting surfaces will be small, as appears the case with the mechanical approach in the question. Again, not a concern for capacitive sensing.
- High frequency low voltage would work best - no polarization-related deposit of airborne salts, and yet safe for a wearable. Not relevant for the capacitive solution.
I suspect the circuit is not exactly like you have drawn (not surprising, due to the difficulty reverse-engineering the PCB). I suspect Q101
might be a PNP transistor to switch the supply to the regulator, and both the push switch and an MCU output signal can drive Q102
base, to pull Q101
base low and switch it on.
how it might malfunction and exhibit these symptoms?
On some systems with an MCU (like your drum machine), the push-button only applies power as long as it is pressed. Assuming the MCU starts quickly e.g. 10s or 100s of ms, one of the first things the MCU does is to output a signal to keep the device powered on, even when you release the push button. (There are alternative techniques for when the MCU takes longer to boot, than the time you want the user to keep the button depressed.)
This "soft power switch" approach also allows the MCU to power itself off (e.g. if it detects battery low, or needs to save power, or any similar feature). You can probably see where I'm going:
- No output from MCU to keep the power on = device powers off, as soon as the push button is released - exactly as you describe.
The problem is that any MCU-related malfunction can cause that type of behaviour, since the MCU must be operating normally for its code to run and set the signal to keep its own power switched on. Any hardware or software problem that causes the MCU not to run its code (e.g. failed firmware update, clock problem, reset problem - basically anything wrong) means that the MCU doesn't keep its own power switched on.
To test for this theory - does the device keep running correctly if you press and hold the "soft power" button? If no, then this hypothesis could certainly be true. If yes, then this hypothesis could still be true, but the range of possible faults are much smaller, if the MCU is basically running OK while you keep the button pressed. This might be pointing more towards a problem in the "soft power switch" circuitry instead.
A proper diagnosis (especially remote diagnosis) would probably need a schematic, although the test above (and using a scope to look for signs of MCU life, as well as more reverse engineering of the "soft power switch") might allow you to make some progress. IC102
on the bottom of the PCB might also be a regulator or other power device, and might therefore be worth investigating.
Best Answer
It's a silicone rubber keypad. They're usually custom-made for the application (MOQ in the thousands or more if a mold has to be made).
They require a matching PCB that is either gold-plated or printed with a carbon paint in order to form the key patterns. The rubber keys have a conductive silicone bit molded into the back of the keys that bridges the PCB interdigitated pattern so that the switch is closed (the resistance is not nearly as low as with a switch that has metal contacts, but plenty good enough for a microcontroller to detect). The buckling of the key gives a tactile feel that is appropriate. Sealing against the environment (water, finger oils etc.) is not great, but acceptable for many applications.
Excellent choice if you're making a large quantity of a product, not so practical if you're only making a few hundred pieces or fewer.