Internet Speed Monitor Pi

DISCLAIMER

Any actions and or activities related to the material contained within this Website is solely your responsibility. The misuse of the information in this website can result in criminal charges brought against the persons in question. Cyber Security Associates Limited, will not be held responsible for any criminal charges brought against any individuals misusing the information in these projects to break the law. 

 

Teacher Overview

Raspbian is a Debian-based computer operating system for the Raspberry Pi computer. There are several versions of Raspbian including: Raspbian Stretch and Raspbian Jessie. Raspbian was created by Mike Thompson and Peter Green as an independent project, with an initial build completed in June 2012. Since 2015, Raspbian has been officially provided by the Raspberry Pi Foundation as its primary operating system for the family of Raspberry Pi single-board computers and is highly optimized for the Raspberry Pi line's low-performance ARM CPUs. 

The Internet of things, or IoT, is a system of interrelated computing devices, mechanical and digital machines, objects, animals or people that are provided with unique identifiers (UIDs) and the ability to transfer data over a network without requiring human-to-human or human-to-computer interaction. 

IoT devices could be a person with a heart monitor implant, a farm animal with a biochip transponder, an automobile that has built-in sensors to alert the driver when tire pressure is low or any other natural or man-made object that can be assigned an IP address and is able to transfer data over a network. Increasingly, organisations in a variety of industries are using IoT to operate more efficiently, better understand customers to deliver enhanced customer service, improve decision-making and increase the value of the business. 

This Raspberry Pi Internet speed monitor project will enable you to set up your Raspberry Pi to monitor your Internet connection and save the data to a Google drive. This project is ideal if you’re interested in monitoring how your download speed, upload speed, and ping are affected over time. Additionally, this can help you work out the times your network is operating at peak capacity or if you’re suffering from a degraded internet connection. 

To build the Internet speed monitor, we will be showing you how to write a small Python script that interacts with a program called speedtest-cli. Speedtest-cli is the tool our project will use to monitor the internet connection. This program works by polling the popular speedtest.net service to get your ping, download speed, and upload speed. 

Suggested Year Group  

The suggested age group is 16+, due to the nature of this project and the skills it is developing.  

 

Learning Outcomes 

  • Learn the basics of IoT; 

  • Understand the concepts of an Internet speed monitor and how to create one; 

  • Learn how to use an Internet speed monitor and how to upload the results to a google drive.  

 

Component Number (Peli Case) 

Slot 4 + 5 

Slot 5 

Slot 9 

Slot 3 

Slot 3 

Slot 5 

Slot 1 

Component Number (Box Case) 

Slot 1 

Slot 10 

Slot 2 

Slot 11 

Slot 11 

Slot 12 

Slot 13 

Component 

Raspberry Pi + Case 

Raspbian SD Card 

TFT Screen 

HDMI 

Wireless Keyboard 

Wireless Mouse 

Power Supply Unit 

 

Video Guide

 

Conclusion

This project is designed to introduce you to an Internet speed monitor and the applications they have within IoT. You will have run multiple commands and created a simple python script to allow the Raspberry Pi to record the download and upload speed as well as the ping, then upload them to a google drive. This project is just scratching the surface of what you can achieve with it, there are so many different projects you can build around this. Keep in mind that the Raspberry is limited in processing power and will not be able to handle large volumes of traffic accurately.