Asked
— Edited

I believe I know how to do this but I want to confirm. Using an adc port, I would connect the positive to the in on the button and the ground to the signal/receive? yes or no?
I believe I know how to do this but I want to confirm. Using an adc port, I would connect the positive to the in on the button and the ground to the signal/receive? yes or no?
ADC would be across signal and vcc. When the switch is closed it makes the circuit which puts the voltage on the signal pin and can be detected by ARC.
Cheers
Your body has an electro static field. When you put your hand near the switch, it may return a false positive because your body will discharge to the floating input pin.
Resistors help prevent that
I'm looking to wire in a push-to-make switch on D0 and am having the floating phenomena too. As @DJ points out, if I put my hand anywhere near the wires it sets D0 to "on" in ARC. Am I right in thinking that I should be looking at a pull-up resistor that is wired up like this? *confused*
By my understanding, this will mean the signal is in a high-state when the switch is open, and low-state when the switch is closed (as the current now flows to ground).
Edit: ... I've just realised you stated EZB v4, sorry I should have mentioned I'm on EZB v3
If you use an ADC port you could use multiple switches I believe, sort of like
this.
V3 same, in fact definitely +5 on the vcc pin. On the v4 it is unregulated pass through from the input voltage.
Alan
Antiboy, There is a ADC meter control in the add control menu. You can wright an EZ script to watch the value returned and have the servos or anything else react to the changes to the values returned. Have fun.