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:21]
admin [Software]
raspberry_boards:raspbi-pd_control_hat [2020/09/01 18:34] (current)
admin
Line 56: Line 56:
 {{:​raspberry_boards:​pd-example_march2020.png?​600 |}}\\ {{:​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 72: 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
Line 93: 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 104: 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 147: Line 160:
 ---- ----
 ==== Links ==== ==== Links ====
 +
 +[[https://​www.open-electronics.org/​discover-the-8-channnel-adc-8-expansion-shield/​]]\\
  
 MCP3008:\\ MCP3008:\\