I have the below setup for a powerbank powered setup using Arduino Mega and ws2812b led lights. I have a capacitor connected to usb cable - arduino vin (as discussed here: Using capacitors on projects )
Something strange happens using this setup with Arduino Mega which I did not notice with the same setup using Nano or NodeMCU boards:
- I need to plug in the USB power FIRST and then connect WS2812b lights, otherwise Arduino does not power up. If I connect the LEd lights, and then plug usb to power the setup, there is no power.
- If I plug in the USB power first, and then DO NOT PLUG the LED lights, arduino restrarts after about 10 seconds.
Do you have any idea why such an issue might happen?