Skip to main content
Arduino

Timeline for How do I provide a negative current?

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Feb 27, 2019 at 23:15 comment added Arseni Mourzenko Interesting. I found that they have each a resistor by testing the board with a multimeter, but given my low experience with electricity, I may have made a mistake. I was also under impression that if I don't use a resistor, I'll burn the board if I set pinMode to INPUT instead of INPUT_PULLUP. I'm happy this impression is wrong (since the board is still alive).
Feb 27, 2019 at 22:16 comment added Roberto Lo Giacco Then the part in the question where you state all those components are "connected to ground with their own resistor" was wrong: there are no resistors in series with the buttons.
Feb 27, 2019 at 21:38 comment added Arseni Mourzenko @RobertoLoGiacco: because digitalRead always returns 1, independently of whether the button is pressed or not.
Feb 26, 2019 at 23:46 comment added Roberto Lo Giacco Why using analogRead instead of digitalRead?!? Please consider analog sampling is a lot slower than reading a digital value... You said there are resistors connected to the buttons: those resistors should act as pull-down, forcing the non-pressed buttons to GND so that when you press the button the voltage jumps to 5V while the resistor limits the current flowing.
Feb 26, 2019 at 20:05 history answered Arseni Mourzenko CC BY-SA 4.0

AltStyle によって変換されたページ (->オリジナル) /