Skip to main content
9 events
when toggle format what by license comment
Aug 9, 2023 at 9:18 vote accept boop
Jul 30, 2023 at 2:24 comment added 6v6gt It is not clear if it matters in this use case but a 65k resistor in parallel with a 50k resistor is effectively a 28.2k resistor. This is very close, allowing for tolerances, to the 27k resistor you are also using meaning that it could be difficult to distinguish between a single button press and at least some combinations of multiple button presses.
Jul 30, 2023 at 1:48 comment added Nick Gammon There seem to be some gaps in your ranges. For example, what if adcValue is 238? But perhaps that is deliberate. You could probably rewrite as only doing greater-than tests. For example, >= 227, then if it fails that, >= 212 and so on. Testing the other limit seems redundant.
Jul 29, 2023 at 22:59 comment added boop @NickGammon I just inserted different resistors to test each of them one by one. That was easier than setting up 6 buttons and was good enough. Just needed to know if it works in general
Jul 29, 2023 at 22:55 comment added Nick Gammon I don't see six buttons here. Is this a work in progress?
Jul 29, 2023 at 20:39 comment added jsotola a comment is the only thing that was appropriate ... only a guess could be provided because of lack of information in the question
Jul 29, 2023 at 20:35 history edited boop CC BY-SA 4.0
added 2 characters in body
S Jul 29, 2023 at 20:29 review First answers
Jul 29, 2023 at 20:45
S Jul 29, 2023 at 20:29 history answered boop CC BY-SA 4.0