Skip to main content

EV3 simulator for the ev3dev2 library

Project description

ev3dev2simulator: simulator for the EV3 (ev3dev2 API)

The behaviour of the EV3 robot is simulated in the simulator. This is convenient to quickly test programs when you momentarily don’t have access to an EV3.

ev3dev2simulator

You can use the 'ev3dev2' python library to program the EV3. The simulator installs a fake 'ev3dev2' library on the PC. When using this library on the PC, every call to this API is forwarded to the simulator which uses it to simulate the behaviour of the EV3 robot.

For an example see: https://github.com/ev3dev-python-tools/thonny-ev3dev/wiki/Simulator-example
The running program can be seen in the following video: http://www.cs.ru.nl/lab/ev3dev2simulator.html .

The thonny-ev3dev plugin makes it easier to program the EV3 programmable LEGO brick using the Thonny Python IDE for beginners. The thonny-ev3dev plugin for the Thonny IDE comes with the ev3dev2simulator.

For more info about the thonny-ev3dev plugin see: https://github.com/ev3dev-python-tools/thonny-ev3dev/wiki
For more info about Thonny: http://thonny.org

Getting started

The only prerequisites for the simulator are python 3.8.10 and pip. Simulating robot sound works out of the box for Windows and macOS users. Linux user need to install espeak.

First, for windows users it is strongly adviced to install python 3.8.10. For this python version the installation goes smoothly because there are precompiled binary wheels available for all dependencies. Newer versions of python will also work, but then you need a c build environment installed to build the c-code of the simpleaudio package. For macos and linux a c build environment is standard available and install with compiling c-code will not be a problem.

Install python3

  Download Python 3.8.10 from the Python website (https://www.python.org/downloads/). 
  Note: 3.8.10 is the latest 3.8 version with installers.

Install with pip

  pip install ev3dev2simulator

Then you can just run the simulator by running the executable:

  ev3dev2simulator

Using the simulator

The user guide of the simulator can be found on the wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ev3dev2simulator-2.0.7.tar.gz (309.8 kB view details)

Uploaded Source

Built Distributions

ev3dev2simulator-2.0.7-py3-none-any.whl (356.3 kB view details)

Uploaded Python 3

ev3dev2simulator-2.0.7-1-py3-none-any.whl (356.4 kB view details)

Uploaded Python 3

File details

Details for the file ev3dev2simulator-2.0.7.tar.gz.

File metadata

  • Download URL: ev3dev2simulator-2.0.7.tar.gz
  • Upload date:
  • Size: 309.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for ev3dev2simulator-2.0.7.tar.gz
Algorithm Hash digest
SHA256 dfd6c7008e5ad95688b9f2d5175b221c5763e89baa4c2ecddcf4b9c413444ad8
MD5 1b503e7687f92125c60f13b04f61145c
BLAKE2b-256 fcc2f4d5bba2a67f4a1b187376dd722bcf4de5fc02bb906350a7c091847c2a61

See more details on using hashes here.

Provenance

File details

Details for the file ev3dev2simulator-2.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for ev3dev2simulator-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f0e2796a60a11180fdebb44565a1fdd1e4952aaf080b15947fbba06d7f219ac3
MD5 79e7f07eea2dd4c5c603fc63ed38b7b3
BLAKE2b-256 c1ec7632c9d0fba6eaaaa1e9b2300e05ff9fb1fa401635d4dc19fa8d5684032f

See more details on using hashes here.

Provenance

File details

Details for the file ev3dev2simulator-2.0.7-1-py3-none-any.whl.

File metadata

File hashes

Hashes for ev3dev2simulator-2.0.7-1-py3-none-any.whl
Algorithm Hash digest
SHA256 d60f9aa8a9bb54572bb0b5472e1d0ac3c17fb53275e4020077b6372a3428b5a2
MD5 2cd4b0d210f2540099b4ed021923318a
BLAKE2b-256 5855d0396e85dd5b83b8f0dc2f859042c2d085ff38c18bbfbc5d0f69fb66e222

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page