Im building a portable console with raspberry pi and I need to build two Wireless controllers to make it simmilar to Nintendo switch. I projected a arduino standalone board on Eagle and make it by JLCPCB. first of all im using a atmega328PB instead of the arduino uno mcu because its more cheap for me. Its a simple board, only the atmega328PB, the NRF24l01 and some buttons and a analog joytick. Last night, I managed to make all thngs work for some time but when I remove the 5V power from my USB and use the battery with a step up this work very bad. Even when this is using the 5vVUSB power this dont work very good with sometimes stopping without a reason and the NRF24L01 losting a lot of packages on the transmission. Im using a Arduino Micro to be the receiver connected to my laptop by a Micro USB cable and monitoring it by serial. I burnde the bootloader on the atmega328PB using a arduino uno with a special pack of boards for the arduino IDE called "MiniCore" that has the specific mcu Im working with. Can someone help with this? I need thar the controllers can send informatios to the receive that is very short of then with dont losting information. There are something that im doing wrong with my board? there are something that I can do tho improve the connection and reduce the instability? Thank you very much!
Here are some images of my project, the schematic of my standalone arduino and the PCB board layout: (I will put a link to it because i cant send the images here, Im a new user)
Here are the Schematic and photos of the project -> Project Images - Google Drive
(I know that the GND connections aren't OK but I fixed it wit my own hands on the blard)
https://drive.google.com/drive/folders/1fwabbNze1-G1Lub-qn_Ovh1IFzcD_6Hw?usp=sharing