# Lego EV3 <-> Wolfram Language

Does anyone know a source for a tutorial how to control a LEGO EV3 with WL?

Thank you,

JJJ

• Seems like this is the most productive strategy; ev3dev.org Mar 31, 2018 at 16:30
• Unfortunately, this is not what I was looking for, because you have to change the firmware of the EV3. Mar 31, 2018 at 18:41
• I realize that Mindstorms is attractive in its simplicity, but why not use a Pi? There is a free Mathematica distro for it. Mar 31, 2018 at 20:44

In the meantime I was able to set up a connection between WL/MMA and my EV3. It was (at the end) very simple, but since I don't know anything about Serial Communications I had to figure out a few things.

In fact, only one line was necessary to set up the connection:

dev = DeviceOpen["Serial", "/dev/tty.EV3-SerialPort"]


I will report later on on further steps. Currently I'm trying to read the device...

JJJ

• As I reported before, I'm able to establish communications between EV3 and WL/MMA. But now, the DeviceRead[dev] always reports a \$TimedOut instead of some date (I know that data is streamed down from the EV3, because I can see it in the MindStorms Home Edition software). Apr 1, 2018 at 10:12
• Of course, if you just want to talk to Mathematica remotely I believe mindstorms supports bluetooth. The rest is basic comms protocol stuff. Apr 2, 2018 at 15:59
• I would still give a good long think to Raspberry Pi. Apr 2, 2018 at 16:04
• Yes, that's true, it's serial communication stuff, but if you don't have any idea (like me), this is an issue... And yes, I will consider Rasp Pi. Apr 2, 2018 at 16:29
• that's why I keep harping on Pi. Running an instance natively is guaranteed to be faster than a remote connection, and in robotics speed is at a premium Apr 2, 2018 at 16:35

I worked with Mindstorms many moons ago. Their (IMO very stupid) stock IDE is based on NI Labquest, which I find to be an unmitigated disaster in the vein of many attempts to give programming abilities to people whose eyes glaze over at the sight of code. If you don't want to replace stock firmware, I think your best strategy is to try to repurpose anything you find that will connect Wolfram to Labview. Sadly, Wolfram's official package is proprietary and closed-source. Shocking, I know.

• I had occasion to "play" with Mindstorms around the time it was first launched (late 90's, IIRC). Coming from a command-line background, I thought the "block-style" programming was cute at best, and counterproductive to learning at worst. Apr 1, 2018 at 0:32
• @J.M. I com from computer music land. They've had things there for a long time like Max/MSP, Processing, and Reaktor, that all still drag themselves over the landscape like pathetic rotting zombies because scary coding is scary. The resulting boggles must be seen to be believed. Apr 2, 2018 at 15:56
• This answer is rather opinion-based, irrelevant and its only link is dead. It neither provides a solution nor a pointer to a tutorial OP asked for. Furthermore, it refers to a "strategy" which is far from triviial but fails to deliver any specifics. Sep 7, 2018 at 15:21