I have an Arduino Mega controlling a few sensors and communicating with a few other devices (some not shown). It is powered with 5v from a lipo battery (charged by solar panels). It is connected to my PC (not powered by) for serial communication, and also has serial communication with an Arduino Micro, which itself is connected to the PC (not powered by) to act as a keyboard/mouse.
This all works fine (kinda - see problem 2 below) for now, but i now want to add an ESP32 device. However, the ESP is very power hungry, so i can't afford to power it through my solar charged battery, i have opted to just power it by the mains supply, using 5v, 1A adaptor.
Problem 1: Now i have added the ESP everything works fine, BUT when i turn off the power switch from the battery, the LCD screen still faintly shows what was being displayed before it was turned off. So the LCD is getting powered through the TX2 to RXSS line from the ESP? This doesn't sound good, what is the best way to solve this? (note, all other hardware serial ports on the MEGA are being used, i can only communicate with the ESP over SoftwareSerial, not negotioable! )
Problem 2: a few weeks ago, before i tried to add the ESP, i tried to add a circuit that measured the voltage of the battery, this is a wire from A5 to the positive side of the battery through a 10k ohm resistor. I had to remove this circuit because it was giving me wrong readings (even though i tested the code successfully on a simpler circuit), i think the Micro was being affected by it somehow also, is it possible am i also disrupting the reading by having a serial com with the Micro??
note: RXSS / TXSS = Software serial lines
