Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
puredata:pduino [2020/01/27 17:01]
admin [Arduino and Firmata]
puredata:pduino [2021/02/04 13:16] (current)
admin [Pure Data and Pduino]
Line 1: Line 1:
-==== Pduino ====+===== Pduino on Raspberry Pi ===== 
 +Controlling an Arduino in Pure Data on a Raspberry Pi.\\
  
-{{:puredata:pd_pduino-gui-help_jan2020.png?400|}}+{{:puredata:pd_pduino-gui-help_jan2020.png?|}}
  
-A workaround for controlling an Arduino in Pure Data on a Raspberry Pi [[https://www.raspberrypi.org/downloads/raspbian/|Raspbian Buster]]:\\+[[https://puredata.info/|Pure Data]] (Pd) is a visual programming language developed by Miller Puckette.\\
  
 +[[https://puredata.info/downloads/pduino|Pduino]] is a way to interface an Arduino in Pure Data. Writen by Georg Holzmann, Gerda Strobl, Roman Haefeli and Olsen Wolf.\\
 +The program running on the Arduino is the [[https://at.or.at/hans/pd/objects.html|Firmata]] by Hans-Christoph Steiner, Paul Stoffregen, Shigeru Kobayashi and Jeff Hoefs.\\
 +\\
 +This is a workaround for installing Pduino on a Raspberry Pi 4 with [[https://www.raspberrypi.org/downloads/raspbian/|Raspbian Buster]]\\
 +
 +----
 +==== Arduino and Firmata ====
 +
 +Install the Arduino IDE:
 +   $ sudo apt update
 +   $ sudo apt install arduino
 +Open the Arduino IDE:
 +   $ arduino
 +Select in -> Tools -> Board and Port. The port looks something like: /dev/ttyUSB0\\
 +Open the Firmata program: -> open -> Firmata -> StandardFirmata\\
 +And upload it!
 +
 +----
 ==== Pure Data and Pduino ==== ==== Pure Data and Pduino ====
 === Install Pure Data === === Install Pure Data ===
    $ sudo apt update    $ sudo apt update
    $ sudo apt install puredata    $ sudo apt install puredata
-\\+
 === Install the Externals === === Install the Externals ===
 The comport external should be installed via the terminal:\\ The comport external should be installed via the terminal:\\
Line 17: Line 36:
 Install: zexy, mapping, cyclone and pduino\\ Install: zexy, mapping, cyclone and pduino\\
 The Pd external folder should look like that:\\ The Pd external folder should look like that:\\
-{{:puredata:pd_external_folder_jan2020.png?300|}}+ 
 +{{:puredata:pd_external_folder_jan2020.png?|}}
  
 === Set Path === === Set Path ===
-In Pure Data -> Preferences -> Path set the paths for the zexy, mapping, cyclone and pduino libraries.\\ +In Pure Data -> File -> Preferences -> Path set the paths for the zexy, mapping, cyclone and pduino libraries.\\ 
-It might be /home/pi/pd/externals/....\\ +It might be /home/pi/Dokuments/Pd/externals/....\\ 
-{{:puredata:pd_path_jan2020.png?300|}}\\+ 
 +{{:puredata:pd_path_jan2020.png?|}}\\
  
 === Set for Startup === === Set for Startup ===
-In Pure Data -> Preferences -> Startup set zexy (it will load on launch)\\+In Pure Data -> File -> Preferences -> Startup set zexy (it will load on launch)\\
 Restart Pure Data.\\ Restart Pure Data.\\
-{{:puredata:pd_startup_jan2020.png?300|}} 
  
-----+{{:puredata:pd_startup_jan2020.png?|}}
  
-==== Arduino and Firmata ====+=== Run Pduino ===
  
-Install the Arduino IDE: +In //Pure Data/help/Patch Browser/pduino// open arduio-help.pd\\ 
-   sudo apt install arduino +Click on "devices". The console should tell you witch number your Arduino has.\\ 
-Open the Arduino IDE as administrator: +Select that number and click on "open $1".\\ 
-   $ sudo arduino +Now your Pduino should work.\\ 
-Select in -> Tools -> Board and Port. The port looks something like: /dev/ttyUSB0\\ + 
-Open the Firmata program-> open -> Firmata -> StandardFirmata\\ +{{:puredata:pd_pduino-help_jan2020.png?|}}\\ 
-And upload it!+ 
 +One can test it by clicking on "PinMode 13 output" and then toggel pin 13. The build in LED should turn on and off.\\ 
 +\\ 
 +Examples:\\ 
 +{{ :puredata:pduino_examples.zip |}}\\
  
 ---- ----
 ==== Links ==== ==== Links ====
 +
 +[[https://puredata.info/]]\\
 [[https://puredata.info/downloads/by-category/library]]\\ [[https://puredata.info/downloads/by-category/library]]\\
 [[https://github.com/reduzent/pduino]]\\ [[https://github.com/reduzent/pduino]]\\
 +[[https://playground.arduino.cc/Interfacing/PD/]]\\
  
 +----
 +==== License ====
 +
 +This manual is made by **Wolfgang Spahn** 2020.\\
 +It is licensed under a [[http://creativecommons.org/licenses/by-nc-sa/4.0/"|Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License]].
 +
 +<html>
 +<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a> 
 +</html>
  
 ---- ----
 +