Researchers have developed a self-powered floating capsule that uses kinetic energy to detect contaminated water and disinfect it without batteries or chemicals.