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
raspberry_boards:raspbi-pd_control_hat [2020/03/27 16:16]
admin [Raspi-PD Control Hat]
raspberry_boards:raspbi-pd_control_hat [2020/09/01 18:34] (current)
admin
Line 54: Line 54:
    $ sudo apt install puredata    $ sudo apt install puredata
  
 +{{:​raspberry_boards:​pd-example_march2020.png?​600 |}}\\
  
-=== Installing Wiring ​===+=== Install some Externals ​=== 
 +To install some Externals one can follow this manual:\\
  
 +[[http://​dernulleffekt.de/​doku.php?​id=puredata:​pduino#​pure_data_and_pduino]]
 +
 +=== Install Wiring ===
 In the terminal: In the terminal:
    $ sudo apt-get install wiringpi    $ sudo apt-get install wiringpi
Line 71: Line 76:
 === Install the WiringPi for PD === === Install the WiringPi for PD ===
  
-Download: ​{{ :puredata:​pd-wiringpi.zip |}}\\ +Download: ​[[http://​www.dernulleffekt.de/​programme/​pd-wiringpi.zip|pd-wiringpi.zip]].\\ 
-   $ wget www.dernulleffekt.de/​programme/​pd-wiringpi.zip+Unzip and copy the wiringPi_gpio and the wiringPi_mcp3008 folder in the PD external folder.\\ 
 +   /​home/​pi/​Pd/​externals 
 +or do it in the terminal:\\ 
 +   $ wget http://www.dernulleffekt.de/​programme/​pd-wiringpi.zip
    $ unzip pd-wiringpi.zip    $ unzip pd-wiringpi.zip
    $ cd pd-wiringpi/​    $ cd pd-wiringpi/​
-   $ cp -R wiringPi_gpio/​ /​home/​pi/​Pd/​externals/​ +   $ cp -R wiringPi_gpio/​ /home/pi/Documents/​Pd/​externals/​ 
-   $ cp -R wiringPi_mcp3008/​ /​home/​pi/​Pd/​externals/​+   $ cp -R wiringPi_mcp3008/​ /home/pi/Documents/​Pd/​externals/​
  
-Unzip and copy the wiringPi_gpio and the wiringPi_mcp3008 folder in the PD external folder.\\ 
-   /​home/​pi/​Pd/​externals 
 One has to run Wiring PD with administration rights: One has to run Wiring PD with administration rights:
    $ sudo pd    $ 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.\\ ​+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.\\ 
 + 
 +Here is an example patch for the Raspi-PD Control Hat {{ :​raspberry_boards:​raspi-pd-control-hat_fm-synth.zip |FM-Synth}}\\
  
 A more detailed manual for installing the PD wiring object on a Raspberry P 4 one finds here:  A more detailed manual for installing the PD wiring object on a Raspberry P 4 one finds here: 
Line 90: Line 98:
 ---- ----
 ==== Connecting Sensors ==== ==== Connecting Sensors ====
-To get a smooth measurement one could put one capacitor between the ground and the measuring point as well as one between the power and the measuring point. For example two 1µF capacitors in a simple LDR resistor divider:\\+ 
 +For the analog inputs one can just connect any 5V source. And to get a smooth measurement one could put one capacitor between the ground and the measuring point as well as one between the power and the measuring point. For example two 1µF capacitors in a simple LDR resistor divider:\\
  
    ​GND---||---CH2---||----5V    ​GND---||---CH2---||----5V
                |                |
-   ​GND---50k--------LDR---5V ​ +   ​GND---50k--------LDR---5V 
 +\\ 
 +or:\\ 
 +   ​CH2---------------In 
 +        |       | 
 +       ​100k ​   === 100nF 
 +        |       | 
 +       ​GND ​    GND
  
 ---- ----
Line 101: Line 117:
  
 Download the Python script: Download the Python script:
-  $ wget www.dernulleffekt.de/​programme/​scripts.tar.xz+  $ wget http://www.dernulleffekt.de/​programme/​scripts.tar.xz
 And unpack it: And unpack it:
   $ tar -xf scripts.tar.xz   $ tar -xf scripts.tar.xz
Line 144: Line 160:
 ---- ----
 ==== Links ==== ==== Links ====
 +
 +[[https://​www.open-electronics.org/​discover-the-8-channnel-adc-8-expansion-shield/​]]\\
  
 MCP3008:\\ MCP3008:\\