1. You can increase the number of sensors and decrease the width of the segments to achieve higher accuracy in terms of resolution. The maximum number of sensors you can have is only limited by the no of GPIOs of the selected device.
2. We highly recommend you to shield all the ground electrodes from the sensing electrode and the sensor traces to avoid high parasitic capacitance. To achieve this, we recommend you to connect the inactive sensors connection to shield and connect the hatch pattern to shield. This will also help in achieving good temperature compensation.
3. You can have ground electrode on either side of the sensing electrode as given in the 12 RX sensor pattern. But make sure that the distance between the ground electrode and the sensing electrode is atleast 2 to 3 times the container thickness (overlay) and have shield electrode in-between the two if possible. This will help if the liquid can get accidentally shorted to ground.
4. Some questions:
a. Is your liquid conductive? What is the liquid used?
b. Does it have a large connection to ground (resistive/ capacitive)?
c. Are there chances for your liquid to be accidentally grounded?
d. Is much variation in liquid temperature expected?
We believe that tap water is conductive. Please confirm.
We recommend you to go for CSD + Shield configuration for your application.
It is also recommended to have a ground electrode with area greater than the sensing electrodes (combined) on either side of the sensing electrode, just like the 12 RX flex pattern. But make sure that the ground electrodes are at least 2 to 3 times the thickness of the container away from the sensing electrodes.
For better accuracy, ensure that the tilt in the electrodes is around 1.3 - 1.5 times the pitch size of the electrodes.
The gap between the electrodes can be maintained at 0.5 mm with adjacent electrodes to the electrode being sensed connected to shield for minimum Cp.
You can have the Rx electrodes as wide as possible to increase SNR.
If there are no chances for the liquid to get accidentally grounded, we also recommend you to test the same pattern for CSX sensing as well. For this, the ground electrodes on either side of the sensing electrodes is connected to Tx of the CSX sensing. But it is important to have at least 2 to 3 times of container wall thickness gap between Tx and Rx electrodes. CSX technique has higher SNR compared to CSD technique. In this case, the rawcounts will decrease with increase in water level and this has to taken care in firmware.
Let us know if you have further questions.