Difference between revisions of "Pd BioAmp"

From Hackteria Wiki
Jump to: navigation, search
Line 1: Line 1:
'''pd BioAmp Eurorack version'''
+
==pd BioAmp Eurorack version==
  
[[File:pd_bioamp_case.jpg|450px]][[File:bioamp_pd-patch_ani.gif]]
+
[[File:bioamp_pd-patch_ani.gif]]
 +
 
 +
Made a nice case with 3mm mdf, laser-cut, glued and sanded to have rounded corners and sprayed nicely.
 +
 
 +
'''Materials:'''
 +
* upside-dowb labs BioAmp EXG pill
 +
* Seeed Xiao SAMD21 microprocessor
 +
* 32x128 OLED screen (and pink foil)
 +
* neo-pixel strip, 6 Leds
 +
* 1 x stereo jack, 3.5mm
 +
* 1 x 10kOhm potentiometer
 +
* 1 x push-button
 +
* 3 x mono jacks, 3.5mm
 +
 
 +
== Arduino code ==
 +
 
 +
Based on the [https://github.com/upsidedownlabs/BioAmp-EXG-Pill example codes by Upside Down Labs] for reading and filtering the BioAmp EXG pill and the scrolling graph by [http://makeabilitylab.io Jon E. Froehlich].
 +
 
 +
'''Libraries:'''
 +
* Wire (for i2c)
 +
* Adafruit_SSD1306 (for the oled)
 +
* Adafruit_NeoPixel
 +
* Adafruit_GFX
 +
 
 +
 
 +
 
 +
== Pd patch ==
 +
 
 +
[[File:pd_bioamp_case.jpg|450px]]
 +
 
 +
=== How to receive data from Arduino through serial port in Pd (puredata) ===
 +
 
 +
* install "comport" extension. And then... first you will just receive the ascii-code number of the strings sent through the serial port. So we need to decode this.
 +
 
 +
'''Arduino_Pd'''
 +
 
 +
https://github.com/alexdrymonitis/Arduino_Pd
 +
 
 +
can be loaded from ./Arduino_Pd or copied directly into the patch.
 +
 
 +
'''cyclone extension'''
 +
 
 +
See this instruction video:
 +
 
 +
https://www.youtube.com/watch?v=eVW0FD9g_Sk

Revision as of 18:33, 25 February 2024

pd BioAmp Eurorack version

Bioamp pd-patch ani.gif

Made a nice case with 3mm mdf, laser-cut, glued and sanded to have rounded corners and sprayed nicely.

Materials:

  • upside-dowb labs BioAmp EXG pill
  • Seeed Xiao SAMD21 microprocessor
  • 32x128 OLED screen (and pink foil)
  • neo-pixel strip, 6 Leds
  • 1 x stereo jack, 3.5mm
  • 1 x 10kOhm potentiometer
  • 1 x push-button
  • 3 x mono jacks, 3.5mm

Arduino code

Based on the example codes by Upside Down Labs for reading and filtering the BioAmp EXG pill and the scrolling graph by Jon E. Froehlich.

Libraries:

  • Wire (for i2c)
  • Adafruit_SSD1306 (for the oled)
  • Adafruit_NeoPixel
  • Adafruit_GFX


Pd patch

Pd bioamp case.jpg

How to receive data from Arduino through serial port in Pd (puredata)

  • install "comport" extension. And then... first you will just receive the ascii-code number of the strings sent through the serial port. So we need to decode this.

Arduino_Pd

https://github.com/alexdrymonitis/Arduino_Pd

can be loaded from ./Arduino_Pd or copied directly into the patch.

cyclone extension

See this instruction video:

https://www.youtube.com/watch?v=eVW0FD9g_Sk