Kirkpatrick Macmillan, a Scottish blacksmith born in 1842, invented the first bicycle with pedals in 1842. He worked as a blacksmith with his father from age 12. Macmillan invented several machines and is credited with inventing the bicycle, allowing for new transportation options and environmental benefits. He died in 1878.