Skip to main content

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

Prerequisites needed only for Linux

For Macos and Windows you don't need any prerequisites, but for linux you do.

The pyttsx3 python speech library uses system libraries in its implementation. For Macos/Windows the used system 'speak' libraries are always available, but for linux you must sure these are installed with:

 sudo apt update && sudo apt install espeak ffmpeg libespeak1

For linux there are is no binary distribution available for simpleaudio. The Python 3 and ALSA development packages are required for pip to build the extension. For Debian variants (including Raspbian), this will usually get the job done:

 sudo apt-get install -y python3-dev libasound2-dev

Installation

Install with pip:

  pip install ev3dev2simulator

For Windows and Macos all binary dependencies are provided by wheels on pypi, however for Linux the binary extenssion for simpleaudio is compiled when installing.

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

  ev3dev2simulator

The simulator works on all python versions 3.8 till python 3.12.

Using the simulator

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

Metadata

Release files for ev3dev2simulator 2.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ev3dev2simulator 2.0.10
File Size Uploaded Provenance Actions
ev3dev2simulator-2.0.10.tar.gz 309.8 kB Without provenance Details for ev3dev2simulator-2.0.10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ev3dev2simulator 2.0.10
File Interpreter ABI Platform Actions
ev3dev2simulator-2.0.10-py3-none-any.whl Python 3 none any Details for ev3dev2simulator-2.0.10-py3-none-any.whl
ev3dev2simulator-2.0.10-1-py3-none-any.whl Python 3 none any Details for ev3dev2simulator-2.0.10-1-py3-none-any.whl

Total release size: 1.0 MB

Release files / ev3dev2simulator-2.0.10.tar.gz

Download URL ev3dev2simulator-2.0.10.tar.gz
Size 309.8 kB
Tags Source
SHA-256 checksum
How to use checksums
900826e209468a4f1b7836cfc2a48faef924ac1dc2df3b064e546ed0d89ffe97
BLAKE2b-256 checksum
How to use checksums
0cfaf183597923d0c6963eb69eacb66d8de893e8c83952022c3a09025dcd034e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / ev3dev2simulator-2.0.10-py3-none-any.whl

Download URL ev3dev2simulator-2.0.10-py3-none-any.whl
Size 356.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73a62375d4497a448d03fc40fd0046cc03b973dd3875b15a3b14ea4c571872c0
BLAKE2b-256 checksum
How to use checksums
19fdfee1d84fbcc6a98219453ad60ceacca909cb05c74fdb3ab5274c64d61290
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / ev3dev2simulator-2.0.10-1-py3-none-any.whl

Download URL ev3dev2simulator-2.0.10-1-py3-none-any.whl
Size 356.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d04e4eed2eb766567aaf0c0cabe67df066e32cf95230db1385b0ca6affe21d3
BLAKE2b-256 checksum
How to use checksums
fa1613503061a3676109675dfbabab553564c463e2522cf427c102697ca8b923
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Security for ev3dev2simulator 2.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page