Erratic Mega Output when connected to USB cable

It's not, that's a separate issue.

  1. USB plugged into Mega - erratic operation
  2. Battery charger attached to battery terminals - erratic operation.
    This is not important, because the robot is not moving, only on
    a test stand and tests can be made without the charger attached.

I'm on my way to the lab where the robot is; I'll send a picture.

John-