Message Boards Message Boards

Microcontrollerembedcode unable to connect to Arduino Yun

Posted 3 years ago

Hi Wolfram Community,

I was able to better pinpoint my problem area in the code that I am using and post it here in the notebook. I am trying to follow this tutorial

Real-time data acquisition

I have an Arduino Yun Rev2 hooked up exactly as it is from the reference. Everything seems to be connecting and resulting as it should be until I reach...

One red light and one green light

Which would indicate that I am missing something. I have the circuit hooked up exactly like the reference but Mathematica says

"MicrocontrollerEmbedCode::nopen: Could not open /dev/tty.usbmodem1411."

What does this mean and what can I try to remedy this? I am attempting to use this to model Simple Harmonic Motion with a spring mass system for a university presentation in April. Any insights or help would be greatly appreciated!

[ScriptCapitalM] = MicrocontrollerEmbedCode[sys, [Mu]c, "/dev/tty.usbmodem1411", <|"I2C" -> i2cspecs, "Libraries" -> bridgeLib, "CompileOptions" -> {Automatic, "-w"}|>]

Hi Jennifer,

I don't think that you should use /dev/tty.usbmodem1411 in a non POSIX environment, usually, in Windows, serials ports are from COM1 to COM9.

POSTED BY: Nicolò Monti
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract