Using IPython on Lego EV3 Robots Running Ev3Dev

In part so I don’t lose the recipe, here are some notes for getting up and running with IPython on a Lego EV3 brick. The command lines are prefixed to show whether we’re running them on the Mac or the brick… To start with, we need to flash a microSD card with an image of … Continue reading “Using IPython on Lego EV3 Robots Running Ev3Dev”

Simple 2D ev3devsim Javascript Simulator Running as an ipywidget in Jupyter Notebooks

So… …for a course revision upcoming, I’ve been tweaking a thing. The thing is ev3devsim [repo], a Javascript powered 2 robot simulator that allows you to execute Python code, via Skulpt, in the browser to control a simple simulated robot. The Python package used to control the robot is a skulpt port of ev3dev-lang-python, a … Continue reading “Simple 2D ev3devsim Javascript Simulator Running as an ipywidget in Jupyter Notebooks”

Getting nbev3devsim (jp_proxy_widget wrapped Javascript App) Running In JupyterLab With JupyterLab-Sidecar

One of the blockers I’ve had to date running the nbev3devsim simulator in JupyterLab was the requirement to have just a single instance of the widget running in a notebook. This is an artefact (I think) of the jp_proxy_widget having a hardwired HTML element reference that needs to be unique. The JupyterLab sidecar widget offered … Continue reading “Getting nbev3devsim (jp_proxy_widget wrapped Javascript App) Running In JupyterLab With JupyterLab-Sidecar”

Pondering New Ways of Programming Lego EV3 Mindstorms Bricks

We’re due to update our first level residential school day long robotics activity for next year, moving away from the trusty yellow RCX Lego Mindstorms bricks that have served us well for getting on a decade or so, I guess, and up to the EV3 Mindstorms bricks. Students programmed the old kit via a brilliant … Continue reading “Pondering New Ways of Programming Lego EV3 Mindstorms Bricks”

Thinking Around the Edges – Lego EV3 Robots Running Remote Jupyter Kernels

I’ve been pondering the use of Lego EV3 robots on the OU TXR120 residential school again, and after a couple of chats with OU colleagues Jane Bromley (who just won a sci-fi film pitch competition run by New Scientist) and Jon Rosewell (who leads on our level 1 robotics offerings), here’s where I’m at on … Continue reading “Thinking Around the Edges – Lego EV3 Robots Running Remote Jupyter Kernels”

Running Python Programmes on the Lego EV3 via the EV3 File Browser

A quick note to self… If we test python scripts on an EV3 brick interactively via a Jupyter notebook and then save the notebook as a python file (eg Untitled1.py), we can get the Python file over to the EV3 brick and into a state we can run it from the file browser by using the following recipe: … Continue reading “Running Python Programmes on the Lego EV3 via the EV3 File Browser”

Setting Up PyCharm To Work With a Lego Mindstorms EV3 Brick

Notes based on Setting Up a Python Development Environment with PyCharm for setting up PyCharm editor (I use the free Community Edition) to work with EV3. Requires passwordless ssh into the brick and the brick on 192.168.1.106. We’re going to go round the houses with git checkins to move stuff from the Mac and the PyCharm … Continue reading “Setting Up PyCharm To Work With a Lego Mindstorms EV3 Brick”

Sharing Files With a Lego EV3 Brick Over Wifi Using Filezilla

A handy comment on the ev3dev github repository shows how easy it easy to share files between a laptop/desktop computer and a networked Lego EV3 brick over wifi. For a brick on e 192.168.1.016, from the Filezilla File -> Site Manager… menu We can also set the default directory on the brick (as well as … Continue reading “Sharing Files With a Lego EV3 Brick Over Wifi Using Filezilla”

OpenRobertaLab – Simple Robot Programming Simulator and UI for Lego EV3 Bricks

Rather regretting not having done a deep dive into programming environments for the Lego EV3 somewhat earlier, I came across the block.ly inspired OpenRobertaLab (code, docs) only a couple of days ago. (Way back when , in the first incarnation of the OU Robotics Outreach Group, we were part of the original Roberta project which was … Continue reading “OpenRobertaLab – Simple Robot Programming Simulator and UI for Lego EV3 Bricks”

Running Blockly On An EV3 Brick

Based on WasabiFan/blockly-ev3dev, it seems we can run blockly from a Lego EV3 brick. I managed to see blockly on default port 8000 by copying the following files from WasabiFan‘s repo into the same directory in a EV3 folder (Sharing Files With a Lego EV3 Brick Over Wifi Using Filezilla), and then running python server.py … Continue reading “Running Blockly On An EV3 Brick”