Python IDE Intro

Steps for Using the Python IDE on the EV3 with WiFi on Tufts-Wireless Network:

  • With EV3 off, insert the SD-Card and the WiFi Dongle

  • Start the EV3, and let it boot into Linux

  • Go to Network Settings, and make sure the WiFi Dongle is "Powered"

  • Search for Networks; select "Tufts-Wireless" network

  • If connection fails, un-power WiFi Dongle, unplug, plug-back in, and re-power

    • (Make sure your computer is also on the Tufts-Wireless Network.)
  • Once connected to network, go back to main menu and go to File Browse

  • Find and run (click on) the "RunIDE.sh" script

    • This will start a web server on the EV3 brick, and load the proper files. This TAKES A LONG TIME. Give it time. Once it loads, it'll go back to the main File Browse screen.
  • On your computer (on the same network), open up Chrome Browser, and go to the IP address listed on the top of the EV3 Brick's screen

    • The EZ3IDE (the web-based Python IDE) should load in the browser
  • On the left is a file browser that lets you browse folders/files on the EV3, create new folders/files, etc.
    • Clicking on a file will open it in the IDE for you to edit. You can "save," "run," etc from the buttons in the top right.

Here is a video (5 minutes, 30 seconds) showing this process:

Notes:

  • This environment is being served up by the EV3 brick and the files are stored on the EV3 brick. The brick is NOT a powerful processor, and thus things are slow, take a long time, etc. Be patient.

  • If running a program (e.g. some python code), do NOT close the tab (or close the entire browser window). You need the "stop button" in the top right in order to "stop" the program.

  • If you DO get stuck and something isn't working, hold the "back button" on the EV3 brick, and this will "kill everything" (your running program, the web server, the IDE, communication, etc). Once it has stopped, you'll have to re-start the server/IDE (e.g. go to File Browser and find/run the "RunIDE.py" script. Remember, this takes a long time to restart, so you want to avoid this if possible.

    • If the brick is "frozen" and not responding to anything, you might have to restart the brick. Hold the back button + left button + center button all that the same time for 3 or 4 seconds until the brick reboots.
  • Once you are done with a session, be sure to properly shut down the brick (hit back button until you return to main screen, and one more time to bring up "Power Off" dialog) in order to be sure all files are saved properly. If you have important code, make sure to download and save to your local computer so you have backups/copies.  (If you right-click and download a folder, it should zip it up and download the zip file to your desktop.)

Using Bluetooth Connection:

Note that it's possible to use a Bluetooth connection from the EV3 brick directly to your computer (and not use the WiFi Dongle or the Tufts-Wireless WiFi network). Here are the Bluetooth instructions for connecting an EV3 brick running ev3dev to your computer:

http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-bluetooth/

Once the Bluetooth connection has been made and the internet shared, and the EV3 has been assigned an IP address (in the top left), you can then find/run the "RunIDE.sh" server as instructed above, and then go to the IP in your Chrome browser and load the EZ3IDE following the same procedure.