User Tools

Site Tools


worklog-at-bc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
worklog-at-bc [2014/05/25 20:05]
zoza created
worklog-at-bc [2014/05/27 19:26] (current)
zoza [arduino+python]
Line 2: Line 2:
    
 (physical determinants) (physical determinants)
 +
 {{::​colour-test.gif?​direct&​200|}} {{::​colour-test.gif?​direct&​200|}}
  
Line 9: Line 10:
  
 set up the SD card: http://​arduino.cc/​en/​Tutorial/​ExpandingYunDiskSpace (needs an Internet connection; set it up [[http://​arduino.cc/​en/​Guide/​ArduinoYun#​toc13|like this]] set up the SD card: http://​arduino.cc/​en/​Tutorial/​ExpandingYunDiskSpace (needs an Internet connection; set it up [[http://​arduino.cc/​en/​Guide/​ArduinoYun#​toc13|like this]]
 +
 +arduino >> python
  
 upload an [[arduino-call-python|arduino sketch]] which calls a [[python-osc-arduino|python script]] using Process from the Bridge library upload an [[arduino-call-python|arduino sketch]] which calls a [[python-osc-arduino|python script]] using Process from the Bridge library
 +
 +**! must open the Serial Monitor for the script to actually run !!!**
 +
 +python >> arduino
 +
 +[[bridgeclient.py]]
 +===== python OSC =====
 +
 +install it the regular way:
 +
 +<​code>​
 +opkg update #updates the available packages list
 +opkg install distribute #it contains the easy_install command line tool
 +opkg install python-openssl #adds ssl support to python
 +easy_install pip #installs pip
 +pip install python-osc #installs the osc module https://​pypi.python.org/​pypi/​python-osc/​1.4.1
 +</​code>​
 +not the module i wanted :(
 +
 +install this module instead https://​trac.v2.nl/​wiki/​pyOSC
 +
 +<​code>​
 +### download the module from https://​trac.v2.nl/​raw-attachment/​wiki/​pyOSC/​pyOSC-0.3.5b-5294.tar.gz
 +### untar, cd into the directory
 +### run
 +./setup.py install
 +</​code>​
 +
 +works
 +
 +===== problems =====
 +
 +26.05.2014 15:50 everything stuck, yun can't connect to wifi any more and won't reset 
 +uploaded the Bridge>​WifiStatus example
 +finally the Arduino-bla network is up again; ​
 +
worklog-at-bc.1401048357.txt.gz ยท Last modified: 2014/05/25 20:05 by zoza