/EV3Basic

A basic compiler to target the Lego Mindstorms EV3 intelligent brick.

Primary LanguageC#

EV3Basic

A basic compiler to target the Lego Mindstorms EV3 intelligent brick.

This programming language and development environment is intended as an easy way to use text based programming for the EV3. It was specifically designed to get things running quickly and should help novice programmers to get their first experience.

Microsoft Small Basic Extension

One convenient way to develop programs for the EV3 is to use Microsoft Small Basic (download is free of charge) together with the EV3 extension. With this you have an easy to use development environment where you can build and run programs that control the EV3 brick from your PC.

Installation

  1. Download and install Microsoft Small Basic from http://smallbasic.com/ (requires Microsoft Windows)
  2. Download EV3BasicInstaller.msi from the current release and install the program into the same folder as Small Basic.

Using Small Basic

  1. Start Small Basic and begin writing your program. Use the intellisense documentation to learn about the various parts of the EV3 extension.
  2. If you are a novice to programming, use the link "Beginning Small Basic" on the Small Basic homepage to learn about fundamental concepts and how to generally create programs.
  3. Run your program directly from the Small Basic environment. When you access functions for the EV3 brick (Everything in EV3, LCD, Motor, Sensor, Buttons, Speaker), the program tries to access and control the EV3 brick via an USB connection.

Tutorials

There is a good website available with loads of additional help and info: http://ev3basic.com

EV3 Explorer (with compiler)

The EV3 Explorer can be used to view and organize the files that are currently stored on the EV3 brick. But most importantly it has a built-in compiler that can convert your Small Basic programs to a form that can be executed directly on the brick.

Installation and Startup

Since version 0.9, the EV3Explorer is automatically installed along with the EV3 extension. It can be started from the windows start menu EV3Basic/EV3Explorer.

Use EV3Explorer

The main window is divided in two parts. The left one shows the file system of the EV3, the right shows your local PC file system (both with navigation buttons on top). To transfer (and optionally compile) files, select one file in the right window and click one of the "Compile" or "Download" buttons. Most programs will compile to the EV3 without much problems as long as you do not use unsupported functions. But there are subtle differences for some language constructs which will cause compilation to fail with an error.

Contribute

If you want to contribute to this project, there are certain tasks where I would need help:

  • More testing of the Small Basic extension and the compiler
  • Proofreading the documentation in various languages
  • New translations: See the 'Translations' issue thread for more details on this.

If you absolutely insist, you may also donate money to my paypal account that is linked to my email address (see below).

Contact

For questions, comments, bug reports and feature requests please contact: reinhard.grafl (at) aon.at
or just open a new issue in the github issues section.