Invisibly small carbon nanotubes aligned as fibers and sewn into fabrics become a thermoelectric generator that can turn heat from the sun or other sources into energy.