Red Light Stays On EZB and Disconnects
The red LED on the EZ-B is an activity indicator. When the LED is illuminating, that means there has been a data packet received and the EZ-B is processing the packet commands. If the LED stays on, the EZ-B is still processing the command. Normally, a command is processed in milliseconds, which is why the LED flickers when the robot is in use. When the LED stays lit, a command is taking too long to process and will timeout the connection.
The primary reason for the red LED staying on (processing error) is when there is trouble connecting to an i2c device. i2c devices are the eyes of JD, a 4-in-1 sensor, or an RGB 8x8, etc.. Verify the i2c devices are connected and are successfully powering on with the robot.
If you are attempting to run a project which communicates with i2c devices that you do not have connected to the EZ-B, the red LED will stay illuminated and a disconnection will occur. You have two options: 1) Connect the appropriate i2c device to the EZ-B, or 2) Remove the i2c control/script from the project.