Pd BioAmp

From Hackteria Wiki
Revision as of 18:37, 25 February 2024 by Dusjagr (talk | contribs) (Arduino code)
Jump to: navigation, search

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