Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
puredata:pduino [2020/01/27 16:56] admin [Arduino and Firmata] |
puredata:pduino [2021/02/04 12:53] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Pduino ==== | + | ===== Pduino |
+ | Controlling an Arduino in Pure Data on a Raspberry Pi.\\ | ||
- | {{: | + | {{: |
- | A workaround for controlling an Arduino in Pure Data on a Raspberry Pi [[https://www.raspberrypi.org/ | + | [[https://puredata.info/|Pure Data]] (Pd) is a visual programming language developed by Miller Puckette.\\ |
+ | [[https:// | ||
+ | The program running on the Arduino is the [[https:// | ||
+ | \\ | ||
+ | This is a workaround for installing Pduino on a Raspberry Pi 4 with [[https:// | ||
+ | |||
+ | ---- | ||
+ | ==== 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: / | ||
+ | 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:\\ | ||
- | {{: | + | |
+ | {{: | ||
=== 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/ | + | It might be /home/pi/Dokuments/ |
- | {{: | + | |
+ | {{: | ||
=== 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.\\ | ||
- | {{: | ||
- | ---- | + | {{: |
- | ==== Arduino and Firmata ==== | + | === Run Pduino |
+ | Download Pduino | ||
+ | $ cd Pd | ||
+ | $ wget " | ||
+ | $ http:// | ||
+ | in Pure Data open arduio-help.pd\\ | ||
+ | Click on " | ||
+ | Select that number | ||
+ | Now your Pduino should work.\\ | ||
- | Install the Arduino IDE: | + | {{:puredata: |
- | $ sudo apt install arduino | + | |
- | Open the Arduino IDE and select in -> Tools -> Board and Port (could look like: / | + | |
- | ---- | + | One can test it by clicking on " |
+ | \\ | ||
+ | Examples: | ||
+ | {{ : | ||
---- | ---- | ||
==== Links ==== | ==== Links ==== | ||
+ | |||
+ | [[https:// | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | ---- | ||
+ | ==== License ==== | ||
+ | |||
+ | This manual is made by **Wolfgang Spahn** 2020.\\ | ||
+ | It is licensed under a [[http:// | ||
+ | |||
+ | < | ||
+ | <a rel=" | ||
+ | </ | ||
---- | ---- | ||
+ |