@p4co86 Hi, that sounds interesting to me . Can I use the same scheme for pin 9 ? Or with any name I can pin A0 responsive config in ?
-
How to use a wired button?
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
What i can say is that it works with an analog pin.
-
@p4co86 w
which entry you have in the config for analog pin A0 ?"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
just count your gpios, for arduino nano it should be 14 see here:
https://github.com/pimatic/pimatic-homeduinoAnalogSensor example: “…Pin numbering starts at 14 (A0) for the first analog pin.”
for an mega it should be 54
when your last Dig. pin is 20 then A0 should start at 21.
-
@p4co86 I think I understand . Pin D13 is the last Dig.Pin - A0 the first analog - so 14 on Arduino Nano.
Thank you"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
-
@p4co86
Is it meaby possible that u need to use a diode also when u use a button with 4 pins? -
Totally depends on the button. Without specifying it its not possible to answer your question… but most buttons i know don’t need a diode and two pins are connected with each other.
-
This is 3 Years old, i think he solved his problem
-
@michael-rudek
I hope so 2 but now i got a similair situation…
i bought these https://www.banggood.com/100pcs-Mini-Micro-Momentary-Tactile-Tact-Switch-Push-Button-DIP-P4-Normally-Open-p-917570.html?rmmds=myorder
but only when i apply Multimeter (react as diode), between 2 (+), 4 (-) and from my Arduino NANO- 1 (D8), 3 (GND) wil the button react. -
Sorry, i don´t understand your last sentence.
There is no diode in this kind of switches, but there are always 2 pins connected to each other.