central pattern generator
A central pattern generator is a small cluster of nerve cells, usually tucked inside the spinal cord, that can crank out a steady, repeating rhythm of muscle commands all by itself — no moment-to-moment instructions from the brain required. Think of it like a music box: once you wind it up, the little drum spins on its own and the tune plays out, beat after beat, without anyone touching it again. In the same way, this circuit produces the back-and-forth rhythm behind movements you do over and over, such as walking, swimming, chewing, or breathing.
How does it keep time without a conductor? The neurons in the circuit are wired so that when one group fires, it briefly hushes the other, and when that first group tires out, the second takes over — then the cycle flips back again. This tug-of-war repeats automatically, sending alternating bursts to, say, the muscles that lift a leg and the muscles that push it down. The remarkable proof of this comes from animal experiments: a spinal cord cut off from the brain can still produce the rhythmic stepping pattern when given a simple, steady chemical nudge, showing the rhythm is born in the cord itself.
This is why so much of locomotion runs on autopilot. The brain does not have to micromanage every flex of every muscle; instead it sends a simple, broad signal — roughly, go faster, slower, or stop — and the central pattern generator fills in the detailed timing. Sensory feedback from the limbs then fine-tunes the rhythm to fit the real ground underfoot, so the basic engine of movement is built into the spinal cord and merely steered, not driven step by step, from above.
Central pattern generators can run without sensory input, but in real life that feedback constantly adjusts the rhythm to keep movement smooth and stable.