A collection of Python and Arduino source files to plot data in real time.
- Install requirements by running
pip install -r requirements.txt
. - If you're using MacOSX you must add the following function to your
~/.bash_rc
thensource ~/.bash_rc
to make that command available.
function frameworkpython {
if [[ ! -z "$VIRTUAL_ENV" ]]; then
PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python "$@"
else
/usr/local/bin/python "$@"
fi
}
Setup Arduino to be something like this:
![Image of circuit] (http://i64.tinypic.com/3h4k8.png)
- On a mac
frameworkpython src/python/stream_data.py
- else
python src/python/stream_data.py