Nanogenerators are devices that convert mechanical or thermal energy into electrical energy using nanomaterials. For instance, piezoelectric nanowires can generate electricity from mechanical stress, such as vibrations or body movements. This technology has potential applications in self-powered devices and wearable electronics, offering a sustainable energy solution without the need for external power sources.