Embodiments of the technology described herein relate, at least in part, to methods of modulating the activity of a neuron by contacting the neuron with a photo-sensitive TrpA1 agonist and then illuminating the neuron with electromagnetic radiation. Also described herein are photo-sensitive TrpA1 agonists.