rojele
rojele

Reputation: 90

Communicate puredata with Arduino over Serial. Unable to connect to the same port for stablishing communication

As the title indicates, I need to create a bridge betweeen pd and arduino UNO but I can't get it to work. I need to start an arduino process after receiving a message from my computer through puredata, using the comport object. Since comport object in pd doesn't allow me to connect to the port used by arduino (listed trough "devices" message in pd) I don't understand how to stablish a communication between them.

[comport]: could not open device COM3:
failure(5) ERROR_ACCESS_DENIED

Arduino is connected to the computer by usb cable.

Upvotes: -1

Views: 213

Answers (1)

rojele
rojele

Reputation: 90

If been able to sort it out using in arduino.

 #include <SoftwareSerial.h>
SoftwareSerial mySerial(0, 1);

And then referring to the serial with the variable used, mySerial, in this case. Since this moment, when I was trying to do it using a basic included Serial communication, without library, I was not able to find the needed port free in puredata. Now it seems to work well, I cannot figure it out why not before.

Upvotes: 0

Related Questions