Read Digital icon Read Digital — Read TTL digital input from an ARC I/O port; real-time red/green status for low (0V) or high (+3.3/5V), selectable board/port and read interval. Try it →

ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
United Kingdom
#9  

Hey guys! Sorry to dig up an older post, but I could do with some assistance wiring in a switch too and this one seems totally relevant.

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

User-inserted image

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).

#10  

Here's how I wire bump switches to the EZB(4)

User-inserted image

Author Avatar
United Kingdom
#11  

Thanks @Robot-Doc. Maybe I need to re-research pull-up and pull-down resistors then! blush Am I right to say the "+5V" on your diagram relates to the middle pin on the EZB? Also, I calculated a 5k ohm resistor so I'm assuming my maths is totally bogus? Cheers:)

Edit: ... I've just realised you stated EZB v4, sorry I should have mentioned I'm on EZB v3

#12  

I wire mine like @Robot-Doc too. Only I tend to use a 1K resister.

If you use an ADC port you could use multiple switches I believe, sort of like this.

#13  

Quote:

Edit: ... I've just realised you stated EZB v4, sorry I should have mentioned I'm on EZB v3

V3 same, in fact definitely +5 on the vcc pin. On the v4 it is unregulated pass through from the input voltage.

Alan

Author Avatar
United Kingdom
#14  

Thanks @thetechguru and @JustinRatliff, I think I've cracked it with a 5k resistor :)

#15   — Edited

What do you use to see the value and how do you use that to control the robot?

#16  

Judging by your question, perhaps you should start by Googling... "what is a robot" and go from there...