 Bacterial membranes contain proteins that can change shape when exposed to light, which can alter their electrical properties. A new optical tool has been developed that uses these proteins to study and control bacterial electrical signaling. This article was authored by Talies, Carolina de Souza Guerrero, Gaia Bondelli, Iago Groba, and others.