Detecting when pulled to ground

Graynomad:
I'm sure that's the problem, if so I should have twigged earlier because we're always banging on about connecting the GNDs here.


Rob

I'll admit that reading about connecting the grounds on here before is part of what made me think to ask the question.

Tying in the Arduino-GND completely solved the problem. Updated schmatic attached.

Still running in Digital Mode on the switches, I now get nice clean results:

Everything open:
FullServingPin (A0)(LDR) value: 1023 FlapLimitPin (A1) value: 0 FeederLimitPing (A2) value: 0

Blocking LDR only:
FullServingPin (A0)(LDR) value: 230-ish FlapLimitPin (A1) value: 0 FeederLimitPing (A2) value: 0

Closing A1 button only:
FullServingPin (A0)(LDR) value: 1023 FlapLimitPin (A1) value: 1 FeederLimitPing (A2) value: 0

Closing A2 button only:
FullServingPin (A0)(LDR) value: 1023 FlapLimitPin (A1) value: 0 FeederLimitPing (A2) value: 1

Holding A1 and A2,
FullServingPin (A0)(LDR) value: 1023 FlapLimitPin (A1) value: 1 FeederLimitPing (A2) value: 1

Thanks Rob and Mike for your guidance.

This is the cause of a huge percentage of the the problems posted here (which is why I should have got to it quicker), AWOL even refers to it in his user text area.

Anyway all's well that ends well.


Rob