Timeline for Reading switches without a common ground from Arduino
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 28, 2014 at 9:10 | comment | added | BenMorel |
Thanks, Arduino does have the pull-ups, so I've done it this way: pin A to 0 , pin B , D and F as INPUT_PULLUP , then read their values. Repeat with pin C against B , F and D , and finally pin E against D and F !
|
|
Jul 28, 2014 at 9:07 | vote | accept | BenMorel | ||
Jul 28, 2014 at 3:58 | comment | added | nidhin |
@KGregory if the test bit is 0 then internal pull-up can do the job. But I am also not sure if Arduino has this capability.
|
|
Jul 27, 2014 at 20:39 | comment | added | kjgregory | I think you'd have to configure each input with an internal pull-down (not sure if Arduino has this capability). | |
Jul 27, 2014 at 18:31 | comment | added | nidhin | @SpehroPefhany Yes.. I see my mistake. Edited the answer. | |
Jul 27, 2014 at 18:31 | history | edited | nidhin | CC BY-SA 3.0 |
deleted 40 characters in body
|
Jul 27, 2014 at 18:24 | comment | added | Spehro 'speff' Pefhany | I think it will work for up to two switches pressed simultaneously. 1+2+5 is indistinguishable from 7 or both 7 + 1+2+5. | |
Jul 27, 2014 at 18:18 | history | answered | nidhin | CC BY-SA 3.0 |