0
votes

This is what I get when I upload the program. I'm connecting the Bluetooth module to my Arduino UNO board.

avrdude: ser_open(): can't open device "\.\COM5": The network location cannot be reached. For information about network troubleshooting, see Windows Help.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

8
What happens if you try uploading without the Bluetooth module connected to the Uno?per1234

8 Answers

2
votes

User Peki on https://forum.arduino.cc/index.php?topic=302362.0 said to go to "Tools/Port" in the arduino menu. Select your port and you should be good to go. Worked for me at least.

1
votes

I saw the same error many times and the solution for me was to reconnect the usb cable to the UNO.

You can also check if you have the correct port selected (COM5).

0
votes

The UNO only has 1 Tx/Rx pair. You'll have to power off or otherwise disconnect the the Bluetooth shield when programming the board because the Bluetooth shield is in control of Rx.

In other words you can't send data over the USB serial interface since the Bluetooth is in control. It's a pain.

0
votes

You need to choice the correct board type you have connected and going to upload your program in.

as you are using Arduino UNO board, go to menu Tools -> Board and select "Arduino/Genuino UNO" board type, next select the port from Tools -> Port to the port it's connected to. Now you will successfully upload your program.

0
votes

I had the same issue. Found that I have another SW running which default connects to any COM port that

0
votes

If you are using the Arduino simulator then disconnect the simulator from Arduino by clicking on the Break icon then upload code to Arduino from Arduino IDE. Now after upload complete you can connect simulator with Arduino and uploaded code will work with simulator.

0
votes

Go to tools and check port and board. If they are correct then I am assuming you have connected RX and TX of Arduino.

As you are using a Bluetooth module so the RX and TX of your Arduino will be connected to the module. Before uploading the disconnect them and upload the code. After uploading and disconnecting the USB connect the RX and TX again. This has solved my problem.

0
votes

first check for correct port is chosen next this happend to me check for power, sometimes when board don't get proper current (if you are using laptop at low power) attach charger to laptop.