Defective Pulse Sensor?
I have a new MetaWear R with pulse sensor, which lit once briefly and now doesn't at all. When I run Laura's iOS HeartRate app, it connects but the BPM reading doesn't change from 60. I've cleared, restarted, and reset the device, including factory reset. Seems like the pulse sensor or pins 8-11 are defective, but perhaps its a configuration problem? What can I do?
This discussion has been closed.
Comments
In the API documentation, GPIO:Set/Clear Pin, there is "[pin0 setToDigitalValue:YES];" Is "low" equivalent to "NO"?
I tried this at the end of the refreshPressed method, after "Set up timer for GPIO pin reading", which seems a likely place for this kind of initialization:
MBLGPIOPin *pin0 = self.device.gpio.pins[0];
[pin0 setToDigitalValue:NO];
There was no change in the system (Pulse Sensor light still off).
I see a property that looks related, enablePinActiveLow, documented here: http://cocoadocs.org/docsets/Metawear-iOSAPI/1.8.2/Classes/MBLGPIOPin.html
It is false and an attempt to set it true ([pin0 enablePinActiveLow:YES];) results in the error "No visible @interface for 'MBLGPIOPin' declares the selector 'enablePinActiveLow:'"
I'm guessing it is fairly trivial to "set one of the GPIO pins low" -- Laura will you or one of your MbientLab colleagues please just give me a code snippet to do this? I can't use the product I bought until this problem is solved.
Thanks,
Nowhere can I find an example of *how to set a GPIO pin to low*. Will you please tell me, explicitly, with a code snippet, *how to set a GPIO pin to low*? I'd also like to know how to set a GPIO pin low "manually" using the MetaWear app, if that's possible, so I can turn the Pulse Sensor on and off at will.
Thanks in advance for your help,
[pin0 setToDigitalValue:NO];
Please
note you will need to set GPIO1 low to "turn on" the pulse sensor (and
the data comes in GPIO0), that is the only difference between your setup
and the one in the projects website.