I have created a PCB on which Arduino Pro Mini is installed.
Arduino is powered externally via the VCC pin at about 3.0V and everything works fine. Sometimes, however, when the Arduino is turned on it enters the bootloop with the red LED flashing.The only way to fix is to turn off the power. If it often works, I don't think the problem is too low voltage. Any solution?
I also tried not to load the sketch but the problem is the same. So I'm sure the problem isn't in the code.
So when you say "about 3v" where is the power coming from?
When you turn the board off then "Power it up", what exactly are you doing? i.e. plugging in the power supply or connecting the arduino to an already powered supply...... etc.
Can you post a schematic for your custom "motherboard"?
The power is coming from another device. This device is powered on by an Usb connection (input 5V, output 3V).
If Arduino is in bootloop, I pull the connector off the device that powers it and plug it back in
About the PCB, I would prefer to keep everything private if it is not extremely necessary. In any case, it is made up of extremely simple components. I'm sure the motherboard isn't the problem because I also tried to power Arduino directly.
Could it be a problem in the bootloader? I tried to load MiniCore with Optiboot but the situation doesn't change
I don't really want to imagine a power supply that causes a significant voltage drop with only uC current consumption...
If uC's BOR (Brownout Reset) is enabled, it is quite possible that it will boot and repeat the BOR.
How can I check or how can I set it? If I remember correctly with Optiboot I setted it at 2.7V.
It is BOD or are we talking about two different things?
If you want to know the location of the error, unplug the Pro Mini from the motherboard, supply good 3.3V power and check.
If you installed the Pro Mini on the motherboard, then everything that you connected to its pin is important.
If your motherboard with multiple resistors is secret, it will be difficult for you to get useful advice here.
Sometimes it helps to connect a cap of 100nF~470nF to the reset pin of the uC. This gives the PSU to ramp up. This usually only takes a millisecond or so, but that will be plenty long enough for the uC to already get started and it may get into trouble if the power isn't stable at that point. By keeping reset low a little longer you prevent this from happening.