Tooltip
These resources have been reviewed and selected by STEM Learning’s team of education specialists for factual accuracy and relevance to teaching STEM subjects in UK schools.

Web.Py Framework

This activity demonstrates how a Raspberry Pi running Python can interact with other devices in the browser. Using the web.py framework, web forms can be served to mobile phones, tablets etc, and accept input which is fed into the Python script. The project helps students to see how web servers work, and how devices can interact over networks.

The example requires an LEDBorg add-on LED array, which is controlled remotely using web.py - although other add-on devices can be controlled in similar ways with some adaptation.

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.

Downloads

Show downloads

Information on the permitted use of this resource is covered by the Category Three Content section in STEM Learning’s Terms and conditions.