You didn't answer the most important question:How do you know there is a pot and do youbhabe the schematic and what is the voltage across the pot. That is all that matters at this stage. Que le importa las otra cosas si no sabes que necessita de la circuita que maneja la barca ?
1-Are you breadboarding an ATmega328 blind or do you know what you are doing ?2-Do you know how you are going to communicate with the ATmega328 ?3-Does the ATmega328 have a bootloader already ?4-What are you using for a clock ?5-Have you been able to communicate with the ATmega328 yet ?6-Do you know what a schematic is ?7-Can you draw a schematic of your circuit and post a photo of it?8-WHAT EXACTLY have you actually done with this so far ? (have you powered it up? loaded a sketch ? etc etc ?
I have a 12v/4Ah. Do you think if I connect it before the 7805, the 7805 will regulate the voltage and amps to the ATMega328 and doesnt destroy it ?
I would opt for a 2S lipo at 8.4V fully charged and use the 5V regulator.