Foucault’s pendulum experiment led to an increase in the public’s interest in both real-life science and science fiction.