Skip to main content

python wrapper for simavr which is AVR and arduino simulator.

Project description

pysimavr is a python wrapper for simavr which is AVR and arduino simulator

Links:
Features:
  • python wrapper using swig

  • simavr source code is included for easier installation

  • object oriented interface on top of the generated interface

  • maximum speed can be real-time

  • serial communication

  • check simavr documentation

Known problems:
  • included simavr source code is not up to date

  • Python 3 is not supported

  • tested only on linux

  • more tests needed

  • PWM simulation is not real-time

  • missing PWM modes

  • a lot of messages on stdout

  • LCD simulator is not fully implemented

Possible usage:
  • unit test

  • simulator

Similar projects:

Basic usage

>>> from pysimavr.avr import Avr
>>> avr=Avr(mcu='atmega48',f_cpu=8000000)
>>> firmware = Firmware('lcd.elf')
>>> avr.load_firmware(firmware)
>>> from pysimavr.sim import ArduinoSim
>>> print ArduinoSim(snippet='Serial.print("hello!");').get_serial()
hello!

Installation

check simavr doc: http://gitorious.org/simavr/pages/GetStarted

ignore these in simavr doc:
  • OpenGl (freeglut)

  • gcc-avr

  • avr-libc

  • make

General

  • install python

  • install setuptools

  • install swig (for source build only)

  • install header files and a static library for Python (for source build only)

  • install a compiler (for source build only)

  • install elf library

  • install the program:

    # as root
    easy_install pysimavr

Ubuntu

sudo apt-get install python-setuptools
sudo apt-get install swig
sudo apt-get install python-dev
sudo apt-get install gcc
sudo apt-get install libelf-dev
sudo easy_install pysimavr

Uninstall

first install pip:

# as root
pip uninstall pysimavr

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

pysimavr-0.0.4.tar.gz (191.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysimavr-0.0.4-py2.6-linux-i686.egg (1.1 MB view details)

Uploaded Egg

File details

Details for the file pysimavr-0.0.4.tar.gz.

File metadata

  • Download URL: pysimavr-0.0.4.tar.gz
  • Upload date:
  • Size: 191.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysimavr-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2953d5380865f7d1d863f0962ba2abfdd5cf80a536baf550513342d7c3b7619b
MD5 c33ebf81e86487cbd7bb985e79a184a1
BLAKE2b-256 f30f90a955913ea47bb8cfc2da36a0554f0ab67366b8315eaa09a006aa0951e4

See more details on using hashes here.

File details

Details for the file pysimavr-0.0.4-py2.6-linux-i686.egg.

File metadata

File hashes

Hashes for pysimavr-0.0.4-py2.6-linux-i686.egg
Algorithm Hash digest
SHA256 b6cbd8692964b1d09ba93254e633604a77ffc9e324425c188931ab76c69626df
MD5 fd708cd79ea610b4801d18a908a9d101
BLAKE2b-256 85417015ea851019ee82d3a2046218d78b1d4fbf6c5d308638c746ef30d728b5

See more details on using hashes here.

Supported by

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