I'm trying to implement the circuit as shown with an arduino nano. The project runs fine when powered via USB port of the arduino. However, the code freezes when connected to an AC adapter. When switched back to power supply via USB, the code does not run and resetting the board has no effect. The board starts to work again only when the code is re-uploaded.
Tried the following to troubleshoot the issue with no success.
- Changed the power supply
- Tried with a blink sketch and an example code of U8glib
- Eliminated the MOSFET's Q1 & Q2 to simplify further
The only other component in question seems to be the buck converter connected between the AC adapter and the nano board. But it is rated for 5V,3A and should not be of concern I believe. Appreciate your inputs.
Edit:Uploaded a blink sketch to the nano. Works ok over the USB power. But it starts resetting randomly when connected to the power supply. Swapped the buck converter with an LDO and it seems to work flawlessly. The output of the buck converter reads about 5.18V and according to the Atmega328p datasheet, it can accept upto 5.5V. Could the problem be associated with the switching frequency of the buck?(The stated switching frequency is about 500kHz) P.S- I'm using the nano clone. Not sure if it adheres to the original parameters as stated in the Atmega datasheet.