Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.
GongYi edited this page Jul 26, 2014 · 3 revisions

Introduction

By the time you get to this page, you probably already know that python-ev3 is a python binding of ev3dev, which is a Debian Linux for the LEGO Mindstorms EV3.

Step 1: Run ev3dev on EV3 and get an ssh session

Follow the steps to make ev3dev working

Step 2: Install python-ev3 on EV3

Python 2.7

  • apt-get install virtualenv virtualenvwrapper python-setuptools python-smbus python-pil
  • mkvirtualenv ev3_py27 --python=python2.7 --system-site-packages
  • workon ev3_py27
  • easy_install python-ev3
  • type deactive to exit

Python 3.4

  • wget https://github.com/topikachu/python-ev3/releases/download/0.0.2/python3-smbus_3.1.1-1_armel.deb
  • dpkg -i python3-smbus_3.1.1-1_armel.deb
  • apt-get install python3 virtualenv virtualenvwrapper python3-setuptools python3-pil
  • mkvirtualenv ev3_py34 --python=python3.4 --system-site-packages
  • workon ev3_py34
  • easy_install python-ev3
  • type deactive to exit

Step 3: Using the EV3 hardware drivers

Here are some guides for using each of the major components.

Step 4: Shutdown

root@ev3dev:~# poweroff