From the Wikipedia page for “Pitching machine:”
In 1897, mathematics instructor Charles Hinton designed a gunpowder-powered baseball pitching machine for the Princeton University baseball team’s batting practice.[1] According to one source it caused several injuries, and may have been in part responsible for Hinton’s dismissal from Princeton that year.[2]