Serial COM Port gets busy while uploading Ping Sonar Code

Hi, I am using blue robotics Ping Sonar to my AUV. However, while uploading its code, the Serial COM port is shown busy. Also whenever I plug out the serial pins of the ping it gets uploaded. I am new to this . Please help me out. :slight_smile:

Hi @kripa_bakde -
What code are you referring to uploading? The Ping2 Sonar reports data over serial. Are you trying to perform a firmware upgrade?

I’m using the “ping-1d simple mega” example arduino code as I’m using the Arduino Mega 2560

Can you share any photos or wiring diagrams of your setup? You should be connecting via USB to program the Arduino and monitor its serial output, and one of the Mega serial ports to connect the Sonar?
If you’re new to Arduino this video may help, as it covers use of the platform with another one of our products. Note that I2C communications are not equivalent to Serial!