Researchers have become successful in generating electricity from compression using a flexible nylon-film device.