I’m trying to clean up a very messy 24 VDC signal while cutting it down to 4 VDC so I can feed the voltage into A0.
I have a voltage divider and a zener to clamp any potential spikes, followed by a low pass filter. I’m not sure what R values to use, or C for that matter. I can change my current 46K and 10K to what ever I need, i’m just not sure to what–I can compute voltage dividers and low pass filters, but when connected i’m not sure what values to use so the filter doesnt’ affect the divider.
Circuit diagram attached.
Can anyone help?