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
Next revision Both sides next revision
raspberry_boards:raspbi-pd_control_hat [2020/03/27 16:16]
admin
raspberry_boards:raspbi-pd_control_hat [2020/08/18 18:16]
admin [Connecting Sensors]
Line 14: Line 14:
 [[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.\\
 WiringPi for Pure Data was written by Miller Puckette, Jaime Oliver La Rosa and Jeremiah Rose.\\ WiringPi for Pure Data was written by Miller Puckette, Jaime Oliver La Rosa and Jeremiah Rose.\\
- 
-{{:​raspberry_boards:​pd-example_march2020.png?​600 |}}\\ 
  
 The Raspi-PD Control Hat was used together with an [[http://​www.audioinjector.net/​rpi-hat|Audio Injector]]. The manual for the installation one can find here:  The Raspi-PD Control Hat was used together with an [[http://​www.audioinjector.net/​rpi-hat|Audio Injector]]. The manual for the installation one can find here: 
Line 56: Line 54:
    $ sudo apt install puredata    $ sudo apt install puredata
  
 +{{:​raspberry_boards:​pd-example_march2020.png?​600 |}}\\
  
 === Installing Wiring === === Installing Wiring ===
Line 73: Line 72:
 === 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]] or do it in the terminal:\\ 
-   $ wget www.dernulleffekt.de/​programme/​pd-wiringpi.zip+   $ wget http://www.dernulleffekt.de/​programme/​pd-wiringpi.zip
    $ unzip pd-wiringpi.zip    $ unzip pd-wiringpi.zip
    $ cd pd-wiringpi/​    $ cd pd-wiringpi/​
Line 84: Line 83:
 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 92: Line 93:
 ---- ----
 ==== 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 103: Line 112:
  
 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 146: Line 155:
 ---- ----
 ==== Links ==== ==== Links ====
 +
 +[[https://​www.open-electronics.org/​discover-the-8-channnel-adc-8-expansion-shield/​]]\\
  
 MCP3008:\\ MCP3008:\\