This post is about first release of the pYpHpoT python script. It is a simple python script that reads the data from the pHduino and plots and saves the data to a text file.
The Graphical User Interface (GUI)
Up to now, the data from the pHduino were presented in the serial terminal. A good serial terminal has an option to save the data to a text file. But, they can not plot them. So, I decided to write a very simple python script to plot and save the data.
I edited the GUI using a GUI editor called QtDesigner. I selected it because there is a plot widget ready to use in the GUI editor. All GUI code is in a separated text file. This approach makes a clean code and give us flexibility to change the GUI without modify the python script.
This is a screenshot of the GUI.
The program is very simple to use. First, connect the pHduino and turn it on. Second, starts the pYpHpoT script. Then, select the serial port and a file to save the data. Finally, press Start/Stop button. To stop, press it again.
You can not configure the pHduino using the pYpHpoT, yet. The pYpHpoT is only to read the strings from the serial port, plot, and save them.
I wrote a wiki about the pYpHpoT in the pHduino project.
Adjust the acquisition time to avoid huge data files. To do this, open a serial terminal and use the command interval_ms. Remember: temperature and pH are slow measurements.
The date and time format is the ISO 8601.