Asked — Edited

Pull Down Resistor

I have a switch that is always closed. If it becomes open that is a condition that I take some action. I put together a pull down resistor (based off the attached picture from another post). But I noticed that it gets really warm to the touch. Is that expected? Should I use a larger resistor (or smaller).

Thanks in advance.

User-inserted image


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

#25  

Great thread guys,following this, in all my testing the sonar just can't always see everything when it moves at an angle there are blind spots to the sonar sensor.I have some contact switches salvaged from some wow wee toy robots that seem to work great! Nice to see other people working on these switches and sharing the info! For the newer people that don't have much electronics experience there should be a tutorial on basic wiring setup to the EZB-4,I'm sure there must be more info but the searching is time consuming sometimes.Although with me the answers always pop up quickly with the way EZ Robot web pages work,great job on those that designed the web page! :)

PRO
USA
#26  

PTP

I know you must be getting tired of me. But I have a question about post 19.

So there are 3 pins coming off of the EZB. Black Red White, with Black being ground, Red is VCC, and white is signal.

So based on your drawing the Switch gets connected to Black and White.

I put the resistor on Red and connect inline with the white pin.

PRO
Synthiam
#27  

Keep your existing setup and use any of the ADC ports instead. Your resistor wire mod will work fine if connected to ADC port.

  1. disconnect the cable/plug mod you showed in the picture from the Digital port

  2. connect the cable/plug mod to ADC port 0

Voila.

PRO
USA
#28  

ADC Port it is. Have plenty not in use.

It would be really cool if one of the electronics people would put together a tutorial on this. I think there is some assumed knowledge around electronics that some of us don't have, especially how this wiring stuff relates to the ports on the EzB.

PTP - Thanks for you time and hanging in there with me. I appreciate the help.

Also, thanks to everyone else who jumped in and added support.

#29  

@Ptp, "odd" may have been the wrong word for me to use. I should have said that attaching to the digital ports raised some questions in my mind as to how he was using this button and the best port to attach to. ;)

PRO
Synthiam
#30  

When the button is pressed, it's connecting 3.3v provided by the ADC to the white wire, which is ADC input. The code would have a threshold and look like..


If (GetADC(adc0) > 100)
  say("Button is pressed")
endif

#31  

Quote:

It would be really cool if one of the electronics people would put together a tutorial on this. I think there is some assumed knowledge around electronics that some of us don't have, especially how this wiring stuff relates to the ports on the EzB.

I agree. A tutorial on pull up/pull down resistors and why and where they are used would be great.

Alan