At the heart of the PCC system, a Raspberry Pi model 4B was used.
This was chosen because of the cost benefits of a Pi, but also
because of the easy integration with Python and the ability to use
numerous sensors, basically the Pi is the cheapest and most
flexible option. The team used the Python files provided by the
manufacturer of the ADC, Waveshare, as the template for the coding
file. Once this code was adjusted to read the required voltages,
the additional sensors were added into the code. A separate python
file was created to plot the data, this file simply reads the data
from the csv that data is being recorded to, and uses Matplotlib
functions to create graphs that update every second. Click the
buttons below to view the code files. The main code file will be
unable to work without ADS1263.py and config.py. The plotting
python file will run all on its own as long as data is in the csv
file.