Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython

pysimavr is unavailable in PyPM, because there aren't any builds for it in the package repositories. Click the linked icons to find out why.

 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.0Never BuiltWhy not?
0.0.7 Failed View build log
0.0.6 Failed View build log
0.0.5 Failed View build log
0.0.4 Failed View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Failed View build log
0.0.0 Failed View build log
Windows (64-bit)
0.1.0Never BuiltWhy not?
0.0.7 Failed View build log
0.0.6 Failed View build log
0.0.5 Failed View build log
0.0.4 Failed View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Failed View build log
0.0.0 Failed View build log
Mac OS X (10.5+)
0.1.0Never BuiltWhy not?
0.0.7 Failed View build log
0.0.6 Failed View build log
0.0.5 Failed View build log
0.0.4 Failed View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Failed View build log
0.0.0 Failed View build log
Linux (32-bit)
0.1.0Never BuiltWhy not?
0.0.7 Failed View build log
0.0.6 Failed View build log
0.0.5 Failed View build log
0.0.4 Failed View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Failed View build log
0.0.0 Failed View build log
Linux (64-bit)
0.1.0 Failed View build log
0.0.7 Failed View build log
0.0.6 Failed View build log
0.0.5 Failed View build log
0.0.4 Failed View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Failed View build log
0.0.0 Failed View build log
 
Links
Author
License
GPL
Dependencies
Depended by
Lastest release
version 0.1.0 on Jan 9th, 2014

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 pip

  • 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
    pip install pysimavr
    
Ubuntu
sudo apt-get install python-pip
sudo apt-get install swig
sudo apt-get install python-dev
sudo apt-get install gcc
sudo apt-get install libelf-dev
sudo pip install pysimavr
# optional for examples:
sudo pip install entrypoint2
Uninstall
# as root
pip uninstall pysimavr

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.