I am attempting to make the YMFC-AL drone project by Brokking.
Instead of using an Arduino Uno, I'd like to just use the ATMEGA328P stand-alone, by adding a 16 MHz XTAL and two 22pF caps. I just have to switch some wires around (mapping).
The MPU-650 gyro/acc. and the remote control receiver require 5V, and I can no longer rely on the 5V Vout of Arduino. The ATMEGA328P chip then also requires 5V.
1/ About the power source
Do I use the BEC on my ESCs?
These are the ESCs I got, which mentions: "BEC: 2A / 5V (Linear mode)."
Do I use a step-down regulator?
Do I use a separate 9V battery and a 7805 voltage regulator with a 47uF cap? If the battery runs out, the quadcopter, with the motors still running, will fly into something without controls or being able to level itself.
Do I use a regulator, perhaps a LM317, to get the 11.1V LiPo down to 5V? Seems wasteful but that may not be a big deal since the power wasted as heat may be small compared to what the motors use (Source: StackExchange).
2/ About the output pins of the ATMEGA328P
The amount of current which a digital pin is able to source or sink is very limited. Will the switch from Arduino to the ATMEGA chip cause issues for this application? It seems to me that the motors get their power directly from the LiPo battery, and the digital pins going to the ESCs act as Mosfet switching that power ON and OFF.
So that should be OK, or do you see any issues?
3/ A changed diagram
Is it correct to say that all the thin red/black wires would be on the 5V circuit and all the thick red/black wires would be on the 11.1V circuit?
Meaning, if I use my ESC BEC circuit, the VCC and GND wires of one of my ESCs is the input voltage for the ATMEGA328P, MPU-6050 and receiver? All of my ESCs? I don't get how that would work.