I'm considering buying a raspberry pi and camera module, and installing OctoPrint, or more possibly 3DPrinterOS (due to its support for UltiGCode and access anywhere, not just on the LAN), and am wondering whether it's possible to power the Pi directly from the Arduino board of the UM2. (which I believe is an arduino Mega, right?)
Could I just power it off the 5V/GND pins (using a splitter or breadboard) if they are already in use? Or would this draw too much current from the circuit and affect the function of the printer itself?
It would be great if I could, so I can just glue the Pi onto the inside/underside of the printer and not worry about it or know it's there.