You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
R1 ... R5 can have different values, which might spread the ranges per button more evenlyDataFiddler– DataFiddler2020年10月07日 12:37:27 +00:00Commented Oct 7, 2020 at 12:37
-
2Re "1M": Note that, on the Uno, the ADC is specified for a source output impedance no larger than 10 kΩ.Edgar Bonet– Edgar Bonet2020年10月07日 12:46:23 +00:00Commented Oct 7, 2020 at 12:46
-
2@EdgarBonet The 1M is just a float-prevention pulldown. By having it so high it prevents the input floating with no buttons pressed and at the same time has little effect on the readings. Worst case the output impedance with Button 1 pressed would be 799.36Ω. With nothing pressed there's no output to have an impedance. Just ground through a resistor. Yes, it may slow down the transition from a valid reading to nothing, but that's not a problem.Majenko– Majenko2020年10月07日 15:09:12 +00:00Commented Oct 7, 2020 at 15:09
-
1@Majenko: "nothing" is a valid reading.Edgar Bonet– Edgar Bonet2020年10月07日 15:14:32 +00:00Commented Oct 7, 2020 at 15:14
-
Yes, but it's not an actively valid reading that is being driven by the rest of the circuit - just a "stop it floating" nothingness.Majenko– Majenko2020年10月07日 15:27:57 +00:00Commented Oct 7, 2020 at 15:27