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/05 23:11]
admin [Raspi-PD Control Hat]
raspberry_boards:raspbi-pd_control_hat [2020/09/01 18:34] (current)
admin
Line 3: Line 3:
 {{:​raspberry_boards:​raspi-pd_hat.jpg?​600|}}\\ {{:​raspberry_boards:​raspi-pd_hat.jpg?​600|}}\\
  
-The Raspi-PD Control Hat is a extension ​board for the Raspberry Pi. It extend the GPIOs with 8 analog inputs, 4 push buttons and indicator LEDs. It is based on the 10 bit analog to digital converter [[https://​www.microchip.com/​wwwproducts/​en/​MCP3008|MCP3008]]. Two potentiometers are build in the board the other 6 inputs are free to use.+The Raspi-PD Control Hat is a physical interfacing ​board for the Raspberry Pi. It extend the GPIOs with 8 additional ​analog inputs, 4 push buttons and indicator LEDs. It is based on the 10 bit analog to digital converter [[https://​www.microchip.com/​wwwproducts/​en/​MCP3008|MCP3008]]. Two potentiometers are build in the board the other 6 inputs are free to use.
  
 The Raspi-PD Control Hat was designed to use under Pure Data but could be controlled with the wiring library in C or python, too.\\ The Raspi-PD Control Hat was designed to use under Pure Data but could be controlled with the wiring library in C or python, too.\\
Line 47: Line 47:
  
 ---- ----
-==== Installing Wiring ​====+==== Software ​====
  
 +=== Install Pure Data ===
 +In the terminal:
 +   $ sudo apt update
 +   $ sudo apt install puredata
 +
 +{{:​raspberry_boards:​pd-example_march2020.png?​600 |}}\\
 +
 +=== 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 60: Line 73:
    $ sudo raspi-config    $ sudo raspi-config
  
----- + 
-==== Pure Data ====+=== Install the WiringPi for PD === 
 + 
 +Download: [[http://​www.dernulleffekt.de/​programme/​pd-wiringpi.zip|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 
 +   $ cd pd-wiringpi/​ 
 +   $ cp -R wiringPi_gpio/​ /​home/​pi/​Documents/​Pd/​externals/​ 
 +   $ cp -R wiringPi_mcp3008/​ /​home/​pi/​Documents/​Pd/​externals/​ 
 + 
 +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.\\ 
 + 
 +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:  
 +[[https://​dernulleffekt.de/​doku.php?​id=puredata:​gpio|Wiring Pi for Pure Data]]\\
  
  
 ---- ----
 ==== 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 77: 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 120: Line 160:
 ---- ----
 ==== Links ==== ==== Links ====
 +
 +[[https://​www.open-electronics.org/​discover-the-8-channnel-adc-8-expansion-shield/​]]\\
  
 MCP3008:\\ MCP3008:\\