7
$\begingroup$

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

Thank you,

JJJ

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

2 Answers 2

3
$\begingroup$

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

$\endgroup$
6
  • $\begingroup$ 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). $\endgroup$
    – JJJanezic
    Apr 1, 2018 at 10:12
  • $\begingroup$ Of course, if you just want to talk to Mathematica remotely I believe mindstorms supports bluetooth. The rest is basic comms protocol stuff. $\endgroup$
    – jamesson
    Apr 2, 2018 at 15:59
  • $\begingroup$ I would still give a good long think to Raspberry Pi. $\endgroup$
    – jamesson
    Apr 2, 2018 at 16:04
  • $\begingroup$ 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. $\endgroup$
    – JJJanezic
    Apr 2, 2018 at 16:29
  • $\begingroup$ 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 $\endgroup$
    – jamesson
    Apr 2, 2018 at 16:35
0
$\begingroup$

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.

$\endgroup$
3
  • $\begingroup$ 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. $\endgroup$ Apr 1, 2018 at 0:32
  • $\begingroup$ @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. $\endgroup$
    – jamesson
    Apr 2, 2018 at 15:56
  • 2
    $\begingroup$ 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. $\endgroup$ Sep 7, 2018 at 15:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.