py-arduino access Arduino from Python

Documents

How to install py-arduino
Common problems
py_arduino.cli.*: How to use
py_arduino.cli.*: Reference

Examples - Low level

Temperature sensing (LM35)

Examples - Web Application

TODO

---

View the Project on GitHub hgdeoro/py-arduino

How to use py_arduino.cli.* after install

You can start using py-arduino from the command line interface (cli) without actually writing Python code (see the reference for furder information). There are scripts to:

To use these scripts, you need to:

Virtualenv

Activating virtualenv

You must activate the virtualenv to use py-arduino, using something like:

source /path/to/py-arduino/virtualenv/bin/activate

or

. /path/to/py-arduino/virtualenv/bin/activate

(note the space between the . and the path to activate).

After activating the virtualenv, your prompt will chage: a (virtualenv) will be prepended.

PYTHONPATH

If you cd to the py-arduino directory, you won't need to set the PYTHONPATH, the scripts just works:

No need to set PYTHONPATH

If you want to run py-arduino from other directories, you'll have to set PYTHONPATH:

You need to set PYTHONPATH