Eric

Do not send private messages with technical questions; they will be discarded. All technical questions must be posted publicly on the forum.

About

Username
Eric
Joined
Visits
9,275
Last Active
Roles
Administrator

Comments

  • High pass filtering is done on the accelerometer chip.  It does not support reporting both filtered and unfiltered data.
  • Yes, that tutorial covers all the functionality you need for your task and I would use an ArrayList as the List of choice. The Java website also provides good information about Lists. https://docs.oracle.com/javase/tutorial/collections/interfaces…
  • Good to hear you got everything working!
  • You can modify the scan response to use the EddyStone protocol, same with how you would setup a UriBeacon. https://mbientlab.com/docs/metawear/ios/1.9.0/Classes/MBLMetaWear.html#//api/name/scanResponse https://mbientlab.com/docs/metawear/android…
  • You should use a List to store the data, not an array.  Arrays should only be used when you know what the array size will be.  On the other hand, the List class is for storing an indeterminate amount of data. Also, you do not need a while loop in …
  • Using the NvM to store custom data is not supported in the current firmware build (v 1.0.3); the NvM only stores MetaWear commands and logged sensor data.  The closest thing to what you want would be to modify the scan response in the ad packet.
  • Couple of questions to help debug: * Do you by chance have another MetaWear board to test with?  If so, are these fluctuations consistent amongst the other boards? * How far off is "way off"?  How many of the graphs are "way off" from what you exp…
  • Ah I see, that's a type on my part; code snippet has been fixed.  The MetaWear notifies you through the pinChangeDetected callback function, as outlined in the code block you were referencing.
    in Metawear(GPIO) Comment by Eric July 2015
  • 1.8.0 is sufficient, there isn't anything in 1.9.3 that you would need for what you are doing at the moment.   Also, you cannot configure the accelerometer while it is running.  Perhaps the accelerometer is already active when you try to configure…
    in Metawear(gyro) Comment by Eric July 2015
  • Do other Bluetooth LE apps work with the board?  For example, the Nordic Master Control Panel app:https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp
  • Hrm..are you using the latest API release by chance?
    in Metawear(gyro) Comment by Eric July 2015
  • You configured pin change notifications for pin 10 but are enabling notifications for pin 0.
    in Metawear(GPIO) Comment by Eric July 2015
  • We don't have a way to determine the time difference between function calls.  I also think you are confusing what the timers do.  They are used to schedule periodic events, not keep track of elapsed time.
  • What is some of the data you are receiving with this accelerometer configuration?
    in Metawear(gyro) Comment by Eric July 2015
  • Sorry, I meant reset the Bluetooth adapter on your phone.
  • Just to clarify, you are asking if there is a way to retrieve the time difference between a call to start and stop timer?
  • First, you should try to setup notifications for pin state changes using setPinChangeType and enablePinChangeNotification.  This feature will let you receive notifications for when the input voltage changes.
  • Try resetting the Bluetooth adapter.
  • Unfortunately, we don't have the man power to support other platforms besides iOS and Android at the moment.
  • The byte format for the haptic driver is as follows: 0: 0x08 1: 0x01 2: duty cycle, between [0 - 248] 3-4: pulse width (in ms) 5: op frequency (0 for motor, 1 for buzzer) So, if you want to drive a motor for 5 seconds (5000 ms = 0x1388) at…
    in Python API? Comment by Eric July 2015
  • You can enable high pass filtering to filter out gravity.  Documentation about the withHighPassFilter function here. public void setupAccelerometer(Accelerometer accelCtrllr) {     accelCtrllr.enableXYZSampling().withHighPassFilter((byte) 0)    …
    in Metawear(gyro) Comment by Eric July 2015
  • Hrm.. ok.  What you can do is use the I2C module to configure some acceleromter registers that were not directly exposed in the firmware.  Try running this code block with your current code. I2c i2cCtrllr= (I2C) mwBoard.getModuleController(Module.…
  • No, the logger does not store data prior to a trigger being added.  You should add a trigger before starting data sampling.
  • * Change "activeCaloriesBurned" to be a member variable of the PlaceholderFragment class * Assign it in onViewCreated * Remove the assignment on line 187 public class PlaceholderFragment {     private TextView activeCaloriesBurned;   …
  • Yes I can access the link.  However, I don't see any issue with the code at line 187.  What is the full error message?  Also, if you comment out the TextView code, do log messages get printed to Logcat?
  • Use 65535 (0xffff) to clear everything
  • Periods of inactivity meaning the accelerometer has not detected any movement related events over some time.  If you're board is attached to a fridge, then at night, there will be long period of inactivity except for the odd case of some getting a l…
  • What line is this error occurring on?
  • I did forget to push the actual commit to the remote repo when I made this thread, I only pushed the tag up and I have no idea what that does to the state of the GitHub code.  You can try pulling the latest version of the code again.   The lates…
  • Yes, that is the correct code flow. Motion detection is handled by the accelerometer chip, not firmware.  You can experiment with sleep mode (enableAutoSleepMode) to reduce the power consumption during periods of inactivity.