Skip to main content
Arduino

Timeline for SOLVED -- Switch PIN, Also Trigger Other Pin in Arduino

Current License: CC BY-SA 3.0

20 events
when toggle format what by license comment
Mar 15, 2016 at 6:01 vote accept ucon89
Mar 15, 2016 at 6:01 history edited ucon89 CC BY-SA 3.0
added 198 characters in body; edited title
Mar 15, 2016 at 1:23 comment added ucon89 @NickGammon I changed my post already.
Mar 15, 2016 at 1:22 history edited ucon89 CC BY-SA 3.0
added 268 characters in body
Mar 14, 2016 at 19:48 comment added Nick Gammon Why when I press switch at PIN 2. SOMETIMES PIN 3 also getting input. - you have LEDs on Pin 2 and Pin 3, not switches. Thus your question doesn't make any sense. Please edit the code, and the schematic, so at least there is some internal consistency.
Mar 14, 2016 at 16:15 comment added James Waldby - jwpat7 Your question says you have "Pin 2 and 3 as INPUT_PULLUP" but in the code pins 2 and 3 are used as outputs to LED2 and LED3. Please edit the question and remove the inconsistency. Also remove "interrupt" from the question title because it appears the question has nothing to do with interrupts.
Mar 14, 2016 at 13:33 comment added Tim I would suggest reading this article hackaday.com/2015/12/10/… (and also part one). Elliot covers all about switches, switching noise and how to solve the problem (debouncing) in software.
Mar 14, 2016 at 13:17 answer added JRobert timeline score: 0
Mar 14, 2016 at 12:26 comment added Majenko I mean delay is always a bad idea regardless of what you are doing - especially when you are reading switches and expecting them to respond in a normal fashion.
Mar 14, 2016 at 12:25 comment added ucon89 @Majenko what do you mean? I didnt understand. Sorry.
Mar 14, 2016 at 11:10 comment added Majenko Lose the delay(1000)
Mar 14, 2016 at 9:59 comment added ucon89 @Nateowami I checking the switch2 and switch3 with multimeter and it doesn't connected. I use lamp switch (on/off) not temporary switch. Simple question: It should be perfectly work, right? I also has different behavior, When I switch on, other lamp also on, less than 1 sec. Check my video youtube.com/watch?v=s6CxPuQya0g
Mar 14, 2016 at 9:47 comment added Nateowami Have you checked your wires to make sure the wires for led2 and led3 don't touch? If they're touching that could make them sometimes light the wrong one. Also, check the wires for switch2 and switch3. What kind of switch are you using?
Mar 14, 2016 at 9:28 comment added ucon89 @NickGammon I have been updated my question with code and schematic. Do you have any experience with this? Because I think it should be something wrong with the Arduino.
Mar 14, 2016 at 9:28 comment added ucon89 @Nateowami, I have been updated my question with code and schematic. Do you have any experience with this? Because I think it should be something wrong with the Arduino.
Mar 14, 2016 at 9:26 history edited ucon89 CC BY-SA 3.0
added 2150 characters in body
Mar 14, 2016 at 8:09 comment added Nick Gammon Is what a common problem? With no schematic, and no code, your question doesn't make any real sense. Please read How do I ask a good question?
Mar 14, 2016 at 8:06 comment added Nateowami Can you post a schematic or a simple diagram of your circuit?
Mar 14, 2016 at 7:22 review First posts
Mar 14, 2016 at 15:13
Mar 14, 2016 at 7:19 history asked ucon89 CC BY-SA 3.0
toggle format

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