Difference between revisions of "Pd BioAmp"

From Hackteria Wiki
Jump to: navigation, search
(Arduino code)
Line 1: Line 1:
 
==pd BioAmp Eurorack version==
 
==pd BioAmp Eurorack version==
  
[[File:bioamp_pd-patch_ani.gif]]
+
[[File:bioamp_pd-patch_ani.gif]][[File:pd_bioamp_case.jpg|450px]]
  
 
Made a nice case with 3mm mdf, laser-cut, glued and sanded to have rounded corners and sprayed nicely.
 
Made a nice case with 3mm mdf, laser-cut, glued and sanded to have rounded corners and sprayed nicely.
Line 34: Line 34:
  
 
== Pd patch ==
 
== Pd patch ==
 
[[File:pd_bioamp_case.jpg|450px]]
 
  
 
=== How to receive data from Arduino through serial port in Pd (puredata) ===
 
=== How to receive data from Arduino through serial port in Pd (puredata) ===

Revision as of 18:39, 25 February 2024

pd BioAmp Eurorack version

Bioamp pd-patch ani.gifPd bioamp case.jpg

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

To do

  • control the neo-pixels
  • add more graphics to the OLED
  • use button for different modi
  • send gate for heart beat detection
  • send CV out of the DAC (kinda done, but noisy)
  • send sound/music out of the DAC

Pd patch

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