gfvalvo:
That's ridiculous. Why is the processor powered off between stops? I think there's a fundamental flaw in the design of the code you haven't shown us.
where do you see processor being turned off?
could you refer to the specific code that does that and make suggestion on how to fix it?
thanks
saeidans:
Hello
I am using an Arduino nano to control smart LED to be used for tailgate stop light in my car.
the issue is there is about 6~7 seconds delay when I hit the break on the car where the LEDs should turn on instantly.
my question is how to eliminate the booting delay time?
This is because the OP is trying to make the brake lights operate by powering the Nano up each time the brake is applied.
The OP did I think ask if you could use an input pin to operate the lights and so keep the Nano turned ON all the time the ignition is ON.
If that is the question, then yes you can do it that way, and it will be almost instantaneous.
Can you please post your code and we can advise how to edit your code to do it.
Tom....
6 seconds from poweron to sketch execution sounds about right for the original Arduino Bootloader without Adafruit's "fast boot" fix. Many of the cheap nano vendors are still using that version.
Replace the bootloader and you should be happier (but if you can do that, you can do ISP programming and get rid of the bootloader entirely.)
(yes, continuous power is probably a good idea, if it's available. I was just trying to explain the six-second delay that most people thought shouldn't be there.)
Power-on time for an Arduino with Optiboot should be less than 100ms.