A user interface was developed in Python so that the values of amplitude, frequency and pulse width can be adjusted for each channel of the high voltage pulse generator. These data are sent via UART serial protocol to a master ESP32 that receives this data and also an external trigger for each detected drop to be classified. Then this information is sent by SPI protocol to the slave ESP32 that activates each channel of the high voltage pulse generator to classify the drops.
In the following subsections, you can find the details of the code for: