Skip to main content
Arduino

Timeline for Change the sequence of LEDs with button press

Current License: CC BY-SA 3.0

21 events
when toggle format what by license comment
Sep 3, 2018 at 15:07 vote accept Nouman
Feb 18, 2018 at 23:26 review Close votes
Feb 27, 2018 at 1:34
Feb 18, 2018 at 23:08 comment added Chris Stratton I'm voting to close this question as off-topic because it has been abandoned by the asker
Feb 18, 2018 at 22:56 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 19, 2018 at 22:20 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 20, 2017 at 11:45 answer added Edgar Bonet timeline score: 1
Dec 20, 2017 at 11:23 answer added Holmez timeline score: 0
Dec 20, 2017 at 9:56 comment added Edgar Bonet 1) Connect the 9 V supply to the "Vin" of the Arduino, not the "5V". Otherwise the Arduino will "work like a charm" only until it dies. 2) Read the Blink Without Delay Arduino tutorial. You will learn that, if you want to do several things in at the same time (like blinking an LED and being responsive to the button), you have to ban delay() from your code.
Dec 20, 2017 at 7:57 answer added 2CoB9 timeline score: 0
Dec 20, 2017 at 7:56 comment added Nouman @Comeister I have connected 9V battery with my arduino but it don't burns. It is working like charm
Dec 20, 2017 at 7:52 comment added 2CoB9 If you put 9V battery on 5V and GND you gonna burn your arduino. For supply your arduino through GPIO: use max 5.5V on GND and VIN.
Dec 20, 2017 at 7:07 comment added jsotola i think that i understand now. ... you have two display modes. ... clicking the button switches modes. .... i think that you are not detecting the button press... write some test code that turns on the led when the button is pressed, off when released ..... also, you will need to debounce the switch when you are switching modes (once you get the switch to work)
Dec 20, 2017 at 6:55 comment added Nouman nothing happens but the led1 and led2 keeps turning on and off .... Since the LEDs are already flashing so when I press the button there is no change in the LEDs flashing i.e. nothing happens.
Dec 20, 2017 at 6:54 comment added Nouman @jsotola I mean there is no change when I press the button.
Dec 20, 2017 at 6:37 comment added Nouman Another example :As the button is kept off , the only led will blink and when the button will be pressed , the led will fade , code Image of the circuit , When I press the button the led keeps blinking , don't fade , why it is so and how to solve this ?
Dec 20, 2017 at 6:29 history edited Nouman CC BY-SA 3.0
deleted 16 characters in body
Dec 20, 2017 at 6:23 comment added Nouman @jsotola I have edited , have a look now.
Dec 20, 2017 at 6:19 comment added Nouman That is quite puzzling now.
Dec 20, 2017 at 6:19 history edited Nouman CC BY-SA 3.0
added 535 characters in body
Dec 20, 2017 at 6:11 comment added Nouman @jsotola I mean that when the button is not pressed , the LEDs will turn off and then turn on again but when I will press the button , the LEDs will be fading.
Dec 20, 2017 at 6:01 history asked Nouman CC BY-SA 3.0
toggle format

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