Python Pi project

Date:

Author:

Categories:


My two week project was to use the Python coding language to get a Raspberry Pi sensor to show temperature on a chart.

Firstly, we started by taking the Raspberry Pi’s and plugging them into our computers. We then began coding the first step which was to tell the Raspberry Pi how to use its LED light.

Next, we told the Raspberry Pi how to use its thermometer to detect the temperature and use the LED to tell us. The LED flashed when the sensor took the temperature. We could change how long the LED flashed for. For example, if we set the time to 0.5 it would take the temperature at a different speed to if we set it to 0.2.

Then, we told it how to identify us and how to use our names and what our password was to get onto the website that showed the temperature on the chart. So if, for example, you put your finger on the thermometer, it would read a higher temperature!

We did unfortunately have to skip the last stages because the work got deleted by accident and we couldn’t get it back, and we also ran out of time, but the rest of it was really fun and my favourite bit was testing to see whether it worked.

If we had managed to get to it, the last stages would have been designing the website that showed the temperature on the chart, and I was sad we couldn’t do that, but it was still very fun doing the rest of the coding!

By Wilf, Tiger Patrol.

Wilf sits in front of a computer holding a Raspberry Pi sensor