Code Monkey home page Code Monkey logo

ev3dev-lang-python-demo's Introduction

ev3dev demo programs

This folder contains several demo programs that you can use to help you in developing your own code. Brief descriptions of each demo are provided below; you can access the full source code and some more detailed information on each by opening the respective folders above.

To install these on your EV3, use git to clone the ev3dev-lang-python-demo repository from github. Your EV3 will need Internet connectivty in order to clone the repository from github.

$ sudo apt-get install git
$ git clone https://github.com/ev3dev/ev3dev-lang-python-demo.git

Running A Program

There are two ways to run a program. You can run a program from the command line or from the brickman interface.

Note that for both running from the command line and running from Brickman the program must be marked as an executable and the first line of the program must be #!/usr/bin/env python3. To mark a program as executable run chmod +x PROGRAM_NAME.py. All of the demo programs are already marked as executable and already have #!/usr/bin/env python3 so you should be fine, we only mention it so you know to do these things when writing your own programs.

Command Line

To run one of the demo programs from the command line, cd to the directory and run the program via ./PROGRAM_NAME.py. Example:

$ cd ~/ev3dev-lang-python-demo/robots/R3PTAR/
$ ./r3ptar.py

Brickman

To run one of the demo programs from Brickman, select the program in the File Browser.

Demo Programs

BALANC3R

Laurens Valk's BALANC3R - This robot uses the gyro sensor to balance on two wheels. Use the IR remote to control BALANC3R

EV3D4

EXPLOR3R

Lauren Valk's EXPLOR3R

MINDCUB3R

David Gilday's MINDCUB3R

TRACK3R

A basic example of Object Oriented programming where there is a base TRACK3R class with child classes for the various permutations of TRACK3R

More robot programs

The LEGO Mindstorms EV3 Comparison project sports a few other robot programs in addition. Its comparison table also lists programs created for other platforms than ev3dev.

ev3dev-lang-python-demo's People

Contributors

dwalton76 avatar gregcowell avatar bittner avatar antoniluongpham avatar wasabifan avatar wallk avatar bertlindeman avatar ddemidov avatar gideongrinberg avatar claudiuo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.