Path: EDN Asia >> Design Ideas >> Computing/Peripherals >> Water and vandal-proof keypad design
Computing/Peripherals Share print

Water and vandal-proof keypad design

02 May 2014  | Francesc Casanellas

Share this page with your friends

We came up with this design to get a sealed keypad for very wet environments (in my particular case, showers for swimming pools). The keypad needed to be able to detect slight pressure on a stainless steel plate 0.4mm thick. Apart from water protection, the solution offers an esthetical finish, as the user side is absolutely flat, with nothing visible other than the silkscreened print. Another advantage of this type of keypad is that it is vandal-proof.

The core of the sensor is a piezoelectric disc, the type normally used as a buzzer. I chose the Murata 7BB-35-3. With 35mm of external diameter, it allows a sensitive area of about 20mm diameter.

The discs are placed on the PCB, which contains the electronics and has circular holes to allow the ceramic to move freely (figure 1). They are fixed on the PCB by a layer of self-adhesive rubber foam (EPDM) 3mm thick (figure 2), though a thinner rubber layer will provide more sensitivity. The assembly has to be clamped against the front plate with a reasonable pressure.

Figure 1: PCB layout & cutouts.

Figure 2: Cross-section of piezo button assembly.

When the finger touches the external plate, the steel (or other material) is slightly deformed and a small increase in pressure is transmitted through the rubber to the piezoelectric disc. This is enough to produce voltage that is detected by the microprocessor. The processor then uses all the discs as buzzers and sends an acknowledging beep.

In this design example there are 4 keys. The microcontroller used was a Renesas (formerly NEC) uPD78F0513, but many other microcontrollers can be used.

The smaller electrodes of the piezoelectric discs are connected to the ADC inputs of the microcontroller, and to the positive supply via a high value resistor. They are connected also to other port inputs (P7), which start at high impedance state. The other electrodes of the discs (the bigger ones) are connected together to several port bits in parallel (P3) to get low impedance (figure 3). If you lack ports and have enough output current, this is not necessary. These ports start at a low level. When a disc is slightly deformed by finger pressure, the voltage to the ADC inputs drops.

Figure 3: Piezo keypad/beeper schematic.

At start-up, P3 = L and P7 = H to quickly charge the piezoelectric discs, whose capacitance is about 30nF. Then, after some tenths of microseconds, P7 is set to a high impedance input.

The program continuously scans the ADC inputs. Because the discs have a high capacitance, the voltage changes very slowly, and a fast scan frequency is not required. In my specific application, there was a voltage measurement every 1ms, so each disc was checked every 4ms.

When an input voltage drops below a preset level due to a button press, the controller processes the input, and then uses all the discs in parallel as buzzers. With a steel plate 0.4mm thick, a threshold 1.5V below the 5V supply was enough to get good sensitivity; if a thicker front plate is used, there is lots of margin to increase the sensitivity.

To beep, P7 is set to low impedance output and with P3 in opposed polarity, they output a square wave at the resonant frequency of the piezoelectric discs (2800Hz in this case). The beep sounds for 250ms. R5 limits the drive current. After the beep, P3 returns to 0, and P7 is again momentarily set to 5V to charge the discs.

The use of piezoelectric diaphragms not only provides a very effective solution but also a very cheap one.

About the author
Francesc Casanellas contributed this article.

To download the PDF version of this article, click here.

Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.

Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming

News | Products | Design Features | Regional Roundup | Tech Impact