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
Last revision Both sides next revision
puredata:gpio [2020/02/15 21:28]
admin [Links]
puredata:gpio [2020/03/06 19:27]
admin
Line 4: Line 4:
  
 {{:puredata:pd_wiringpi_mcp3008_gpio-help_jan2020.png?|}} {{:puredata:pd_wiringpi_mcp3008_gpio-help_jan2020.png?|}}
 +
 +[[https://puredata.info/|Pure Data]] (Pd) is a visual programming language developed by Miller Puckette.\\
  
 [[http://wiringpi.com/|Wiring]] for the Raspberry Pi was written by Gordon Henderson.\\ [[http://wiringpi.com/|Wiring]] for the Raspberry Pi was written by Gordon Henderson.\\
Line 30: Line 32:
  
 === Install the WiringPi for PD === === Install the WiringPi for PD ===
 +
 Download: {{ :puredata:pd-wiringpi.zip |}}\\ Download: {{ :puredata:pd-wiringpi.zip |}}\\
 +   $ wget www.dernulleffekt.de/programme/pd-wiringpi.zip
 +   $ unzip pd-wiringpi.zip
 +   $ cd pd-wiringpi/
 +   $ cp -R wiringPi_gpio/ /home/pi/Pd/externals/
 +   $ cp -R wiringPi_mcp3008/ /home/pi/Pd/externals/
 +
 Unzip and copy the wiringPi_gpio and the wiringPi_mcp3008 folder in the PD external folder.\\ Unzip and copy the wiringPi_gpio and the wiringPi_mcp3008 folder in the PD external folder.\\
-/home/pi/Documents/PD/externals\\ +   /home/pi/Pd/externals 
-In Pure Data -> Preferences -> Path set the path to these two folders.\\+One has to run Wiring PD with administration rights: 
 +   $ sudo pd 
 +In Pure Data -> Preferences -> Path set the path to the two external folders. You might have to set the path for the PD folder, too. It should look like that.\\ 
  
 {{:puredata:pd_wiringpi_path_jan2020.png?|}}\\ {{:puredata:pd_wiringpi_path_jan2020.png?|}}\\
  
 +=== Or install pdwiringPi ====
 +
 +An other wiringPi external is that one [[https://github.com/garthz/pdwiringPi]] by Garth Zeglin. It also support PWM over GPIO for the pins: 12, 13, 18, 19.\\
 +   $ wget https://github.com/garthz/pdwiringPi/archive/master.zip
 +   $ unzip master.zip
 +   $ cd pdwiringPi-master
 +   $ make
 +There should be a new folder called "pdwiringPi". Add that one the Pure Data -> Preferences -> Path.\\   
 +
 +----
 === Pin Configuration === === Pin Configuration ===
 The Wiring library has its own [[http://wiringpi.com/pins/|pin labeling]]:\\ The Wiring library has its own [[http://wiringpi.com/pins/|pin labeling]]:\\
Line 92: Line 113:
 Wiring:\\ Wiring:\\
 [[http://wiringpi.com/]]\\ [[http://wiringpi.com/]]\\
 +[[https://github.com/WiringPi/WiringPi]]\\
 [[https://github.com/jeremiahrose/pd-wiringpi]]\\ [[https://github.com/jeremiahrose/pd-wiringpi]]\\
 [[http://pi.bek.no/pd_wiringPi_GPIO/]]\\ [[http://pi.bek.no/pd_wiringPi_GPIO/]]\\
-[[https://github.com/nitram509/wiring-pi/blob/master/DOCUMENTATION.md]]\\ 
  
 MCP3008:\\ MCP3008:\\