Appropriate size pull up resistor?
Chris_D
Posts: 305
Hey all,
I am wondering what is a good value pull up resistor.· Normally I use 10k on 5 volt micros and in rare cases that is a bit too high.· With the prop and 3.3v, I am not sure what to use - I have used 10k but also have had a bit of trouble with false triggers on some inputs.
Thanks
Chris
I am wondering what is a good value pull up resistor.· Normally I use 10k on 5 volt micros and in rare cases that is a bit too high.· With the prop and 3.3v, I am not sure what to use - I have used 10k but also have had a bit of trouble with false triggers on some inputs.
Thanks
Chris
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" 16:9 LCD Composite video display, eProto for SunSPOT, PropNET, PolkaDOT-51
www.tdswieter.com
Thanks for responding.· The particular inputs I am dealing with are used for limit switches on a motion system.· While I certainly do have contact bounce on the snap acting switch, I am able to deal with that in software.· These switches switch to ground when made so the only thing holding them high is that 10k resistor.· I probably am dealing with some noise as this is a small machine with a lot of wires running in close proximity to each other.· Shielded cables are used on the limit switches to help with noise too.· I suspect a lower value resistor would help eliminate the false triggers but just don't have enough "smarts" to select a strong pull-up signal without over loading the input pin.
Chris
A pin as an input is not driving or sinking any current. So lowering the pull up resistance only increases the current through the switch.
Next limit is your power supply, the lower your pull up values the more juice is consumed, worth thinking about for battery operated equipment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
Regarding the .1 uF cap on the input pin, will this help with the debounce effectively?· This board is nearly all surface mount so experimenting is a bit on the difficult side.·
Chris
You said.
"If I am right, I need to include a 1k series resistor between the point at the pull-up and the input pin. Can someone confirm this for me?"
Yes - You are correct!
Regards
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
The cap would help with debounce. the size of the cap will vary based on the circuit characteristics.
Depending on the length of the run of wires to the switch and the type of switch it is, it may have trouble making or breaking with the small current. Each time contact make or break there are tiny, tiny, tiny arcs (or sometimes big arcs). Contact is made when the circuits are electrically connected, which sometimes may require more current. You may be loosing umph if your limit switch is a fair distance from the pull-up resistor or the cable is sized improperly.
It sounds like your system has been running for sometime, so it is obviously working - but maybe perhaps there are enhancements to make and thus the reason for your questions.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" 16:9 LCD Composite video display, eProto for SunSPOT, PropNET, PolkaDOT-51
www.tdswieter.com