Program your VEX IQ in Python for FREE with Robot Mesh

We’ve just released the Beta 2 of our Python programming language http://www.robotmesh.com/project and it’s free!

Use now: http://www.robotmesh.com/project
API documentation: http://www.robotmesh.com/docs/vexiq-python/html/index.html

Many more examples, videos and curriculum will be coming soon!

Thanks,
Anthony

anthony@robotmesh.com
http://www.robotmesh.com

e6f7b6df2bf02ff32d1e17a3578a84be.jpg

Thanks for posting this !
I’m glad to see PyMite is making its rounds into an open-source tool to write Python on Robots running ARM processors.
I’ve found that teaching new students Python is much easier and more intuitive than C.

Can you walkthough the connection process? I’m a bit confused on how to connect and load a program on the IQ brain

Here’s a simple set of instructions for VEX IQ. We’ll be publishing some more videos soon: [LIST=1]

  • First, ready your VEX IQ Brain by downloading and installing the most recent VEX IQ firmware from www.vexiq.com/firmware. Robot Mesh Python requires version 1.10 or later.
  • In order for your web-browser to connect to the Brain, you will need to download and install the Robot Mesh Connect plug-in from http://www.robotmesh.com/project/install. We currently support the latest Chrome, Firefox and Internet Explorer on Windows (Mac support will be coming soon). Refresh http://www.robotmesh.com/project/install after installing the plug-in to verify it's installed correctly.
  • Open the simple One Touch LED project (currently top of the Featured Projects list at http://www.robotmesh.com/project) or directly at http://www.robotmesh.com/project/113.
  • Make sure that your VEX IQ Brain is connected via the USB cable.
  • Look at the top where there is the **Port:** drop down. Choose the COM port to which the VEX IQ Brain is connected (e.g. **COM10 VEX USB**). If the port is not listed, click the **Refresh **button to refresh the devices listed in the drop down.
  • Connect a touch LED to port 1 of the VEX IQ Brain.
  • Now that the port is selected, click **Build** and the python program will be saved, compiled and downloaded to the VEX IQ,
  • The program will then run immediately, so touch the Touch LED and see that it turns on, also note the "LED on" is printed in the status panel at the bottom of the browser window. [/LIST] Now, to create your own python program: [LIST=1]
  • Return to http://www.robotmesh.com/project and click **Create a New Project**
  • Enter a new project name and select **VEX IQ Python-Project** and click **Create.**
  • Connect the VEX IQ brain to the USB port.
  • Choose the correct port from the **Port: **drop down.
  • Connect the devices (sensors/motors) to the VEX IQ brain.
  • Click **Connect **at the top of the right-side panel. This will connect to the brain.
  • Click **Detect Sensors** and this will fill-in the sensors/motors in the right-side panel. The sensor values will be shown in real-time. And the motors can be tested by clicking on the value. Clicking the drop down arrows to the right of the sensors/motors allows further selections to be made (e.g. calibration of the distance sensor, or reversal of the motor direction).
  • You can now name the sensors/motors in the text fields in the right-side panel.
  • All chances in the right-side panel are written into your Python program within the **#region** comments
  • Use of the right-panel makes it very easy to setup your program with the objects for the sensors/motors.
  • Now continue to write your python program in the main pane.
  • Click **Save** to save the program to the Robot Mesh cloud storage.
  • Click **Build** to compile, download and run on your VEX IQ. [/LIST] Python API documentation is here: http://www.robotmesh.com/docs/vexiq-python/html/index.html

    Note that downloading a Python program to your VEX IQ brain will clear any program stored in slots 1 - 4.

    You’re welcome to ask specific programming questions here. Or in the Robot Mesh Python forum at http://www.robotmesh.com/forum/python-for-vex

    Yes, we used the fantastic PyMite embedded runtime as the basis for this project. We’ve made several major enhancements to the runtime, including using flash for static objects which allows large python programs to be written for the VEX IQ brain. Our terms of service can be found here: http://www.robotmesh.com/projects-terms

    Thanks,
    Anthony

  • I’d love to be notified when MacOSX support arrives. Is there a mailing list I could subscribe to?

    Tom

    Hi Tom. We don’t have a mailing let yet. Our forum over at http://www.robotmesh.com/forum/python-for-vex will include details of when MacOSX support becomes available.

    We’ve just released the Beta 3 which includes faster downloads (by only downloading differences in the compiled program) and we’ve added the Python math module (which includes trig functions).

    Use online now at http://www.robotmesh.com/project

    Thanks,

    Anthony
    anthony@robotmesh.com
    www.robotmesh.com

    Just released our support for Mac OS X. We now support Mac OS 10.9 and 10.10 in the Chrome Browser. Go to http://www.robotmesh.com/project/install to install the plugin and extension for Mac!

    Will there be a stand alone version of this? There are lots of places that I end up that don’t have an open wi-fi connection.

    Thanks!

    Yes, we’re about a week away from release (PC Windows only to start with). I’ll announce here when it’s available.

    Thanks,
    Anthony

    Any update on the standalone version?

    Thanks!

    Yes. We’ll be announcing pricing for the standalone version at Worlds next week. The standalone version will be released at the beginning of May (Windows only to begin with).

    The Python and Blockly VEX environments look great! Do you have a release date for the standalone version for Mac?
    Also, in the Blockly version, I wonder why there is no if/then/else logic block?

    Regarding my second question, I found the if/then/else block, hidden in the star!

    One more question, if anyone knows, why is there no Python (and thus Blockly) class for programming sound on the VEX?