Researchers have created 3D-printed plastic objects that can track their own use without the need for a battery.