Skip to content

debiatan/cyrano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Miguel Lechon
Jun 15, 2017
d24cbdc · Jun 15, 2017

History

17 Commits
Jun 15, 2017
Dec 3, 2009
Nov 29, 2009
Nov 30, 2009
Jan 15, 2011
Dec 3, 2009
Dec 18, 2013
Dec 7, 2009
Dec 28, 2013
Dec 18, 2013

Repository files navigation

Cyrano provides a Python interface to control the Arduino Duemilanove device via a serial connection.

Instructions of use (Debian/Ubuntu):
====================================
- Dependencies: gcc-avr, avr-libc, avrdude

- Getting the firmware:
    - From the cyrano webpage:
      Go to 'http://github.com/debiatan/cyrano/downloads' and download the most
      recent version of the file 'cyrano.hex'. Flash it with your favorite tool.
      (To do it using avrdude, try 'avrdude -V -F -C /etc/avrdude.conf -p atmega328p -P /dev/ttyUSB0 -c stk500v1 -b 57600 -U flash:w:cyrano.hex').

    - Building it from source:
        - Getting the source:
            - Through git:
                Install the package git-core.
                Run 'git clone git://github.com/debiatan/cyrano.git'.
            - Through your web browser:
                Visit 'http://github.com/debiatan/cyrano'
                Click on 'download'.
        - Building and flashing the firmware:
            Install the following packages: gcc-avr avr-libc binutils-avr 
                                            avrdude.
            Run 'make' inside the 'cyrano' folder to generate the file 
            'cyrano.hex'.
            Connect the arduino via USB. Normally, it will be assigned the 
            device identifier '/dev/ttyUSB0'.
            Run 'make upload'. If you get a timeout, try pressing the reset 
            button in the Duemilanove and quickly running 'make upload'.

- Accessing the Duemilanove from python:
    Install the package python-serial.
    The 'Pyrano' class makes available to the user the calls:
        - pinMode(pin, mode)
        - digitalRead(pin)
        - digitalWrite(pin, value)
        - analogReference(type)
        - analogRead(pin)
        - analogWrite(pin, value)
    They share the semantics described by the low-level arduino API:
          http://arduino.cc/en/Reference/Extended
    For an example of use, see the accompanying example 'test.py'.

- License
    See COPYING

About

Arduino Prototyping Python Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published