Abstract: A portable card, such as a credit card, having therein electronics, such as a processor, and a deformable switching element or sensor, where the deformation or bending of the sensor/switch is determined and used for controlling the electronics. In one aspect, bending of a piezo element provides power for bringing a processor out of a sleep mode.