Did you guys upload the 'Pulse Sensor' sketch in the Arduino IDE from http://pulsesensor.com/ first before using the pulse sensor in Max? Or, did you just use 'Standard Firmata' and then just take the totally raw data from the 'Pulse Sensor' in Max? My thinking is that if I upload that 'Pulse Sensor' sketch from Arduino IDE first, then my data from 'A0' of my pulse would be averaged out already.
Yes, I've try to do it, but the sensor just send data as "On" if you touch it, and "Off" if you don't touch it; to releve the pulse I've try to use the original arduino program PulseSensorAmped_Arduino_1dot1.ino, that work very well but don'y communcate to max via serial. I'm not a programmer, so I don't know how modify the PulseSensorAmped_Arduino_1dot1.ino or mix PulseSensorAmped_Arduino_1dot1.ino with Maxuino or similar.
In the default Pulse sensor sketch for Arduino you first need to make a change:
static boolean serialVisual = false;
static boolean serialVisual = true;
Ok? Just upload that and connect your sensor. Next up is the max part. Create the serial object with a rate of 115200, [serial a 115200]. I don't know what port you should use so you can just go from a and see when you get it right. I rarely use max anymore but I think that should be it. You should be receiving the BPM through the serial object.
Can I ask of anyone, if this is working for you with OSX 10.11 (yosemite) and Arduino Nano? There was an initial serial port driver incompatibility issue that was documented, and I solved that by downloading the recommended third party driver. I am wondering if this is contributing to my lack of consistent signal.
At times, with serialVisual set to TRUE, I get a stream of values close to 255; I'm assuming this is the fader output, since the other values are text based and sent to the serial monitor. When set to FALSE (for the PulseSensor software - which I can't seem to find anywhere, has been removed from everywhere I've found it - or other 3rd party such as max) I get an occasional value of 10... or 16.... but mostly nothing.
I have modified the pulsesensor script to change the serial output by removing the S values (raw data) and changing the B & Q symbols to 0, 1, in hopes of removing any conflict of Max's serial object reading integers... Not sure if this was ever a problem, but it shouldn't hurt anything either.
I'm using PulseSensor Amped 1.4, and the newest version of Max (just downloaded it a week ago).
I'm having troubles displaying values that are coming in from the serial port. I switched static boolean serialVisual to be true and are able to print formatted data into the Max console, but when it comes to displaying numbers in the work area of the sketch-it just doesn't happen.
I also tried to adjust the serial.print statements in the Arduino sketch (so it only displays 0 for when there is no pulse, and the BPM value when there is a reading). I'm not sure what i'm doing wrong and would really appreciate if somebody can stir me in the right direction.