I am designing a small sensor which fits into a custom aluminum enclosure. The sensor uses CAN bus and a long cable to connect it to the host and power. The shield of the cable will ground the enclosure through the connector.
While developing the sensor I realized how important it is to ground the enclosure, otherwise my ADC readings are more noisy.
Now my dilemma is that if my costumers forget to ground the shield or use a shielded cable (which they will) the performance will be poor, as the enclosure will be left floating.
Connecting the power ground to the enclosure (shield) inside also seems like a bad idea as this creates a ground loop.
Is there any way I can get around this problem? An AC coupled shield?