As the subject, I have a nano every in a project installed in a RV, powered direct from a tap on the red wire behind the radio, ie fed by chassis/starter 12v battery and switched by the ignition. I figured the Every was designed for vehicle power supply with its wide range. With the key turned on, the Nano runs just fine. I have a heartbeat in the loop to blink the led to indicate its running. 9 times out of ten, after starting the engine, the Nano Every has the power light lit, but the sketch is not running. I even installed the watchdog timer code, but it doesnt help, it doesnt restart, which might indicate its not even running setup AND its not looping. AVR just isnt running at all.
Clearly when the engine is started, the 12v dips very low and the transient brownout results in the AVR not running. Im surprised it doesnt trigger the chip reset properly. It shouldn't be possible to end up in this state. Either the onboard LDO should be smoothed enough to handle the drop, or properly trigger the AVR to reset if its sees this large undervolt drop-out. Instead it seems to be powering the board just fine, the power led is on, but for some reason the sketch isnt running.
Pressing the reset button at this point gets the sketch running just fine as you would expect, and it runs forever while the engine is on, as it should.
Aside from powering it with a 12v-5v buck converter using the micro USB port, which I plan to do, do you have any suggestions or reference circuit showing tried and tested power supply arrangement when using the Nano Every in a vehicle application direct off the vehicle 12v supply, for example off the cigarette lighter? I would guess a huge electrolytic/supercap across the 12v would help, but Im limited on space. How huge is needed? I see the spec says the low limit of supply volts is 6v, so maybe we are going below 6v briefly. But it should trigger reset when the volts recover to 13v when the engine is running. Maybe some external components to trigger a reset are needed?