Hello! we've got the latest PFC build running and we are noticing that the Arduino's serial connection is getting restarted pretty frequently. From our research it could be due to power spikes, or perhaps a memory leak in the arduino sketch.
The arduino handler is reconnecting properly every time it fails, but it has become a very frequent problem and it might be causing some noise in our sensor readings, cascading into a bunch of problems like the ph pumps dosing stuff when they shouldn't. We will increase the smoothing factor of the sensor readings to temporarily address this problem.
Is anyone experiencing this issue as well? If so, what kind of things have you done to address the problem?
Here you can see how the pH measurements are reading a completely off value (4.99 vs the 7.13 average). By the way, prior to these visible spikes we disconnected the pH up/down solutions because the system ended up pouring the whole bottles into the mix causing a very gnarly outcome, so the pH is actually not changing at all due to controller, but it is being mis-read due to some sensor/arduino temporary error.
if empty_read_count > MAX_EMPTY_READS: empty_read_count = 0 raise Exception("arduino_handler: serial_connection.readline() broken")