Failed to open serial port COM3 to communicate with board Uno.

345 views (last 30 days)
kim poh chiew
kim poh chiew on 26 Nov 2015
Commented: Anubha GUPTA on 20 May 2021
Encounter this error when i tried to connect my arduino board with my matlab :Failed to open serial port COM3 to communicate with board Uno. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting.
Can anyone solve this?
  9 Comments

Sign in to comment.

Answers (4)

HAMZA ABBASI
HAMZA ABBASI on 24 Jun 2018
clear object name like (clear a) will not work.... write clear all statement in the first line of code
  1 Comment
Pathmashantha Senanayaka
Pathmashantha Senanayaka on 30 Dec 2020
hellow everyone. I want to make serial communication with arduino mega using matlab guide. Can enyone Please show me example code.

Sign in to comment.


Aamil  Patel
Aamil Patel on 5 Mar 2016
Failed to open serial port COM3 to communicate with board Uno. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting.
this is the error message i get
  1 Comment
PRAPTI GANGULY
PRAPTI GANGULY on 21 Mar 2016
I got the same error message. Make sure there is no other object in the workspace. type 'clear' to clear the workspace and then try running the code.

Sign in to comment.


Yehia Khalifa
Yehia Khalifa on 11 Oct 2017
Same issue here. Any solution?
  2 Comments

Sign in to comment.


Amaresh A.R
Amaresh A.R on 20 May 2016
Hello everyone..
when i am trying to connect arduino which is connected on COM2 i get the below error..
"Failed to open serial port COM2 to communicate with board Uno. Make sure there is no other MATLAB arduino object for this board. For troubleshooting, see Arduino Hardware Troubleshooting."
how to overcome this problem... please help TYIA..

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!