After announcing the initiative at ChestertonCommunity College in Cambridge, Google chairman Eric Schmidt and Raspberry Pi co-founder Eben Upton gave the Chesterton students a lesson in coding.
"We hope that our new partnership with Google will be a significant moment in the development of computing education in the UK," said Upton, "we believe that this can turn around the year-on-year decline in the numbers and skill sets of students applying to read Computer Science at university."
Google and Raspberry Pi are working with Code Club, Computing at School, Generating Genius and Coderdojo to distribute the Raspberry Pi computers to schools around the UK.
"Britain's innovators and entrepreneurs have changed the world - the telephone, television and computers were all invented here," said Schmidt, "we've been working to encourage the next generation of computer scientists and we hope this donation of Raspberry Pi's to British school pupils will help drive a new wave of innovation."
Raspberry Pi was formed to teach people how to code rather than just seeing computers as a black box.