pinwheel (n.)
also pin-wheel, 1690s, "a wheel in the striking train of a clock in which pins are fixed to lift the hammer," from pin (n.) + wheel (n.). Fireworks sense is from 1869.